Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/PanelConfiguration.qml
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 97 | case PlasmaCore.Types.LeftEdge: | |||
---|---|---|---|---|---|
98 | return panel.screenGeometry.x + panel.distance | 98 | return panel.screenGeometry.x + panel.distance | ||
99 | case PlasmaCore.Types.RightEdge: | 99 | case PlasmaCore.Types.RightEdge: | ||
100 | return panel.screenGeometry.x + panel.screenGeometry.width - panel.width - panel.distance | 100 | return panel.screenGeometry.x + panel.screenGeometry.width - panel.width - panel.distance | ||
101 | case PlasmaCore.Types.BottomEdge: | 101 | case PlasmaCore.Types.BottomEdge: | ||
102 | default: | 102 | default: | ||
103 | return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - panel.distance | 103 | return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - panel.distance | ||
104 | } | 104 | } | ||
105 | } | 105 | } | ||
106 | duration: units.shortDuration * 3 | 106 | duration: units.shortDuration | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | NumberAnimation { | 109 | NumberAnimation { | ||
110 | target: configDialog | 110 | target: configDialog | ||
111 | properties: (panel.location === PlasmaCore.Types.LeftEdge || panel.location === PlasmaCore.Types.RightEdge) ? "x" : "y" | 111 | properties: (panel.location === PlasmaCore.Types.LeftEdge || panel.location === PlasmaCore.Types.RightEdge) ? "x" : "y" | ||
112 | to: { | 112 | to: { | ||
113 | switch (panel.location) { | 113 | switch (panel.location) { | ||
114 | case PlasmaCore.Types.TopEdge: | 114 | case PlasmaCore.Types.TopEdge: | ||
115 | return panel.screenGeometry.y + panel.height + panel.distance | 115 | return panel.screenGeometry.y + panel.height + panel.distance | ||
116 | case PlasmaCore.Types.LeftEdge: | 116 | case PlasmaCore.Types.LeftEdge: | ||
117 | return panel.screenGeometry.x + panel.width + panel.distance | 117 | return panel.screenGeometry.x + panel.width + panel.distance | ||
118 | case PlasmaCore.Types.RightEdge: | 118 | case PlasmaCore.Types.RightEdge: | ||
119 | return panel.screenGeometry.x + panel.screenGeometry.width - panel.width - configDialog.width - panel.distance | 119 | return panel.screenGeometry.x + panel.screenGeometry.width - panel.width - configDialog.width - panel.distance | ||
120 | case PlasmaCore.Types.BottomEdge: | 120 | case PlasmaCore.Types.BottomEdge: | ||
121 | default: | 121 | default: | ||
122 | return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - configDialog.height - panel.distance | 122 | return panel.screenGeometry.y + panel.screenGeometry.height - panel.height - configDialog.height - panel.distance | ||
123 | } | 123 | } | ||
124 | } | 124 | } | ||
125 | duration: units.shortDuration * 3 | 125 | duration: units.shortDuration | ||
126 | } | 126 | } | ||
127 | } | 127 | } | ||
128 | //END Animations | 128 | //END Animations | ||
129 | 129 | | |||
130 | //BEGIN States | 130 | //BEGIN States | ||
131 | states: [ | 131 | states: [ | ||
132 | State { | 132 | State { | ||
133 | name: "TopEdge" | 133 | name: "TopEdge" | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |