Changeset 1f203508 in subsurface


Ignore:
Timestamp:
Jul 15, 2017, 7:31:55 AM (9 days ago)
Author:
Joakim Bygdell <j.bygdell@…>
Branches:
master
Children:
745e299
Parents:
0c31167
git-author:
Joakim Bygdell <j.bygdell@…> (07/15/17 07:31:51)
git-committer:
Joakim Bygdell <j.bygdell@…> (07/15/17 07:31:55)
Message:

QML UI: style the overlay drawer

This adds separate colors for the overlay drawer background for light and dark themes.

Signed-off-by: Joakim Bygdell <j.bygdell@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/main.qml

    r0c31167 r1f203508  
    336336                subsurfaceTheme.secondaryTextColor = subsurfaceTheme.blueSecondaryTextColor
    337337                manager.setStatusbarColor(subsurfaceTheme.darkerPrimaryColor)
     338                subsurfaceTheme.drawerColor = subsurfaceTheme.lightDrawerColor
    338339        }
    339340
     
    350351                subsurfaceTheme.secondaryTextColor = subsurfaceTheme.pinkSecondaryTextColor
    351352                manager.setStatusbarColor(subsurfaceTheme.darkerPrimaryColor)
     353                subsurfaceTheme.drawerColor = subsurfaceTheme.lightDrawerColor
    352354        }
    353355
     
    364366                subsurfaceTheme.secondaryTextColor = subsurfaceTheme.darkSecondaryTextColor
    365367                manager.setStatusbarColor(subsurfaceTheme.darkerPrimaryColor)
     368                subsurfaceTheme.drawerColor = subsurfaceTheme.darkDrawerColor
    366369        }
    367370
     
    382385                property color textColor
    383386                property color secondaryTextColor
     387                property color drawerColor
    384388
    385389                // colors for the blue theme
     
    417421
    418422                property color contrastAccentColor: "#FF5722" // used for delete button
     423                property color lightDrawerColor: "#FFFFFF"
     424                property color darkDrawerColor: "#424242"
    419425
    420426                property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*28)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*28))) : rootItem.width
     
    425431                        Kirigami.Theme.textColor = Qt.binding(function() { return textColor })
    426432                        Kirigami.Theme.buttonHoverColor = Qt.binding(function() { return darkerPrimaryColor })
     433                        Kirigami.Theme.viewBackgroundColor = Qt.binding(function() { return drawerColor })
    427434
    428435                        // this needs to pick the theme from persistent preference settings
Note: See TracChangeset for help on using the changeset viewer.