try something for the nyx-4 feedback

This commit is contained in:
Madjid Taha
2025-11-02 17:23:31 +01:00
parent 7e283404f3
commit 0c29167057
3 changed files with 26 additions and 97 deletions
@@ -17,25 +17,20 @@ Item {
// Excellent symbol explaination and source :
// http://xahlee.info/comp/unicode_computing_symbols.html
// https://www.nerdfonts.com/cheat-sheet
property list<string> superMap: [
"󰖳", "󰌽", "⌘", "", "󰨡", "", "",
"󰣇", "", "", "", "", " ", "",
"󱄛", "󰀲", "󰟍", ""
]
property var macSymbolMap: ({
"Ctrl": "󰘴" ,
"Alt": "󰘵" ,
"Shift": "󰘶" ,
"Space": "󱁐" ,
"Tab": "↹" ,
"Equal": "󰇼" ,
"Minus": "" ,
"Print": "" ,
"BackSpace": "󰭜" ,
"Delete": "⌦" ,
"Return": "󰌑" ,
"Period": "." ,
"Escape": "⎋"
"Ctrl": "󰘴",
"Alt": "󰘵",
"Shift": "󰘶",
"Space": "󱁐",
"Tab": "↹",
"Equal": "󰇼",
"Minus": "",
"Print": "",
"BackSpace": "󰭜",
"Delete": "⌦",
"Return": "󰌑",
"Period": ".",
"Escape": "⎋"
})
property var functionSymbolMap: ({
"F1": "󱊫",
@@ -53,7 +48,7 @@ Item {
})
property var mouseSymbolMap: ({
"mouse_up": "󱕐" ,
"mouse_up": "󱕐",
"mouse_down": "󱕑",
"mouse:272": "L󰍽",
"mouse:273": "R󰍽",
@@ -74,8 +69,8 @@ Item {
"Return": "Enter",
// "Shift": "",
},
Config.options.appearance.keybinds.superKey > 0 ? {
"Super": superMap[Config.options.appearance.keybinds.superKey],
!!Config.options.appearance.keybinds.superKey ? {
"Super": Config.options.appearance.keybinds.superKey,
}: {},
Config.options.appearance.keybinds.useMacSymbol ? macSymbolMap : {},
Config.options.appearance.keybinds.useFnSymbol ? functionSymbolMap : {},
@@ -128,7 +128,7 @@ Singleton {
// 0: 󰖳 | 1: 󰌽 | 2: 󰘳 | 3:  | 4: 󰨡
// 5:  | 6:  | 7: 󰣇 | 8:  | 9: 
// 10:  | 11:  | 12:  | 13:  | 14: 󱄛
property int superKey: 0
property string superKey: "󰖳"
property bool useMacSymbol: false
property bool useMacLikeShortcut: false
property bool useMouseSymbol: false
@@ -1019,87 +1019,21 @@ ContentPage {
ContentSubsection {
title: Translation.tr("Super Key Symbol")
tooltip: Translation.tr("Choose a symbol from this list or edit config.json and add your own nerd symbol in appearance.keybinds.superKey.")
ConfigSelectionArray {
currentValue: Config.options.appearance.keybinds.superKey
onSelected: newValue => {
Config.options.appearance.keybinds.superKey = newValue;
}
// Use a nerdfont to see the icons
// 0: 󰖳 | 1: 󰌽 | 2: 󰘳 | 3:  | 4: 󰨡
// 5:  | 6:  | 7: 󰣇 | 8:  | 9: 
// 10:  | 11:  | 12:  | 13:  | 14: 󱄛
// 15: 󰀲 | 16: 󰟍 | 17:  |
options: [
{
displayName: "󰖳",
value: 0
},
{
displayName: "",
value: 3
},
{
displayName: "󰨡",
value: 4
},
{
displayName: "",
value: 5
},
{
displayName: "󰣇",
value: 7
},
{
displayName: "",
value: 12
},
{
displayName: "",
value: 13
},
{
displayName: "",
value: 11
},
{
displayName: "",
value: 10
},
{
displayName: "",
value: 8
},
{
displayName: "󱄛",
value: 14
},
{
displayName: "",
value: 9
},
{
displayName: "",
value: 6
},
{
displayName: "󰘳",
value: 2
},
{
displayName: "󰀲",
value: 15
},
{
displayName: "󰟍",
value: 16
},
{
displayName: "",
value: 17
},
]
options: ([
"󰖳", "", "󰨡", "", "󰌽", "󰣇", "", "", "",
"", "", "󱄛", "", "", "⌘", "󰀲", "󰟍", ""
]).map(icon => { return {
displayName: icon,
value: icon
}
})
}
}