feat(bar): add context menu for CustomButton right-click

- Show context menu instead of directly opening settings when no command is set
- Context menu includes widget-settings option
- Matches behavior of other bar widgets
This commit is contained in:
loner
2026-04-06 09:14:00 +08:00
parent b8a7c2f77d
commit cfc96dd3e7
4 changed files with 55 additions and 32 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ Singleton {
"customIconPath": "",
"colorizeDistroLogo": false,
"colorizeSystemIcon": "none",
"colorizeSystemText": "none",
"colorizeSystemText": "none",
"enableColorization": false
},
"CustomButton": {
@@ -190,7 +190,7 @@ Singleton {
"icon": "rocket",
"customIconPath": "",
"colorizeSystemIcon": "none",
"colorizeSystemText": "none",
"colorizeSystemText": "none",
"enableColorization": false,
"iconColor": "none"
},