File indexing completed on 2024-05-12 17:07:49

0001 // SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 /**
0005  * Configuration updates for Plasma 5.24
0006  * - Panel heights were changed, ensure those are updated
0007  */
0008 
0009 print("Applying shell updates for 5.24...")
0010 for (let i in panels()) {
0011     print("Found panel of type: " + panels()[i].type);
0012     if (panels()[i].type === "org.kde.phone.panel") {
0013         panels()[i].height = 1.25 * gridUnit;
0014     } else if (panels()[i].type === "org.kde.phone.taskpanel") {
0015         panels()[i].height = 2 * gridUnit;
0016     }
0017 }
0018