1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-10 15:52:58 -04:00

system tray: allow re-ordering tray items

This commit is contained in:
bbedward
2026-01-30 09:17:01 -05:00
parent 67d3aa9da3
commit 803bc1cb7f
3 changed files with 313 additions and 34 deletions

View File

@@ -95,6 +95,7 @@ Singleton {
property var barPinnedApps: []
property int dockLauncherPosition: 0
property var hiddenTrayIds: []
property var trayItemOrder: []
property var recentColors: []
property bool showThirdPartyPlugins: false
property string launchPrefix: ""
@@ -871,6 +872,11 @@ Singleton {
return trayId && hiddenTrayIds.indexOf(trayId) !== -1;
}
function setTrayItemOrder(order) {
trayItemOrder = order;
saveSettings();
}
function addRecentColor(color) {
const colorStr = color.toString();
let recent = recentColors.slice();

View File

@@ -50,6 +50,7 @@ var SPEC = {
barPinnedApps: { def: [] },
dockLauncherPosition: { def: 0 },
hiddenTrayIds: { def: [] },
trayItemOrder: { def: [] },
recentColors: { def: [] },
showThirdPartyPlugins: { def: false },
launchPrefix: { def: "" },