Changeset View
Changeset View
Standalone View
Standalone View
src/controls/private/ActionButton.qml
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Line(s) | 253 | ActionsMenu { | |||
---|---|---|---|---|---|
257 | actions: root.action && root.action.hasOwnProperty("children") ? root.action.children : "" | 257 | actions: root.action && root.action.hasOwnProperty("children") ? root.action.children : "" | ||
258 | submenuComponent: Component { | 258 | submenuComponent: Component { | ||
259 | ActionsMenu {} | 259 | ActionsMenu {} | ||
260 | } | 260 | } | ||
261 | } | 261 | } | ||
262 | Icon { | 262 | Icon { | ||
263 | id: icon | 263 | id: icon | ||
264 | anchors.centerIn: parent | 264 | anchors.centerIn: parent | ||
265 | width: Units.iconSizes.smallMedium | 265 | width: Units.iconSizes.smallMedium * (Settings.isMobile ? 1.5 : 1) | ||
266 | height: width | 266 | height: width | ||
267 | source: root.action && root.action.icon.name ? root.action.icon.name : "" | 267 | source: root.action && root.action.icon.name ? root.action.icon.name : "" | ||
268 | selected: true | 268 | selected: true | ||
269 | color: root.action && root.action.color && root.action.color.a > 0 ? root.action.color : (selected ? Theme.highlightedTextColor : Theme.textColor) | 269 | color: root.action && root.action.color && root.action.color.a > 0 ? root.action.color : (selected ? Theme.highlightedTextColor : Theme.textColor) | ||
270 | } | 270 | } | ||
271 | Behavior on color { | 271 | Behavior on color { | ||
272 | ColorAnimation { | 272 | ColorAnimation { | ||
273 | duration: Units.longDuration | 273 | duration: Units.longDuration | ||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |