From 34930160535c157f419a9d9143b84193345c7945 Mon Sep 17 00:00:00 2001 From: Vincent Belpois Date: Tue, 25 Jun 2024 10:47:32 -0500 Subject: [PATCH] Added dark mode for drawer and menu buttons Signed-off-by: Vincent Belpois --- include/gz/gui/qml/Main.qml | 6 +++--- include/gz/gui/qml/images/drawer_dark.png | Bin 0 -> 7073 bytes include/gz/gui/qml/images/menu_dark.png | Bin 0 -> 5340 bytes include/gz/gui/resources.qrc | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 include/gz/gui/qml/images/drawer_dark.png create mode 100644 include/gz/gui/qml/images/menu_dark.png diff --git a/include/gz/gui/qml/Main.qml b/include/gz/gui/qml/Main.qml index c18154f29..c7e540200 100644 --- a/include/gz/gui/qml/Main.qml +++ b/include/gz/gui/qml/Main.qml @@ -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() } @@ -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() diff --git a/include/gz/gui/qml/images/drawer_dark.png b/include/gz/gui/qml/images/drawer_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..7e0089474ad3788a427b6c9c04eabcb14b10dca6 GIT binary patch literal 7073 zcmeHMc{r5o`yayCCA%zRqKH|TF=NJ3wk(;fWyv-xGsX-vW2e)xC21uhLMc+nQYjMA zL6#J05fzFeOGF#KFLgSd>-YWVT-WdW-};)EfM40wLs$qnA3mrm0RoBDMZ06KxGAwTri~Xk4iO14iY*Td=y?^9P^8ik9y^@7uVyy2$W~UES^w(P^7L=XpB46* z6gPir+~Ar9-WU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M7=UttS@r)mrHviI>8Ho41OfEmkTowr?7ty-blP8H{VlfDk+pPw4Fqui$@@3- zpSiDr0Th9Nw_=mSR>QNiGKH?rkEgK7bP9g$l1RoPabzPZOrNYzgrPA;SQrUOroyQD zWD?d8r%yr|QhuSbV{v&z7MZ$A1(3t(01pX8MjGKTNEne!L&4B!ED>fz!2o0cHP(nm zCeyIgUnm?obf7DV%wMBgrJ?{-NTeZ&iZQ^#urxyo3~fNfz;F~a4o1Wx4UKRV0}PF7 zxJE@G<9Dz*!9<{(^k8BD6%oP;SQ}Us9B=MqX9_idBmc5EF^N1H;9v@MptHgv{~B8--}{P=K_eR)sFws^RCp;?|0uH0VaKI2m)Da zTRf5ceG)D)ocg^YfZz8aav+fvKn0%f9}V@Vo&Mj7g`puS`XnQm5f+7np{Z0H%t)U~ zgkfl8BMg#=Hl(7yEBuq4%ck)nh#abU0FWt=4bVVq*+8_{q|{kU`X@Rfkh-c9(f|!Z zVqgY_Zb&0M$_TFy+!_Mqg(7|=j97iD|IF9~@qaWiSp)pC3;=%LZNTyZtX7Dh%heCf zfC&DVpC7gOUrqsm{5#1%()VAv{*~(=De#ZL|902Ea{VI({t@`!?)ra|OZ2Y|50wSH z1w{bcnP&+G-N05zh_utj3beBNEx1*j4p>A&Y(2Ta-%>KG2OlUWR}nCRd3FSA@VJnY z#AeA_y^&PFRB2~r?q<|cmToSY2obj)c#%`9#Z9@fBKVdmrN2ipqS=8tfZl>|wK{XH3RlnYdG&wfW_zG9U({Ojd0+K#cP zeZ0OvsZ1{Xx|rj&)Ex&MRX^=By`;9;O7ql}=UzH79#U<2{m!SuF7@?rI?h()&Ye8( zV((Y~wBzGWXh(y!0Ds^44G(4!cN32t_Y+p!U*m9K;kRSe;gWTDgd7k&$j*9~Rk?+K G{C@yF6lf#> literal 0 HcmV?d00001 diff --git a/include/gz/gui/qml/images/menu_dark.png b/include/gz/gui/qml/images/menu_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..6f4ad6eb9b1550684329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e~%W_*f{@hCJT!vkU%m8hsHxhDw@cl;?Pux z0#84S2y#gT0++-6FLarhD_4M0$c+bQ3TFcskR}`C0u7Z5zm7!_38{I);)!VNVllOOY&S9nFE8+Fh55W(jdG@@@gMw+ z&c#3I0fzqW49%tp7#!OxC&_4)p?YawpJOs2@KA!GCrmm$I+%c4R zg~|Y6;#Bpi1r!vT!-M*ArXNH9ncmFFW@d_%oo?{ZG^V>-u)!U6gsZN%_XUDsiq_&u Xz}jqW+*9m2wR3>U@OMA5BqHTM`SBcJ literal 0 HcmV?d00001 diff --git a/include/gz/gui/resources.qrc b/include/gz/gui/resources.qrc index 8a18a99f6..1668662ab 100644 --- a/include/gz/gui/resources.qrc +++ b/include/gz/gui/resources.qrc @@ -24,7 +24,9 @@ qml/images/gazebo_logo.png qml/images/drawer.png + qml/images/drawer_dark.png qml/images/menu.png + qml/images/menu_dark.png qml/images/export_icon.png qml/images/search.svg qml/images/plottable_icon.svg