Differential D5131 Diff 12691 plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml
Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 114 | Item { | |||
---|---|---|---|---|---|
139 | } | 139 | } | ||
140 | } | 140 | } | ||
141 | Component.onCompleted: { | 141 | Component.onCompleted: { | ||
142 | colorize(); | 142 | colorize(); | ||
143 | if (buttonType == DecorationOptions.DecorationButtonQuickHelp) { | 143 | if (buttonType == DecorationOptions.DecorationButtonQuickHelp) { | ||
144 | visible = Qt.binding(function() { return decoration.client.providesContextHelp}); | 144 | visible = Qt.binding(function() { return decoration.client.providesContextHelp}); | ||
145 | } | 145 | } | ||
146 | if (buttonType == DecorationOptions.DecorationButtonApplicationMenu) { | 146 | if (buttonType == DecorationOptions.DecorationButtonApplicationMenu) { | ||
147 | // visible = decoration.appMenu; | 147 | visible = Qt.binding(function() { return decoration.client.hasApplicationMenu; }); | ||
148 | visible = false; | | |||
149 | } | 148 | } | ||
150 | } | 149 | } | ||
151 | onHoveredChanged: colorize() | 150 | onHoveredChanged: colorize() | ||
152 | onPressedChanged: colorize() | 151 | onPressedChanged: colorize() | ||
153 | Connections { | 152 | Connections { | ||
154 | target: decoration.client | 153 | target: decoration.client | ||
155 | onActiveChanged: button.colorize() | 154 | onActiveChanged: button.colorize() | ||
156 | } | 155 | } | ||
157 | Connections { | 156 | Connections { | ||
158 | target: options | 157 | target: options | ||
159 | onColorsChanged: button.colorize(); | 158 | onColorsChanged: button.colorize(); | ||
160 | } | 159 | } | ||
161 | } | 160 | } |