2014-11-19 18:58:09 +00:00
|
|
|
|
2016-08-03 09:38:55 +00:00
|
|
|
var desktopsArray = desktopsForActivity(currentActivity());
|
2014-09-26 19:06:16 +00:00
|
|
|
for (var j = 0; j < desktopsArray.length; j++) {
|
|
|
|
|
desktopsArray[j].wallpaperPlugin = "org.kde.image";
|
2014-09-03 14:50:41 +00:00
|
|
|
}
|
|
|
|
|
|
2015-03-13 21:16:19 +00:00
|
|
|
var panel = new Panel("org.kde.phone.panel");
|
2017-09-01 16:35:41 +00:00
|
|
|
panel.addWidget("org.kde.phone.notifications");
|
2015-06-11 05:43:14 +00:00
|
|
|
panel.addWidget("org.kde.plasma.networkmanagement");
|
2017-12-19 17:14:54 +00:00
|
|
|
var battery = panel.addWidget("org.kde.plasma.battery");
|
|
|
|
|
battery.writeConfig("showPercentage", true);
|
|
|
|
|
battery.reloadConfig();
|
2015-06-23 00:57:12 +00:00
|
|
|
panel.addWidget("org.kde.plasma.volume");
|
2016-10-05 13:15:28 +00:00
|
|
|
panel.addWidget("org.kde.phone.activities");
|
2019-02-07 11:38:11 +00:00
|
|
|
panel.height = 1 * gridUnit;
|
2015-06-11 22:35:46 +00:00
|
|
|
|
|
|
|
|
var bottomPanel = new Panel("org.kde.phone.taskpanel");
|
|
|
|
|
bottomPanel.location = "bottom";
|
2015-06-23 05:26:56 +00:00
|
|
|
|
2015-08-21 15:00:11 +00:00
|
|
|
if (screenGeometry(bottomPanel.screen).height > screenGeometry(bottomPanel.screen).width)
|
2019-02-07 11:38:11 +00:00
|
|
|
bottomPanel.height = 2 * gridUnit;
|
2015-08-21 13:24:22 +00:00
|
|
|
else
|
2019-02-07 11:38:11 +00:00
|
|
|
bottomPanel.height = 1 * gridUnit;
|