on xenial help sign in
Allow libertine-scope to show empty search result hint unmodified
commitdf8a7dd29760bcb9fc68d523155ce54ef35a170e authorLarry Price <larry.price@canonical.com> dateTue 26 Jul 2016, 16:39 (10 years ago) parent0650b49
1 file changed+7−2
qml/Dash/GenericScopeView.qml+7−2
qml/Dash/GenericScopeView.qml+7−2
@@ -343,7 +343,7 @@ FocusScope {
343343 updateRanges();
344344 clickScopeSizingHacks();
345345 if (scope && (scope.id === "clickscope" || scope.id === "libertine-scope.ubuntu_libertine-scope")) {
346− if (scope.id === "libertine-scope.ubuntu_libertine-scope" || categoryId === "predefined" || categoryId === "local") {
346+ if (isLibertineContainerCategory() || categoryId === "predefined" || categoryId === "local") {
347347 cardTool.artShapeSize = Qt.binding(function() { return Qt.size(units.gu(8), units.gu(7.5)) });
348348 cardTool.artShapeStyle = "icon";
349349 } else {
@@ -366,10 +366,15 @@ FocusScope {
366366 property int pxpgu: units.gu(1);
367367 onPxpguChanged: clickScopeSizingHacks();
368368
369+ // Returns true if the current category pertains to a Libertine container
370+ function isLibertineContainerCategory() {
371+ return scope && scope.id === "libertine-scope.ubuntu_libertine-scope" && categoryId !== "hint";
372+ }
373+
369374 function clickScopeSizingHacks() {
370375 if (scope &&
371376 ((scope.id === "clickscope" && (categoryId === "predefined" || categoryId === "local")) ||
372− scope.id === "libertine-scope.ubuntu_libertine-scope")) {
377+ isLibertineContainerCategory())) {
373378 // Yeah, hackish :/
374379 if (scopeView.width > units.gu(45)) {
375380 if (scopeView.width >= units.gu(70)) {