Skip to content

Commit

Permalink
Added dark mode for drawer and menu buttons (#626)
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Belpois <[email protected]>
  • Loading branch information
VincidaB authored Jul 19, 2024
1 parent 036df09 commit 179f0e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gz/gui/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ ApplicationWindow
contentItem: Image {
fillMode: Image.Pad
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignVCenter
source: "images/drawer.png"
verticalAlignment: Image.AlignVCenter
source: Material.theme === Material.Light ? "images/drawer.png" : "images/drawer_dark.png"
}
onClicked: drawer.open()
}
Expand Down Expand Up @@ -221,7 +221,7 @@ ApplicationWindow
fillMode: Image.Pad
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignVCenter
source: "images/menu.png"
source: Material.theme === Material.Light ? "images/menu.png" : "images/menu_dark.png"
}
onClicked: pluginMenu.open()

Expand Down
Binary file added include/gz/gui/qml/images/drawer_dark.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 added include/gz/gui/qml/images/menu_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions include/gz/gui/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

<file>qml/images/gazebo_logo.png</file>
<file>qml/images/drawer.png</file>
<file>qml/images/drawer_dark.png</file>
<file>qml/images/menu.png</file>
<file>qml/images/menu_dark.png</file>
<file>qml/images/export_icon.png</file>
<file>qml/images/search.svg</file>
<file>qml/images/plottable_icon.svg</file>
Expand Down

0 comments on commit 179f0e6

Please sign in to comment.