From 096c97154797d0c29b5c162f5952c78f545f0e84 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Sat, 4 Jan 2025 01:42:57 +0500 Subject: [PATCH] Update --- .../contents/layout.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js index 017639d..bd16828 100644 --- a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js +++ b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js @@ -180,7 +180,8 @@ start_menu.writeConfig("compactMode", "true"); start_menu.writeConfig("defaultAppListView", "TilesOnly"); start_menu.writeConfig("defaultTileColor", "#e4606060"); start_menu.writeConfig("defaultTileGradient", "true"); -start_menu.writeConfig("favGridCols", "7"); +start_menu.writeConfig("favGridCols", "6"); +start_menu.writeConfig("numberRows", "5"); start_menu.writeConfig("floating", "true"); start_menu.writeConfig("fullscreen", "true"); start_menu.writeConfig("groupLabelAlignment", "center"); @@ -195,6 +196,13 @@ start_menu.writeConfig("sidebarFollowsTheme", "true"); start_menu.writeConfig("sidebarIconSize", "24"); start_menu.writeConfig("tileLabelAlignment", "center"); +// 0 = Auto, 1 = Center, 2 = Center Bottom +if (aspect_ratio > 1.8) { + start_menu.writeConfig("displayPosition", "2"); +} else { + start_menu.writeConfig("displayPosition", "0"); +} + /*Desktops button*/ //panel.addWidget("org.kde.plasma.pager");