From 0ddf01aff56370778405e12b84d574d0c8fa0bed Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 30 Mar 2015 10:57:00 +0200 Subject: [PATCH] Update theme styles with the new Angled Corner rectangle --- styles.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/styles.qml b/styles.qml index d382efa7f4..02dd43bf4f 100644 --- a/styles.qml +++ b/styles.qml @@ -20,7 +20,7 @@ QtObject { property bool down: control.pressed || (control.checkable && control.checked); font: UM.Theme.fonts.sidebar_header; - color: control.hovered ? UM.Theme.colors.text_hover : down ? UM.Theme.colors.text_pressed : UM.Theme.colors.text; + color: down ? UM.Theme.colors.text_pressed : control.hovered ? UM.Theme.colors.text_hover : UM.Theme.colors.text; text: control.text; } @@ -29,10 +29,13 @@ QtObject { property Component tool_button: Component { ButtonStyle { - background: Rectangle { + background: UM.AngledCornerRectangle { + property bool down: control.pressed || (control.checkable && control.checked); + implicitWidth: UM.Theme.sizes.button.width; implicitHeight: UM.Theme.sizes.button.height; - color: UM.Theme.colors.primary; + color: down ? UM.Theme.colors.button_down : control.hovered ? UM.Theme.colors.button_hover : UM.Theme.colors.button; + cornerSize: UM.Theme.sizes.default_margin.width; } label: Item {