Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dark mode for drawer and menu buttons #626

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading