Merge lp:~saviq/unity-2d/shell_revert-resizable-launcher into lp:~unity-2d-team/unity-2d/unity-2d-shell-shaped

Proposed by Michał Sawicz
Status: Merged
Approved by: Ugo Riboni
Approved revision: 916
Merged at revision: 916
Proposed branch: lp:~saviq/unity-2d/shell_revert-resizable-launcher
Merge into: lp:~unity-2d-team/unity-2d/unity-2d-shell-shaped
Diff against target: 506 lines (+51/-88)
13 files modified
data/com.canonical.Unity2d.gschema.xml (+0/-5)
libunity-2d-private/src/launcherclient.cpp (+2/-0)
libunity-2d-private/src/launcherclient.h (+1/-0)
libunity-2d-private/src/screeninfo.cpp (+2/-11)
libunity-2d-private/src/screeninfo.h (+0/-1)
libunity-2d-private/src/unity2dpanel.cpp (+8/-26)
libunity-2d-private/src/unity2dpanel.h (+1/-4)
panel/app/panelmanager.cpp (+1/-1)
panel/applets/appname/appnameapplet.cpp (+2/-3)
shell/Shell.qml (+1/-1)
shell/launcher/Launcher.qml (+4/-2)
shell/launcher/LauncherItem.qml (+25/-30)
shell/launcher/LauncherList.qml (+4/-4)
To merge this branch: bzr merge lp:~saviq/unity-2d/shell_revert-resizable-launcher
Reviewer Review Type Date Requested Status
Ugo Riboni Pending
Review via email: mp+88744@code.launchpad.net

Commit message

