forked from Shinonome/dots-hyprland
try something for the nyx-4 feedback
This commit is contained in:
@@ -17,25 +17,20 @@ Item {
|
|||||||
// Excellent symbol explaination and source :
|
// Excellent symbol explaination and source :
|
||||||
// http://xahlee.info/comp/unicode_computing_symbols.html
|
// http://xahlee.info/comp/unicode_computing_symbols.html
|
||||||
// https://www.nerdfonts.com/cheat-sheet
|
// https://www.nerdfonts.com/cheat-sheet
|
||||||
property list<string> superMap: [
|
|
||||||
"", "", "⌘", "", "", "", "",
|
|
||||||
"", "", "", "", "", " ", "",
|
|
||||||
"", "", "", ""
|
|
||||||
]
|
|
||||||
property var macSymbolMap: ({
|
property var macSymbolMap: ({
|
||||||
"Ctrl": "" ,
|
"Ctrl": "",
|
||||||
"Alt": "" ,
|
"Alt": "",
|
||||||
"Shift": "" ,
|
"Shift": "",
|
||||||
"Space": "" ,
|
"Space": "",
|
||||||
"Tab": "↹" ,
|
"Tab": "↹",
|
||||||
"Equal": "" ,
|
"Equal": "",
|
||||||
"Minus": "" ,
|
"Minus": "",
|
||||||
"Print": "" ,
|
"Print": "",
|
||||||
"BackSpace": "" ,
|
"BackSpace": "",
|
||||||
"Delete": "⌦" ,
|
"Delete": "⌦",
|
||||||
"Return": "" ,
|
"Return": "",
|
||||||
"Period": "." ,
|
"Period": ".",
|
||||||
"Escape": "⎋"
|
"Escape": "⎋"
|
||||||
})
|
})
|
||||||
property var functionSymbolMap: ({
|
property var functionSymbolMap: ({
|
||||||
"F1": "",
|
"F1": "",
|
||||||
@@ -53,7 +48,7 @@ Item {
|
|||||||
})
|
})
|
||||||
|
|
||||||
property var mouseSymbolMap: ({
|
property var mouseSymbolMap: ({
|
||||||
"mouse_up": "" ,
|
"mouse_up": "",
|
||||||
"mouse_down": "",
|
"mouse_down": "",
|
||||||
"mouse:272": "L",
|
"mouse:272": "L",
|
||||||
"mouse:273": "R",
|
"mouse:273": "R",
|
||||||
@@ -74,8 +69,8 @@ Item {
|
|||||||
"Return": "Enter",
|
"Return": "Enter",
|
||||||
// "Shift": "",
|
// "Shift": "",
|
||||||
},
|
},
|
||||||
Config.options.appearance.keybinds.superKey > 0 ? {
|
!!Config.options.appearance.keybinds.superKey ? {
|
||||||
"Super": superMap[Config.options.appearance.keybinds.superKey],
|
"Super": Config.options.appearance.keybinds.superKey,
|
||||||
}: {},
|
}: {},
|
||||||
Config.options.appearance.keybinds.useMacSymbol ? macSymbolMap : {},
|
Config.options.appearance.keybinds.useMacSymbol ? macSymbolMap : {},
|
||||||
Config.options.appearance.keybinds.useFnSymbol ? functionSymbolMap : {},
|
Config.options.appearance.keybinds.useFnSymbol ? functionSymbolMap : {},
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ Singleton {
|
|||||||
// 0: | 1: | 2: | 3: | 4:
|
// 0: | 1: | 2: | 3: | 4:
|
||||||
// 5: | 6: | 7: | 8: | 9:
|
// 5: | 6: | 7: | 8: | 9:
|
||||||
// 10: | 11: | 12: | 13: | 14:
|
// 10: | 11: | 12: | 13: | 14:
|
||||||
property int superKey: 0
|
property string superKey: ""
|
||||||
property bool useMacSymbol: false
|
property bool useMacSymbol: false
|
||||||
property bool useMacLikeShortcut: false
|
property bool useMacLikeShortcut: false
|
||||||
property bool useMouseSymbol: false
|
property bool useMouseSymbol: false
|
||||||
|
|||||||
@@ -1019,87 +1019,21 @@ ContentPage {
|
|||||||
|
|
||||||
ContentSubsection {
|
ContentSubsection {
|
||||||
title: Translation.tr("Super Key Symbol")
|
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 {
|
ConfigSelectionArray {
|
||||||
currentValue: Config.options.appearance.keybinds.superKey
|
currentValue: Config.options.appearance.keybinds.superKey
|
||||||
onSelected: newValue => {
|
onSelected: newValue => {
|
||||||
Config.options.appearance.keybinds.superKey = newValue;
|
Config.options.appearance.keybinds.superKey = newValue;
|
||||||
}
|
}
|
||||||
// Use a nerdfont to see the icons
|
// Use a nerdfont to see the icons
|
||||||
// 0: | 1: | 2: | 3: | 4:
|
options: ([
|
||||||
// 5: | 6: | 7: | 8: | 9:
|
"", "", "", "", "", "", "", "", "",
|
||||||
// 10: | 11: | 12: | 13: | 14:
|
"", "", "", "", "", "⌘", "", "", ""
|
||||||
// 15: | 16: | 17: |
|
]).map(icon => { return {
|
||||||
options: [
|
displayName: icon,
|
||||||
{
|
value: icon
|
||||||
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
|
|
||||||
},
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user