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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user