Skip to content

Commit

Permalink
Improved toolbox icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Martomate committed Aug 19, 2024
1 parent 986b31c commit f941f73
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 0 deletions.
Binary file modified app/src/main/resources/icons/editmodes/draw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/resources/icons/editmodes/fill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/resources/icons/editmodes/organize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/resources/icons/editmodes/pickColor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/resources/icons/editmodes/select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui/src/main/scala/tripaint/view/gui/ToolBox.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ class ToolboxButton(mode: EditMode, onClick: () => Unit)
extends ToggleButton(null, new ImageView("icons/editmodes/" + mode.imagePath + ".png")) {
setTooltip(new Tooltip(s"${mode.tooltipText}\n(Shortcut: ${mode.shortCut})"))
setOnAction(_ => onClick())

getGraphic.asInstanceOf[ImageView].setFitWidth(20)
getGraphic.asInstanceOf[ImageView].setFitHeight(20)
}

0 comments on commit f941f73

Please sign in to comment.