mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-10 07:42:09 -04:00
system tray: allow re-ordering tray items
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -50,6 +50,7 @@ var SPEC = {
|
||||
barPinnedApps: { def: [] },
|
||||
dockLauncherPosition: { def: 0 },
|
||||
hiddenTrayIds: { def: [] },
|
||||
trayItemOrder: { def: [] },
|
||||
recentColors: { def: [] },
|
||||
showThirdPartyPlugins: { def: false },
|
||||
launchPrefix: { def: "" },
|
||||
|
||||
Reference in New Issue
Block a user