Add a theme style for setting categories

This commit is contained in:
Arjen Hiemstra 2015-03-30 10:57:21 +02:00
parent 0ddf01aff5
commit afd1b5567d

View File

@ -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 }
}
}
}
}