mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 19:29:06 +08:00
Add a theme style for setting categories
This commit is contained in:
parent
0ddf01aff5
commit
afd1b5567d
17
styles.qml
17
styles.qml
@ -51,4 +51,21 @@ QtObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component category: Component {
|
||||
ButtonStyle {
|
||||
background: UM.AngledCornerRectangle {
|
||||
property bool down: control.pressed || (control.checkable && control.checked);
|
||||
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: Row {
|
||||
anchors.fill: parent;
|
||||
anchors.margins: UM.Theme.sizes.default_margin.width;
|
||||
spacing: UM.Theme.sizes.default_margin.width;
|
||||
Image { anchors.verticalCenter: parent.verticalCenter; source: control.iconSource; }
|
||||
Label { anchors.verticalCenter: parent.verticalCenter; text: control.text; font: UM.Theme.fonts.large; color: UM.Theme.colors.button_text }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user