Skip to content

Commit

Permalink
hide dark mode on mobile for now
Browse files Browse the repository at this point in the history
also the drawer is dark
  • Loading branch information
notmart committed Jul 17, 2020
1 parent eb21065 commit 9524f0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Kirigami.ApplicationWindow {
globalDrawer: Kirigami.GlobalDrawer {
bannerImageSource: "banner.png"
handleVisible: !hideTextInput
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: applicationSettings.darkMode ? Kirigami.Theme.Complementary : Kirigami.Theme.View

actions: [
Kirigami.Action {
Expand Down Expand Up @@ -136,6 +138,7 @@ Kirigami.ApplicationWindow {
}
Switch {
id: nightSwitch
visible: !Kirigami.Settings.isMobile
text: "Dark Mode"
checked: applicationSettings.darkMode
onCheckedChanged: applicationSettings.darkMode = checked
Expand Down

0 comments on commit 9524f0b

Please sign in to comment.