mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
[shell/updates] Ensure upgrade process has new panel height
This commit is contained in:
parent
b8d096322f
commit
8c22f48e59
1 changed files with 18 additions and 0 deletions
18
shell/contents/updates/5_24_update.js
Normal file
18
shell/contents/updates/5_24_update.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/**
|
||||
* Configuration updates for Plasma 5.24
|
||||
* - Panel heights were changed, ensure those are updated
|
||||
*/
|
||||
|
||||
print("Applying shell updates for 5.24...")
|
||||
for (let i in panels()) {
|
||||
print("Found panel of type: " + panels()[i].type);
|
||||
if (panels()[i].type === "org.kde.phone.panel") {
|
||||
panels()[i].height = 1.25 * gridUnit;
|
||||
} else if (panels()[i].type === "org.kde.phone.taskpanel") {
|
||||
panels()[i].height = 2 * gridUnit;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue