mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Update theme styles with the new Angled Corner rectangle
This commit is contained in:
parent
cd76d37585
commit
0ddf01aff5
1 changed files with 6 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue