File indexing completed on 2024-05-12 05:36:20

0001 // SPDX-FileCopyrightText: 2014 Aaron J. Seigo
0002 // SPDX-FileCopyrightText: 2014-2019 Marco Martin <mart@kde.org>
0003 // SPDX-FileCopyrightText: 2015-2021 Bhushan Shah <bshah@kde.org>
0004 // SPDX-FileCopyrightText: 2021 Aleix Pol <apol@kde.org>
0005 // SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
0006 // SPDX-License-Identifier: GPL-2.0-or-later
0007 
0008 var desktopsArray = desktopsForActivity(currentActivity());
0009 for (var j = 0; j < desktopsArray.length; j++) {
0010     desktopsArray[j].wallpaperPlugin = "org.kde.image";
0011 
0012     if (j == 0) {
0013         // add meta shortcut
0014         desktopsArray[0].currentConfigGroup = ["Shortcuts"]
0015         desktopsArray[0].writeConfig("global", "Meta+F1")
0016     }
0017 }
0018 
0019 // keep this list in sync with shell/contents/updates/panelsfix.js
0020 var panel = new Panel("org.kde.plasma.mobile.panel");
0021 panel.location = "top";
0022 panel.addWidget("org.kde.plasma.notifications");
0023 panel.height = 1.25 * gridUnit; // HACK: supposed to be gridUnit + smallSpacing, but it doesn't seem to give the correct number
0024 
0025 var bottomPanel = new Panel("org.kde.plasma.mobile.taskpanel")
0026 bottomPanel.location = "bottom";
0027 bottomPanel.height = 2 * gridUnit;