Changeset View
Changeset View
Standalone View
Standalone View
applets/icon/package/contents/ui/main.qml
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | 98 | onDrop: { | |||
---|---|---|---|---|---|
103 | } | 103 | } | ||
104 | 104 | | |||
105 | root.containsAcceptableDrag = false | 105 | root.containsAcceptableDrag = false | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | PlasmaCore.IconItem { | 109 | PlasmaCore.IconItem { | ||
110 | id: icon | 110 | id: icon | ||
111 | anchors{ | 111 | anchors { | ||
112 | left: parent.left | 112 | left: parent.left | ||
113 | right: parent.right | 113 | right: parent.right | ||
114 | top: parent.top | 114 | top: parent.top | ||
115 | bottom: constrained ? parent.bottom : text.top | 115 | bottom: constrained ? parent.bottom : text.top | ||
116 | margins: inPanel ? 0.075 * Math.min(parent.width, parent.height) : 0 | ||||
116 | } | 117 | } | ||
117 | source: plasmoid.icon | 118 | source: plasmoid.icon | ||
118 | enabled: root.enabled | 119 | enabled: root.enabled | ||
119 | active: root.containsMouse || root.containsAcceptableDrag | 120 | active: root.containsMouse || root.containsAcceptableDrag | ||
120 | usesPlasmaTheme: false | 121 | usesPlasmaTheme: false | ||
121 | opacity: plasmoid.busy ? 0.6 : 1 | 122 | opacity: plasmoid.busy ? 0.6 : 1 | ||
122 | } | 123 | } | ||
123 | 124 | | |||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |