mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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()) {
|
||||
print(panels()[i].type)
|
||||
if (panels()[i].type === "org.kde.phone.panel") {
|
||||
if (panels()[i].type === "org.kde.plasma.mobile.panel") {
|
||||
topFound = true;
|
||||
} else if (panels()[i].type === "org.kde.phone.taskpanel") {
|
||||
} else if (panels()[i].type === "org.kde.plasma.mobile.taskpanel") {
|
||||
bottomFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!topFound) {
|
||||
// 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.location = "top";
|
||||
topPanel.height = 1.25 * gridUnit;
|
||||
}
|
||||
if (!bottomFound) {
|
||||
let bottomPanel = new Panel("org.kde.phone.taskpanel")
|
||||
let bottomPanel = new Panel("org.kde.plasma.mobile.taskpanel")
|
||||
bottomPanel.location = "bottom";
|
||||
bottomPanel.height = 2 * gridUnit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue