Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/Button.qml
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 49 | background: StylePrivate.StyleItem { | |||
---|---|---|---|---|---|
55 | raised: !(controlRoot.pressed || (controlRoot.checkable && controlRoot.checked)) | 55 | raised: !(controlRoot.pressed || (controlRoot.checkable && controlRoot.checked)) | ||
56 | hover: controlRoot.hovered | 56 | hover: controlRoot.hovered | ||
57 | text: controlRoot.Kirigami.MnemonicData.mnemonicLabel | 57 | text: controlRoot.Kirigami.MnemonicData.mnemonicLabel | ||
58 | hasFocus: controlRoot.activeFocus | 58 | hasFocus: controlRoot.activeFocus | ||
59 | activeControl: controlRoot.isDefault ? "default" : "f" | 59 | activeControl: controlRoot.isDefault ? "default" : "f" | ||
60 | properties: { | 60 | properties: { | ||
61 | "icon": controlRoot.icon ? (controlRoot.icon.name || controlRoot.icon.source) : "", | 61 | "icon": controlRoot.icon ? (controlRoot.icon.name || controlRoot.icon.source) : "", | ||
62 | "iconColor": controlRoot.icon && controlRoot.icon.color.a > 0? controlRoot.icon.color : Kirigami.Theme.textColor, | 62 | "iconColor": controlRoot.icon && controlRoot.icon.color.a > 0? controlRoot.icon.color : Kirigami.Theme.textColor, | ||
63 | "iconWidth": controlRoot.icon && controlRoot.icon.width ? controlRoot.icon.width : 0, | ||||
64 | "iconHeight": controlRoot.icon && controlRoot.icon.height ? controlRoot.icon.height : 0, | ||||
63 | "flat": controlRoot.flat | 65 | "flat": controlRoot.flat | ||
64 | } | 66 | } | ||
65 | } | 67 | } | ||
66 | } | 68 | } |