Ubuntu Pastebin

Paste from cimi at Fri, 20 Nov 2015 15:46:34 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
=== modified file 'qml/Dash/GenericScopeView.qml'
--- qml/Dash/GenericScopeView.qml	2015-11-20 15:36:42 +0000
+++ qml/Dash/GenericScopeView.qml	2015-11-20 15:46:23 +0000
@@ -360,17 +360,22 @@
                         baseItem.expand(shouldExpand, false /*animate*/);
                     }
                     updateRanges();
-                    if (scope && scope.id === "clickscope" && (categoryId === "predefined" || categoryId === "local")) {
-                        // Yeah, hackish :/
-                        if (scopeView.width > units.gu(45)) {
-                            if (scopeView.width >= units.gu(70)) {
-                                cardTool.cardWidth = units.gu(9);
-                            } else {
-                                cardTool.cardWidth = units.gu(10);
+                    if (scope && scope.id === "clickscope") {
+                        if (categoryId === "predefined" || categoryId === "local") {
+                            // Yeah, hackish :/
+                            if (scopeView.width > units.gu(45)) {
+                                if (scopeView.width >= units.gu(70)) {
+                                    cardTool.cardWidth = units.gu(9);
+                                } else {
+                                    cardTool.cardWidth = units.gu(10);
+                                }
                             }
+                            cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
+                            item.artShapeStyle = "icon";
+                        } else {
+                            // Should be ubuntu store icon
+                            item.artShapeStyle = "shadow";
                         }
-                        cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
-                        item.artShapeStyle = "icon";
                     }
                     item.cardTool = cardTool;
                 }
Download as text