Android UI customizations

This commit is contained in:
Thomas Perl 2014-11-22 16:19:53 +01:00
parent c7fd930219
commit 9610c51c30
18 changed files with 260 additions and 48 deletions

View file

@ -28,7 +28,7 @@ Rectangle {
id: toolbar
property bool showing: true
color: Constants.colors.toolbar
color: platform.invertedToolbar ? Constants.colors.inverted.toolbar : Constants.colors.toolbar
height: 80 * pgst.scalef
@ -40,9 +40,10 @@ Rectangle {
anchors {
left: parent.left
right: parent.right
bottom: parent.bottom
bottomMargin: toolbar.showing ? 0 : -height
topMargin: toolbar.showing ? 0 : -toolbar.height
bottomMargin: toolbar.showing ? 0 : -toolbar.height
}
Behavior on anchors.bottomMargin { PropertyAnimation { duration: 100 } }
Behavior on anchors.topMargin { PropertyAnimation { duration: 100 } }
}