diff --git a/plugins/PerObjectSettingsTool/PerObjectCategory.qml b/plugins/PerObjectSettingsTool/PerObjectCategory.qml index 2113a623a0..d248d24bee 100644 --- a/plugins/PerObjectSettingsTool/PerObjectCategory.qml +++ b/plugins/PerObjectSettingsTool/PerObjectCategory.qml @@ -13,7 +13,40 @@ import ".." Button { id: base; - style: UM.Theme.styles.sidebar_category; + style: ButtonStyle { + background: Item { } + label: Row + { + spacing: UM.Theme.getSize("default_lining").width + + UM.RecolorImage + { + anchors.verticalCenter: parent.verticalCenter + height: label.height / 2 + width: height + source: control.checked ? UM.Theme.getIcon("arrow_bottom") : UM.Theme.getIcon("arrow_right"); + color: control.hovered ? palette.highlight : palette.buttonText + } + UM.RecolorImage + { + anchors.verticalCenter: parent.verticalCenter + height: label.height + width: height + source: control.iconSource + color: control.hovered ? palette.highlight : palette.buttonText + } + Label + { + id: label + anchors.verticalCenter: parent.verticalCenter + text: control.text + color: control.hovered ? palette.highlight : palette.buttonText + font.bold: true + } + + SystemPalette { id: palette } + } + } signal showTooltip(string text); signal hideTooltip();