mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 13:55:58 +00:00
feat(desktop): one bottom panel with the system tray instead of a top bar (#1772)
This commit is contained in:
1 parent
e892805c2f
commit
5786e89ff4
1 file changed
+1
-12
+1
-12
@@ -33,21 +33,10 @@ tasks.writeConfig("launchers", [
|
||||
"applications:org.kde.kate.desktop",
|
||||
]);
|
||||
|
||||
var bar = new Panel;
|
||||
bar.location = "top";
|
||||
bar.height = 2 * Math.ceil(gridUnit * 1.6 / 2);
|
||||
bar.addWidget("org.kde.plasma.pager");
|
||||
bar.addWidget("org.kde.plasma.panelspacer");
|
||||
var clock = bar.addWidget("org.kde.plasma.digitalclock");
|
||||
clock.currentConfigGroup = ["Appearance"];
|
||||
clock.writeConfig("dateFormat", "isoDate");
|
||||
clock.writeConfig("showDate", true);
|
||||
bar.addWidget("org.kde.plasma.panelspacer");
|
||||
var tray = bar.addWidget("org.kde.plasma.systemtray");
|
||||
var tray = dock.addWidget("org.kde.plasma.systemtray");
|
||||
var trayId = tray.readConfig("SystrayContainmentId");
|
||||
if (trayId) {
|
||||
var trayContainment = desktopById(trayId);
|
||||
trayContainment.currentConfigGroup = ["General"];
|
||||
trayContainment.writeConfig("scaleIconsToFit", true);
|
||||
}
|
||||
bar.addWidget("org.kde.plasma.showdesktop");
|
||||
Reference in new issue
Block a user