Changeset View
Changeset View
Standalone View
Standalone View
containment/package/contents/ui/editmode/HeaderSettings.qml
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 77 | SettingsControls.Button{ | |||
---|---|---|---|---|---|
78 | id: rearrangeBtn | 78 | id: rearrangeBtn | ||
79 | anchors.horizontalCenter: parent.horizontalCenter | 79 | anchors.horizontalCenter: parent.horizontalCenter | ||
80 | anchors.top: parent.top | 80 | anchors.top: parent.top | ||
81 | 81 | | |||
82 | text: i18n("Rearrange and configure your widgets") | 82 | text: i18n("Rearrange and configure your widgets") | ||
83 | tooltip: i18n("Feel free to move around your widgets and configure them from their tooltips") | 83 | tooltip: i18n("Feel free to move around your widgets and configure them from their tooltips") | ||
84 | reverseIcon: plasmoid.location === PlasmaCore.Types.RightEdge | 84 | reverseIcon: plasmoid.location === PlasmaCore.Types.RightEdge | ||
85 | 85 | | |||
86 | textColor: settingsRoot.textColor | 86 | textColor: colorizerManager.buttonTextColor | ||
87 | backgroundColor: "transparent" | 87 | backgroundColor: containsMouse? colorizerManager.buttonHoverColor : colorizerManager.buttonBackgroundColor | ||
mvourlakos: this should be :
backgroundColor: containsMouse? colorizerManager.buttonHoverColor… | |||||
88 | checkedTextColor: colorizerManager.highlightedTextColor | 88 | checkedTextColor: colorizerManager.highlightedTextColor | ||
89 | checkedBackgroundColor: colorizerManager.highlightColor | 89 | checkedBackgroundColor: colorizerManager.highlightColor | ||
90 | 90 | | |||
91 | checked: root.inConfigureAppletsMode | 91 | checked: root.inConfigureAppletsMode | ||
92 | 92 | | |||
93 | onPressed: { | 93 | onPressed: { | ||
94 | if (Latte.WindowSystem.compositingActive) { | 94 | if (Latte.WindowSystem.compositingActive) { | ||
95 | plasmoid.configuration.inConfigureAppletsMode = !plasmoid.configuration.inConfigureAppletsMode; | 95 | plasmoid.configuration.inConfigureAppletsMode = !plasmoid.configuration.inConfigureAppletsMode; | ||
96 | } | 96 | } | ||
97 | } | 97 | } | ||
98 | } | 98 | } | ||
99 | } | 99 | } |
this should be :
backgroundColor: containsMouse? colorizerManager.buttonHoverColor : "transparent"
and how does it look when the button in activated ?