Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmacomponents3/ToolButton.qml
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 59 | Label { | |||
---|---|---|---|---|---|
65 | color: theme.buttonTextColor | 65 | color: theme.buttonTextColor | ||
66 | horizontalAlignment: Text.AlignHCenter | 66 | horizontalAlignment: Text.AlignHCenter | ||
67 | verticalAlignment: Text.AlignVCenter | 67 | verticalAlignment: Text.AlignVCenter | ||
68 | elide: Text.ElideRight | 68 | elide: Text.ElideRight | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | background: Item { | 72 | background: Item { | ||
73 | visible: (!control.flat || control.hovered) && (!control.pressed || !control.checked) | | |||
74 | //retrocompatibility with old controls | 73 | //retrocompatibility with old controls | ||
75 | implicitWidth: units.gridUnit * 1.6 | 74 | implicitWidth: units.gridUnit * 1.6 | ||
76 | implicitHeight: units.gridUnit * 1.6 | 75 | implicitHeight: units.gridUnit * 1.6 | ||
77 | Private.ButtonShadow { | 76 | Private.ButtonShadow { | ||
78 | anchors.fill: parent | 77 | anchors.fill: parent | ||
79 | visible: (!control.flat || control.hovered) && (!control.pressed || !control.checked) | 78 | visible: (!control.flat || control.hovered) && (!control.pressed || !control.checked) | ||
80 | state: { | 79 | state: { | ||
81 | if (control.pressed) { | 80 | if (control.pressed) { | ||
Show All 37 Lines |