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

Commit

Permalink
more toolbars styling, identify Main toolbars [header toolbar, footer…
Browse files Browse the repository at this point in the history
… toolbar] from secondary toolbar and style them accordingly #3
  • Loading branch information
camilo higuita committed Mar 30, 2018
1 parent fbd507a commit 9fdfc52
Show file tree
Hide file tree
Showing 67 changed files with 9 additions and 6 deletions.
Binary file added ApplicationWindow.qmlc
Binary file not shown.
Empty file modified BusyIndicator.qml
100644 → 100755
Empty file.
Binary file added BusyIndicator.qmlc
Binary file not shown.
Empty file modified Button.qml
100644 → 100755
Empty file.
Binary file added Button.qmlc
Binary file not shown.
Empty file modified CheckBox.qml
100644 → 100755
Empty file.
Binary file added CheckBox.qmlc
Binary file not shown.
Empty file modified CheckDelegate.qml
100644 → 100755
Empty file.
Empty file modified CheckIndicator.qml
100644 → 100755
Empty file.
Binary file added CheckIndicator.qmlc
Binary file not shown.
Empty file modified ComboBox.qml
100644 → 100755
Empty file.
Empty file modified Container.qml
100644 → 100755
Empty file.
Empty file modified Control.qml
100644 → 100755
Empty file.
Empty file modified Dial.qml
100644 → 100755
Empty file.
Empty file modified Dialog.qml
100644 → 100755
Empty file.
Binary file added Dialog.qmlc
Binary file not shown.
Empty file modified DialogButtonBox.qml
100644 → 100755
Empty file.
Binary file added DialogButtonBox.qmlc
Binary file not shown.
Empty file modified Drawer.qml
100644 → 100755
Empty file.
Binary file added Drawer.qmlc
Binary file not shown.
Empty file modified Frame.qml
100644 → 100755
Empty file.
Empty file modified GroupBox.qml
100644 → 100755
Empty file.
Empty file modified ItemDelegate.qml
100644 → 100755
Empty file.
Binary file added ItemDelegate.qmlc
Binary file not shown.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified Label.qml
100644 → 100755
Empty file.
Binary file added Label.qmlc
Binary file not shown.
Empty file modified Menu.qml
100644 → 100755
Empty file.
Binary file added Menu.qmlc
Binary file not shown.
Empty file modified MenuItem.qml
100644 → 100755
Empty file.
Binary file added MenuItem.qmlc
Binary file not shown.
Empty file modified Page.qml
100644 → 100755
Empty file.
Binary file added Page.qmlc
Binary file not shown.
Empty file modified Popup.qml
100644 → 100755
Empty file.
Binary file added Popup.qmlc
Binary file not shown.
Empty file modified ProgressBar.qml
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified RadioButton.qml
100644 → 100755
Empty file.
Empty file modified RadioDelegate.qml
100644 → 100755
Empty file.
Empty file modified RadioIndicator.qml
100644 → 100755
Empty file.
Empty file modified RangeSlider.qml
100644 → 100755
Empty file.
Empty file modified ScrollBar.qml
100644 → 100755
Empty file.
Binary file added ScrollBar.qmlc
Binary file not shown.
Empty file modified ScrollView.qml
100644 → 100755
Empty file.
Binary file added ScrollView.qmlc
Binary file not shown.
Empty file modified Slider.qml
100644 → 100755
Empty file.
Binary file added Slider.qmlc
Binary file not shown.
Empty file modified SpinBox.qml
100644 → 100755
Empty file.
Binary file added SpinBox.qmlc
Binary file not shown.
Empty file modified SwipeView.qml
100644 → 100755
Empty file.
Binary file added SwipeView.qmlc
Binary file not shown.
Empty file modified Switch.qml
100644 → 100755
Empty file.
Empty file modified SwitchDelegate.qml
100644 → 100755
Empty file.
Empty file modified SwitchIndicator.qml
100644 → 100755
Empty file.
Empty file modified TabBar.qml
100644 → 100755
Empty file.
Empty file modified TabButton.qml
100644 → 100755
Empty file.
Empty file modified TextArea.qml
100644 → 100755
Empty file.
Binary file added TextArea.qmlc
Binary file not shown.
Empty file modified TextField.qml
100644 → 100755
Empty file.
Binary file added TextField.qmlc
Binary file not shown.
15 changes: 9 additions & 6 deletions ToolBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,33 @@ T.ToolBar {
implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)

leftPadding: 11
rightPadding: 11

contentWidth: contentChildren[0].implicitWidth
contentHeight: contentChildren[0].implicitHeight

contentItem: Item {}

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

background: Rectangle
{
implicitHeight: 48

implicitHeight: 48

color: mainToolbar || isFooter ? Kirigami.Theme.buttonBackgroundColor: Kirigami.Theme.viewBackgroundColor
color: mainHeader || mainFooter ? Kirigami.Theme.buttonBackgroundColor : ( isHeader || isFooter) ? Kirigami.Theme.viewBackgroundColor : Kirigami.Theme.viewBackgroundColor

Kirigami.Separator
{
visible: mainToolbar
visible: mainHeader
anchors
{
left: parent.left
right: parent.right
top: mainToolbar ? parent.top : undefined
top: mainHeader ? parent.top : undefined
}
}

Expand Down
Binary file added ToolBar.qmlc
Binary file not shown.
Binary file added ToolButton.qmlc
Binary file not shown.
Empty file modified ToolTip.qml
100644 → 100755
Empty file.
Binary file added ToolTip.qmlc
Binary file not shown.
Empty file modified private/DefaultListItemBackground.qml
100644 → 100755
Empty file.
Binary file modified private/DefaultListItemBackground.qmlc
100644 → 100755
Binary file not shown.

0 comments on commit 9fdfc52

Please sign in to comment.