mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 22:33:08 +00:00
Because the widget does not have the text entry internally, and pops up a new window for entering search, which looks confusing and odd on the phone, we just don't add it by default for now until this can be fixed. This makes the first impression a bit better, and hides the annoyance behind needing to manually add the widget. Once the widget is fixed to not behave in such an odd manner, we can evaluate adding it back to the default layout.
15 lines
657 B
JavaScript
15 lines
657 B
JavaScript
var desktopsArray = desktopsForActivity(currentActivity());
|
|
for (var j = 0; j < desktopsArray.length; j++) {
|
|
desktopsArray[j].wallpaperPlugin = "org.kde.image";
|
|
}
|
|
|
|
// keep this list in sync with shell/contents/updates/panelsfix.js
|
|
var panel = new Panel("org.kde.phone.panel");
|
|
panel.location = "top";
|
|
panel.addWidget("org.kde.plasma.notifications");
|
|
panel.addWidget("org.kde.plasma.mediacontroller");
|
|
panel.height = 1.25 * gridUnit; // HACK: supposed to be gridUnit + smallSpacing, but it doesn't seem to give the correct number
|
|
|
|
var bottomPanel = new Panel("org.kde.phone.taskpanel")
|
|
bottomPanel.location = "bottom";
|
|
bottomPanel.height = 2 * gridUnit;
|