[shell] revert resizable launcher
The resizable launcher code needs to be revisited at a later time.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/com.canonical.Unity2d.gschema.xml'
--- data/com.canonical.Unity2d.gschema.xml 2011-12-14 13:36:26 +0000
+++ data/com.canonical.Unity2d.gschema.xml 2012-01-16 18:02:25 +0000
@@ -24,11 +24,6 @@
24 2: intellihide; same as auto hide but the launcher will disappear if a window is placed on top of it24 2: intellihide; same as auto hide but the launcher will disappear if a window is placed on top of it
25 </description>25 </description>
26 </key>26 </key>
27 <key name="thickness" type="i">
28 <default>66</default>
29 <summary>Thickness of the launcher</summary>
30 <description>Size of the small side (typically the horizontal side) of the launcher</description>
31 </key>
32 </schema>27 </schema>
33 <schema path="/com/canonical/unity-2d/panel/" id="com.canonical.Unity2d.Panel" gettext-domain="unity-2d">28 <schema path="/com/canonical/unity-2d/panel/" id="com.canonical.Unity2d.Panel" gettext-domain="unity-2d">
34 <key type="as" name="applets">29 <key type="as" name="applets">
3530
=== modified file 'libunity-2d-private/src/launcherclient.cpp'
--- libunity-2d-private/src/launcherclient.cpp 2012-01-10 10:42:46 +0000
+++ libunity-2d-private/src/launcherclient.cpp 2012-01-16 18:02:25 +0000
@@ -21,4 +21,6 @@
21// Self21// Self
22#include "launcherclient.h"22#include "launcherclient.h"
2323
24const int LauncherClient::MaximumWidth = 65;
25
24#include "launcherclient.moc"26#include "launcherclient.moc"
2527
=== modified file 'libunity-2d-private/src/launcherclient.h'
--- libunity-2d-private/src/launcherclient.h 2011-12-14 13:45:43 +0000
+++ libunity-2d-private/src/launcherclient.h 2012-01-16 18:02:25 +0000
@@ -32,6 +32,7 @@
32class LauncherClient32class LauncherClient
33{33{
34public:34public:
35 static const int MaximumWidth;
35};36};
3637
37#endif /* LAUNCHERCLIENT_H */38#endif /* LAUNCHERCLIENT_H */
3839
=== modified file 'libunity-2d-private/src/screeninfo.cpp'
--- libunity-2d-private/src/screeninfo.cpp 2012-01-09 18:08:01 +0000
+++ libunity-2d-private/src/screeninfo.cpp 2012-01-16 18:02:25 +0000
@@ -14,7 +14,6 @@
14#include <QX11Info>14#include <QX11Info>
15#include <QApplication>15#include <QApplication>
16#include <QDesktopWidget>16#include <QDesktopWidget>
17#include <QVariant>
1817
19ScreenInfo::ScreenInfo(QObject *parent) :18ScreenInfo::ScreenInfo(QObject *parent) :
20 QObject(parent),19 QObject(parent),
@@ -30,8 +29,6 @@
30 SLOT(updateGeometry(int)));29 SLOT(updateGeometry(int)));
31 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)),30 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)),
32 SLOT(updateAvailableGeometry(int)));31 SLOT(updateAvailableGeometry(int)));
33 connect(&launcher2dConfiguration(), SIGNAL(thicknessChanged(int)),
34 SLOT(onLauncherThicknessChanged()));
35}32}
3633
3734
@@ -79,11 +76,10 @@
79 QRect screenRect = QApplication::desktop()->screenGeometry(screen);76 QRect screenRect = QApplication::desktop()->screenGeometry(screen);
80 QRect availableRect = QApplication::desktop()->availableGeometry(screen);77 QRect availableRect = QApplication::desktop()->availableGeometry(screen);
8178
82 int launcherThickness = launcher2dConfiguration().property("thickness").toInt();
83 QRect availableGeometry(79 QRect availableGeometry(
84 launcherThickness,80 LauncherClient::MaximumWidth,
85 availableRect.top(),81 availableRect.top(),
86 screenRect.width() - launcherThickness,82 screenRect.width() - LauncherClient::MaximumWidth,
87 availableRect.height()83 availableRect.height()
88 );84 );
89 if (QApplication::isRightToLeft()) {85 if (QApplication::isRightToLeft()) {
@@ -112,11 +108,6 @@
112 }108 }
113}109}
114110
115void ScreenInfo::onLauncherThicknessChanged()
116{
117 Q_EMIT panelsFreeGeometryChanged(panelsFreeGeometry());
118}
119
120bool ScreenInfo::isCompositingManagerRunning() const111bool ScreenInfo::isCompositingManagerRunning() const
121{112{
122 return QX11Info::isCompositingManagerRunning();113 return QX11Info::isCompositingManagerRunning();
123114
=== modified file 'libunity-2d-private/src/screeninfo.h'
--- libunity-2d-private/src/screeninfo.h 2012-01-09 18:08:01 +0000
+++ libunity-2d-private/src/screeninfo.h 2012-01-16 18:02:25 +0000
@@ -54,7 +54,6 @@
54private Q_SLOTS:54private Q_SLOTS:
55 void updateGeometry(int screen);55 void updateGeometry(int screen);
56 void updateAvailableGeometry(int screen);56 void updateAvailableGeometry(int screen);
57 void onLauncherThicknessChanged();
5857
59private:58private:
60 WorkspacesInfo m_workspacesInfo;59 WorkspacesInfo m_workspacesInfo;
6160
=== modified file 'libunity-2d-private/src/unity2dpanel.cpp'
--- libunity-2d-private/src/unity2dpanel.cpp 2011-12-14 13:34:52 +0000
+++ libunity-2d-private/src/unity2dpanel.cpp 2012-01-16 18:02:25 +0000
@@ -49,7 +49,6 @@
49 bool m_useStrut;49 bool m_useStrut;
50 int m_delta;50 int m_delta;
51 bool m_manualSliding;51 bool m_manualSliding;
52 int m_thickness;
5352
54 void setStrut(ulong* struts)53 void setStrut(ulong* struts)
55 {54 {
@@ -105,15 +104,15 @@
105 switch (m_edge) {104 switch (m_edge) {
106 case Unity2dPanel::LeftEdge:105 case Unity2dPanel::LeftEdge:
107 if (QApplication::isLeftToRight()) {106 if (QApplication::isLeftToRight()) {
108 rect = QRect(screen.left(), available.top(), m_thickness, available.height());107 rect = QRect(screen.left(), available.top(), q->width(), available.height());
109 rect.moveLeft(m_delta);108 rect.moveLeft(m_delta);
110 } else {109 } else {
111 rect = QRect(screen.right() - m_thickness, available.top(), m_thickness, available.height());110 rect = QRect(screen.right() - q->width(), available.top(), q->width(), available.height());
112 rect.moveRight(screen.right() - m_delta);111 rect.moveRight(screen.right() - m_delta);
113 }112 }
114 break;113 break;
115 case Unity2dPanel::TopEdge:114 case Unity2dPanel::TopEdge:
116 rect = QRect(screen.left(), screen.top(), screen.width(), m_thickness);115 rect = QRect(screen.left(), screen.top(), screen.width(), q->height());
117 rect.moveTop(m_delta);116 rect.moveTop(m_delta);
118 break;117 break;
119 }118 }
@@ -158,7 +157,6 @@
158 d->m_layout = new QHBoxLayout(this);157 d->m_layout = new QHBoxLayout(this);
159 d->m_layout->setMargin(0);158 d->m_layout->setMargin(0);
160 d->m_layout->setSpacing(0);159 d->m_layout->setSpacing(0);
161 d->m_thickness = 0;
162160
163 d->m_slideInAnimation = new QPropertyAnimation(this);161 d->m_slideInAnimation = new QPropertyAnimation(this);
164 d->m_slideInAnimation->setTargetObject(this);162 d->m_slideInAnimation->setTargetObject(this);
@@ -170,7 +168,7 @@
170 d->m_slideOutAnimation->setTargetObject(this);168 d->m_slideOutAnimation->setTargetObject(this);
171 d->m_slideOutAnimation->setPropertyName("delta");169 d->m_slideOutAnimation->setPropertyName("delta");
172 d->m_slideOutAnimation->setDuration(SLIDE_DURATION);170 d->m_slideOutAnimation->setDuration(SLIDE_DURATION);
173 d->m_slideOutAnimation->setEndValue(-thickness());171 d->m_slideOutAnimation->setEndValue(-panelSize());
174172
175 setAttribute(Qt::WA_X11NetWmWindowTypeDock);173 setAttribute(Qt::WA_X11NetWmWindowTypeDock);
176 setAttribute(Qt::WA_Hover);174 setAttribute(Qt::WA_Hover);
@@ -219,13 +217,13 @@
219{217{
220 QWidget::showEvent(event);218 QWidget::showEvent(event);
221 d->updateEdge();219 d->updateEdge();
222 d->m_slideOutAnimation->setEndValue(-thickness());220 d->m_slideOutAnimation->setEndValue(-panelSize());
223}221}
224222
225void Unity2dPanel::resizeEvent(QResizeEvent* event)223void Unity2dPanel::resizeEvent(QResizeEvent* event)
226{224{
227 QWidget::resizeEvent(event);225 QWidget::resizeEvent(event);
228 d->m_slideOutAnimation->setEndValue(-thickness());226 d->m_slideOutAnimation->setEndValue(-panelSize());
229}227}
230228
231void Unity2dPanel::slotWorkAreaResized(int screen)229void Unity2dPanel::slotWorkAreaResized(int screen)
@@ -279,34 +277,18 @@
279void Unity2dPanel::setDelta(int delta)277void Unity2dPanel::setDelta(int delta)
280{278{
281 /* Clamp delta to be between 0 and minus its size */279 /* Clamp delta to be between 0 and minus its size */
282 int minDelta = -thickness();280 int minDelta = -panelSize();
283 int maxDelta = 0;281 int maxDelta = 0;
284282
285 d->m_delta = qMax(qMin(delta, maxDelta), minDelta);283 d->m_delta = qMax(qMin(delta, maxDelta), minDelta);
286 d->updateGeometry();284 d->updateGeometry();
287}285}
288286
289int Unity2dPanel::thickness() const287int Unity2dPanel::panelSize() const
290{288{
291 return (d->m_edge == Unity2dPanel::TopEdge) ? height() : width();289 return (d->m_edge == Unity2dPanel::TopEdge) ? height() : width();
292}290}
293291
294void Unity2dPanel::setThickness(int thickness)
295{
296 if (thickness == d->m_thickness) {
297 return;
298 }
299
300 d->m_thickness = thickness;
301
302 /* Update variables that depend on thickness' value */
303 setDelta(d->m_delta);
304 d->m_slideOutAnimation->setEndValue(-thickness);
305 d->updateGeometry();
306
307 Q_EMIT thicknessChanged(thickness);
308}
309
310void Unity2dPanel::slideIn()292void Unity2dPanel::slideIn()
311{293{
312 d->m_slideOutAnimation->stop();294 d->m_slideOutAnimation->stop();
313295
=== modified file 'libunity-2d-private/src/unity2dpanel.h'
--- libunity-2d-private/src/unity2dpanel.h 2011-12-14 13:34:52 +0000
+++ libunity-2d-private/src/unity2dpanel.h 2012-01-16 18:02:25 +0000
@@ -45,7 +45,6 @@
45 */45 */
46 Q_PROPERTY(int manualSliding READ manualSliding WRITE setManualSliding NOTIFY manualSlidingChanged)46 Q_PROPERTY(int manualSliding READ manualSliding WRITE setManualSliding NOTIFY manualSlidingChanged)
47 Q_PROPERTY(bool useStrut READ useStrut WRITE setUseStrut NOTIFY useStrutChanged)47 Q_PROPERTY(bool useStrut READ useStrut WRITE setUseStrut NOTIFY useStrutChanged)
48 Q_PROPERTY(int thickness READ thickness WRITE setThickness NOTIFY thicknessChanged)
4948
50public:49public:
51 enum Edge {50 enum Edge {
@@ -77,8 +76,7 @@
77 int delta() const;76 int delta() const;
78 void setDelta(int);77 void setDelta(int);
7978
80 int thickness() const;79 int panelSize() const;
81 void setThickness(int);
8280
83 bool manualSliding() const;81 bool manualSliding() const;
84 void setManualSliding(bool);82 void setManualSliding(bool);
@@ -92,7 +90,6 @@
92Q_SIGNALS:90Q_SIGNALS:
93 void manualSlidingChanged(bool);91 void manualSlidingChanged(bool);
94 void useStrutChanged(bool);92 void useStrutChanged(bool);
95 void thicknessChanged(int);
9693
97protected:94protected:
98 virtual void showEvent(QShowEvent*);95 virtual void showEvent(QShowEvent*);
9996
=== modified file 'panel/app/panelmanager.cpp'
--- panel/app/panelmanager.cpp 2011-12-14 13:34:52 +0000
+++ panel/app/panelmanager.cpp 2012-01-16 18:02:25 +0000
@@ -141,7 +141,7 @@
141 Unity2dPanel* panel = new Unity2dPanel;141 Unity2dPanel* panel = new Unity2dPanel;
142 panel->setAccessibleName("Top Panel");142 panel->setAccessibleName("Top Panel");
143 panel->setEdge(Unity2dPanel::TopEdge);143 panel->setEdge(Unity2dPanel::TopEdge);
144 panel->setThickness(24);144 panel->setFixedHeight(24);
145145
146 QPoint p;146 QPoint p;
147 if (QApplication::isRightToLeft()) {147 if (QApplication::isRightToLeft()) {
148148
=== modified file 'panel/applets/appname/appnameapplet.cpp'
--- panel/applets/appname/appnameapplet.cpp 2011-12-14 13:36:26 +0000
+++ panel/applets/appname/appnameapplet.cpp 2012-01-16 18:02:25 +0000
@@ -55,7 +55,6 @@
55#include <QPoint>55#include <QPoint>
5656
57static const int APPNAME_LABEL_LEFT_MARGIN = 6;57static const int APPNAME_LABEL_LEFT_MARGIN = 6;
58static const int APPNAME_WINDOW_BUTTONS_WIDTH = 66;
5958
60class WindowButton : public QAbstractButton59class WindowButton : public QAbstractButton
61{60{
@@ -183,7 +182,7 @@
183 layout->addWidget(m_closeButton);182 layout->addWidget(m_closeButton);
184 layout->addWidget(m_minimizeButton);183 layout->addWidget(m_minimizeButton);
185 layout->addWidget(m_maximizeButton);184 layout->addWidget(m_maximizeButton);
186 m_windowButtonWidget->setFixedWidth(APPNAME_WINDOW_BUTTONS_WIDTH);185 m_windowButtonWidget->setFixedWidth(LauncherClient::MaximumWidth);
187 QObject::connect(m_closeButton, SIGNAL(clicked()), m_windowHelper, SLOT(close()));186 QObject::connect(m_closeButton, SIGNAL(clicked()), m_windowHelper, SLOT(close()));
188 QObject::connect(m_minimizeButton, SIGNAL(clicked()), m_windowHelper, SLOT(minimize()));187 QObject::connect(m_minimizeButton, SIGNAL(clicked()), m_windowHelper, SLOT(minimize()));
189 QObject::connect(m_maximizeButton, SIGNAL(clicked()), m_windowHelper, SLOT(toggleMaximize()));188 QObject::connect(m_maximizeButton, SIGNAL(clicked()), m_windowHelper, SLOT(toggleMaximize()));
@@ -301,7 +300,7 @@
301300
302 // Define label width301 // Define label width
303 if (!isMaximized && showMenu) {302 if (!isMaximized && showMenu) {
304 d->m_label->setMaximumWidth(APPNAME_WINDOW_BUTTONS_WIDTH);303 d->m_label->setMaximumWidth(LauncherClient::MaximumWidth);
305 } else {304 } else {
306 d->m_label->setMaximumWidth(QWIDGETSIZE_MAX);305 d->m_label->setMaximumWidth(QWIDGETSIZE_MAX);
307 }306 }
308307
=== modified file 'shell/Shell.qml'
--- shell/Shell.qml 2012-01-13 11:58:28 +0000
+++ shell/Shell.qml 2012-01-16 18:02:25 +0000
@@ -31,7 +31,7 @@
31 id: launcherLoader31 id: launcherLoader
32 anchors.top: parent.top32 anchors.top: parent.top
33 anchors.bottom: parent.bottom33 anchors.bottom: parent.bottom
34 width: launcher2dConfiguration.thickness34 width: 65
35 x: visibilityController.shown ? 0 : -width35 x: visibilityController.shown ? 0 : -width
3636
37 KeyNavigation.right: dashLoader37 KeyNavigation.right: dashLoader
3838
=== modified file 'shell/launcher/Launcher.qml'
--- shell/launcher/Launcher.qml 2012-01-10 16:41:53 +0000
+++ shell/launcher/Launcher.qml 2012-01-16 18:02:25 +0000
@@ -117,9 +117,10 @@
117 }117 }
118118
119 anchors.top: parent.top119 anchors.top: parent.top
120 anchors.bottom: shelf.top120 anchors.bottomMargin: 0
121 /* the distance from the top of the launcher and the dash tile is 6 instead of 7 */121 /* the distance from the top of the launcher and the dash tile is 6 instead of 7 */
122 anchors.topMargin: -1122 anchors.topMargin: -1
123 height: parent.height - shelf.height + ((selectionOutlineSize - tileSize)) - 4
123 width: parent.width124 width: parent.width
124125
125 /* Ensure all delegates are cached in order to improve smoothness of126 /* Ensure all delegates are cached in order to improve smoothness of
@@ -163,7 +164,8 @@
163 objectName: "shelf"164 objectName: "shelf"
164165
165 anchors.bottom: parent.bottom166 anchors.bottom: parent.bottom
166 anchors.bottomMargin: main.anchors.topMargin167 anchors.bottomMargin: main.anchors.bottomMargin
168 anchors.topMargin: main.anchors.topMargin
167 height: selectionOutlineSize * count169 height: selectionOutlineSize * count
168 width: parent.width170 width: parent.width
169 interactive: false171 interactive: false
170172
=== modified file 'shell/launcher/LauncherItem.qml'
--- shell/launcher/LauncherItem.qml 2012-01-10 17:14:44 +0000
+++ shell/launcher/LauncherItem.qml 2012-01-16 18:02:25 +0000
@@ -52,8 +52,11 @@
5252
53 anchors.horizontalCenter: parent.horizontalCenter53 anchors.horizontalCenter: parent.horizontalCenter
5454
55 height: selectionOutlineSize
56
55 property bool isBfb: false57 property bool isBfb: false
56 property int tileSize58 property int tileSize
59 property int selectionOutlineSize
57 property alias name: looseItem.objectName60 property alias name: looseItem.objectName
58 property string desktopFile: ""61 property string desktopFile: ""
59 property alias icon: icon.source62 property alias icon: icon.source
@@ -132,13 +135,8 @@
132 the active one */135 the active one */
133 Image {136 Image {
134 objectName: "active"137 objectName: "active"
135
136 anchors.top: parent.top
137 anchors.bottom: parent.bottom
138 anchors.right: parent.right138 anchors.right: parent.right
139139 y: item.height - item.selectionOutlineSize / 2 - height / 2
140 width: parent.width * 0.15
141 fillMode: Image.PreserveAspectFit
142 mirror: isRightToLeft()140 mirror: isRightToLeft()
143141
144 source: "image://blended/%1color=%2alpha=%3"142 source: "image://blended/%1color=%2alpha=%3"
@@ -164,9 +162,7 @@
164 printed for the following two anchor assignements. This fixes the162 printed for the following two anchor assignements. This fixes the
165 problem, but I'm not sure if it should happen in the first place. */163 problem, but I'm not sure if it should happen in the first place. */
166 anchors.left: (parent) ? parent.left : undefined164 anchors.left: (parent) ? parent.left : undefined
167 width: parent.width * 0.15165 y: item.height - item.selectionOutlineSize / 2 - height / 2 + getPipOffset(index)
168 height: width * sourceSize.height / sourceSize.width
169 y: (item.height - height) / 2 + getPipOffset(index) * 0.015 * item.height
170 mirror: isRightToLeft()166 mirror: isRightToLeft()
171167
172 source: "image://blended/%1color=%2alpha=%3"168 source: "image://blended/%1color=%2alpha=%3"
@@ -216,6 +212,8 @@
216 running: launching212 running: launching
217 }213 }
218214
215 sourceSize.width: item.tileSize
216 sourceSize.height: item.tileSize
219 source: {217 source: {
220 if (isBfb) {218 if (isBfb) {
221 if (declarativeView.focus && item.activeFocus) {219 if (declarativeView.focus && item.activeFocus) {
@@ -240,6 +238,8 @@
240 anchors.fill: parent238 anchors.fill: parent
241 smooth: true239 smooth: true
242240
241 sourceSize.width: item.tileSize
242 sourceSize.height: item.tileSize
243 source: "artwork/round_outline_54x54.png"243 source: "artwork/round_outline_54x54.png"
244244
245 opacity: 0245 opacity: 0
@@ -258,13 +258,11 @@
258 Image {258 Image {
259 id: icon259 id: icon
260 objectName: "icon"260 objectName: "icon"
261261 anchors.centerIn: parent
262 anchors.fill: parent
263 anchors.margins: parent.width * 0.056
264 smooth: true262 smooth: true
265263
266 sourceSize.width: Math.max(width, 16)264 sourceSize.width: 48
267 sourceSize.height: Math.max(height, 16)265 sourceSize.height: 48
268266
269 /* Whenever one of the parameters used in calculating the background color of267 /* Whenever one of the parameters used in calculating the background color of
270 the icon changes, recalculate its value */268 the icon changes, recalculate its value */
@@ -288,14 +286,14 @@
288 smooth: true286 smooth: true
289287
290 source: isBfb ? "artwork/squircle_shine_54.png" : "artwork/round_shine_54x54.png"288 source: isBfb ? "artwork/squircle_shine_54.png" : "artwork/round_shine_54x54.png"
289 sourceSize.width: item.tileSize
290 sourceSize.height: item.tileSize
291 }291 }
292292
293 Image {293 Image {
294 id: selectionOutline294 id: selectionOutline
295 objectName: "selectionOutline"295 objectName: "selectionOutline"
296 anchors.centerIn: parent296 anchors.centerIn: parent
297 width: item.width
298 height: item.height
299 smooth: true297 smooth: true
300 source: isBfb ? "artwork/squircle_glow_54.png" : "artwork/round_selected_66x66.png"298 source: isBfb ? "artwork/squircle_glow_54.png" : "artwork/round_selected_66x66.png"
301 visible: declarativeView.focus && item.activeFocus299 visible: declarativeView.focus && item.activeFocus
@@ -303,22 +301,22 @@
303301
304 Rectangle {302 Rectangle {
305 id: counter303 id: counter
306 height: width / 2 - border.width304 height: 16 - border.width
307 width: parent.width * 0.59305 width: 32
308 // Using anchors the item will be 1 pixel off with respect to Unity306 // Using anchors the item will be 1 pixel off with respect to Unity
309 y: 1307 y: 1
310 x: 1308 x: 1
311 radius: height / 2 - 1309 radius: height / 2 - 1
312 smooth: true310 smooth: true
313 border.width: width / 16311 border.width: 2
314 border.color: "white"312 border.color: "white"
315 color: "#595959"313 color: "#595959"
316 visible: launcherItem.counterVisible314 visible: launcherItem.counterVisible
317315
318 Text {316 Text {
319 anchors.centerIn: parent317 anchors.centerIn: parent
320 font.pixelSize: parent.height * 0.79318 font.pixelSize: parent.height - 3
321 width: parent.width * 0.84319 width: parent.width - 5
322 smooth: true320 smooth: true
323 elide: Text.ElideRight321 elide: Text.ElideRight
324 horizontalAlignment: Text.AlignHCenter322 horizontalAlignment: Text.AlignHCenter
@@ -331,8 +329,7 @@
331 id: progressBar329 id: progressBar
332 objectName: "progressBar"330 objectName: "progressBar"
333 source: "artwork/progress_bar_trough.png"331 source: "artwork/progress_bar_trough.png"
334 anchors.top: parent.top332 anchors.verticalCenter: parent.verticalCenter
335 anchors.bottom: parent.bottom
336 anchors.left: parent.left333 anchors.left: parent.left
337 width: tile.width334 width: tile.width
338 smooth: true335 smooth: true
@@ -341,10 +338,9 @@
341 Image {338 Image {
342 id: progressFill339 id: progressFill
343 source: "artwork/progress_bar_fill.png"340 source: "artwork/progress_bar_fill.png"
344 x: parent.width * 0.11341 anchors.verticalCenter: parent.verticalCenter
345 y: (parent.height - height) / 2342 x: 6
346 width: parent.width * 0.78 * launcherItem.progress343 width: sourceSize.width * launcherItem.progress
347 height: parent.height * 0.074
348 smooth: true344 smooth: true
349345
350 Behavior on width {346 Behavior on width {
@@ -377,8 +373,8 @@
377 anchors.centerIn: parent373 anchors.centerIn: parent
378 color: "#B3000000" // 0.7 opacity on black374 color: "#B3000000" // 0.7 opacity on black
379 radius: 2375 radius: 2
380 width: parent.width * 0.41376 width: 22
381 height: parent.height * 0.41377 height: 22
382 smooth: true378 smooth: true
383379
384 Text {380 Text {
@@ -386,7 +382,6 @@
386 anchors.centerIn: parent382 anchors.centerIn: parent
387 color: "white"383 color: "white"
388 smooth: true384 smooth: true
389 font.pixelSize: parent.height * 0.7
390 }385 }
391 }386 }
392387
393388
=== modified file 'shell/launcher/LauncherList.qml'
--- shell/launcher/LauncherList.qml 2012-01-10 17:14:44 +0000
+++ shell/launcher/LauncherList.qml 2012-01-16 18:02:25 +0000
@@ -25,13 +25,13 @@
2525
26 /* The spacing is explicitly set in order to compensate26 /* The spacing is explicitly set in order to compensate
27 the space added by selectionOutline and round_corner_54x54.png. */27 the space added by selectionOutline and round_corner_54x54.png. */
28 spacing: -width * 0.12 // FIXME: live update broken by this code28 spacing: -8
2929
30 property int tileSize: width * 0.8230 property int tileSize: 54
3131
32 /* selectionOutline tile size, so AutoScrollingList view can calculate32 /* selectionOutline tile size, so AutoScrollingList view can calculate
33 the right height. */33 the right height. */
34 property int selectionOutlineSize: width // this is the size of an item; items are square34 property int selectionOutlineSize: 65
3535
36 /* Keep a reference to the currently visible contextual menu */36 /* Keep a reference to the currently visible contextual menu */
37 property variant visibleMenu37 property variant visibleMenu
@@ -96,8 +96,8 @@
96 name: item.name96 name: item.name
9797
98 width: list.width98 width: list.width
99 height: width
100 tileSize: list.tileSize99 tileSize: list.tileSize
100 selectionOutlineSize: list.selectionOutlineSize
101101
102 desktopFile: item.desktop_file ? item.desktop_file : ""102 desktopFile: item.desktop_file ? item.desktop_file : ""
103 icon: item.icon != "" ? "image://icons/" + item.icon : "image://icons/unknown"103 icon: item.icon != "" ? "image://icons/" + item.icon : "image://icons/unknown"

Subscribers

People subscribed via source and target branches

to all changes: