mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
shell/updates: sync panelsfix with layout.js
This commit is contained in:
parent
2403b20304
commit
b4934ff817
1 changed files with 4 additions and 4 deletions
|
|
@ -8,22 +8,22 @@ let bottomFound = false
|
||||||
|
|
||||||
for (let i in panels()) {
|
for (let i in panels()) {
|
||||||
print(panels()[i].type)
|
print(panels()[i].type)
|
||||||
if (panels()[i].type === "org.kde.phone.panel") {
|
if (panels()[i].type === "org.kde.plasma.mobile.panel") {
|
||||||
topFound = true;
|
topFound = true;
|
||||||
} else if (panels()[i].type === "org.kde.phone.taskpanel") {
|
} else if (panels()[i].type === "org.kde.plasma.mobile.taskpanel") {
|
||||||
bottomFound = true;
|
bottomFound = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!topFound) {
|
if (!topFound) {
|
||||||
// keep widget list synced with the layout.js
|
// keep widget list synced with the layout.js
|
||||||
let topPanel = new Panel("org.kde.phone.panel")
|
let topPanel = new Panel("org.kde.plasma.mobile.panel")
|
||||||
topPanel.addWidget("org.kde.plasma.notifications");
|
topPanel.addWidget("org.kde.plasma.notifications");
|
||||||
topPanel.location = "top";
|
topPanel.location = "top";
|
||||||
topPanel.height = 1.25 * gridUnit;
|
topPanel.height = 1.25 * gridUnit;
|
||||||
}
|
}
|
||||||
if (!bottomFound) {
|
if (!bottomFound) {
|
||||||
let bottomPanel = new Panel("org.kde.phone.taskpanel")
|
let bottomPanel = new Panel("org.kde.plasma.mobile.taskpanel")
|
||||||
bottomPanel.location = "bottom";
|
bottomPanel.location = "bottom";
|
||||||
bottomPanel.height = 2 * gridUnit;
|
bottomPanel.height = 2 * gridUnit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue