Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

Commit

Permalink
work on the different toolbars types: headertoolbar, secondarytoolbar…
Browse files Browse the repository at this point in the history
… and footertoolbar #3
  • Loading branch information
milohr committed Mar 25, 2018
1 parent 4d1c226 commit befd1db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions ToolBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ T.ToolBar {

readonly property bool mainToolbar : controlRoot == T.ApplicationWindow.header
readonly property bool mainFooter : controlRoot == T.ApplicationWindow.footer
readonly property bool isFooter : position == ToolBar.Footer
readonly property bool isFooter : controlRoot.position == T.ToolBar.Footer

background: Rectangle
{
implicitHeight: 48


color: mainToolbar ? Kirigami.Theme.buttonBackgroundColor: Kirigami.Theme.viewBackgroundColor
color: mainToolbar || isFooter ? Kirigami.Theme.buttonBackgroundColor: Kirigami.Theme.viewBackgroundColor

Kirigami.Separator
{
Expand All @@ -64,7 +64,7 @@ T.ToolBar {
{
left: parent.left
right: parent.right
bottom: parent.bottom
bottom: isFooter? undefined : parent.bottom
}
}

Expand Down
14 changes: 3 additions & 11 deletions ToolBar.qml~
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ T.ToolBar {

readonly property bool mainToolbar : controlRoot == T.ApplicationWindow.header
readonly property bool mainFooter : controlRoot == T.ApplicationWindow.footer
readonly property bool isFooter : position == ToolBar.Footer
readonly property bool isFooter : controlRoot.position == T.ToolBar.Footer

background: Rectangle
{
implicitHeight: 48


color: mainToolbar ? Kirigami.Theme.backgroundColor: Kirigami.Theme.viewBackgroundColor
color: mainToolbar || isFooter ? Kirigami.Theme.buttonBackgroundColor: Kirigami.Theme.viewBackgroundColor

Kirigami.Separator
{
Expand All @@ -58,15 +58,7 @@ T.ToolBar {
}
}

Kirigami.Separator
{
anchors
{
left: parent.left
right: parent.right
bottom: parent.bottom
}
}


}
}
Binary file modified private/DefaultListItemBackground.qmlc
Binary file not shown.

0 comments on commit befd1db

Please sign in to comment.