forked from Shinonome/dots-hyprland
end-4 feedback
This commit is contained in:
@@ -169,7 +169,7 @@ Item {
|
|||||||
delegate: KeyboardKey {
|
delegate: KeyboardKey {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
key: keySubstitutions[modelData] || modelData
|
key: keySubstitutions[modelData] || modelData
|
||||||
pixelSize: Config.options.appearance.keybinds.pixelSize.key
|
pixelSize: Config.options.appearance.keybinds.fontSize.key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StyledText {
|
StyledText {
|
||||||
@@ -181,7 +181,7 @@ Item {
|
|||||||
id: keybindKey
|
id: keybindKey
|
||||||
visible: !Config.options.appearance.keybinds.useMacLikeShortcut && !keyBlacklist.includes(modelData.key)
|
visible: !Config.options.appearance.keybinds.useMacLikeShortcut && !keyBlacklist.includes(modelData.key)
|
||||||
key: keySubstitutions[modelData.key] || modelData.key
|
key: keySubstitutions[modelData.key] || modelData.key
|
||||||
pixelSize: Config.options.appearance.keybinds.pixelSize.key
|
pixelSize: Config.options.appearance.keybinds.fontSize.key
|
||||||
color: Appearance.colors.colOnLayer0
|
color: Appearance.colors.colOnLayer0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -197,7 +197,7 @@ Item {
|
|||||||
StyledText {
|
StyledText {
|
||||||
id: commentText
|
id: commentText
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
font.pixelSize: Config.options.appearance.keybinds.pixelSize.comment || Appearance.font.pixelSize.smaller
|
font.pixelSize: Config.options.appearance.keybinds.fontSize.comment || Appearance.font.pixelSize.smaller
|
||||||
text: modelData.comment
|
text: modelData.comment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,9 +133,10 @@ Singleton {
|
|||||||
property bool useMacLikeShortcut: false
|
property bool useMacLikeShortcut: false
|
||||||
property bool useMouseSymbol: false
|
property bool useMouseSymbol: false
|
||||||
property bool useFnSymbol: false
|
property bool useFnSymbol: false
|
||||||
property JsonObject pixelSize: JsonObject {
|
property JsonObject fontSize: JsonObject {
|
||||||
property int key: Appearance.font.pixelSize.smaller
|
property int key: Appearance.font.pixelSize.smaller
|
||||||
property int comment: Appearance.font.pixelSize.smaller }
|
property int comment: Appearance.font.pixelSize.smaller
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,162 +92,4 @@ ContentPage {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
ContentSection {
|
|
||||||
icon: "keyboard"
|
|
||||||
title: Translation.tr("Keybinds Cheatsheet")
|
|
||||||
|
|
||||||
ContentSubsection {
|
|
||||||
title: Translation.tr("Super Key Symbol")
|
|
||||||
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
|
|
||||||
},
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ConfigSwitch {
|
|
||||||
buttonIcon: ""
|
|
||||||
text: Translation.tr("Use macOS-like symbols for mods keys")
|
|
||||||
checked: Config.options.appearance.keybinds.useMacSymbol
|
|
||||||
onCheckedChanged: {
|
|
||||||
Config.options.appearance.keybinds.useMacSymbol = checked;
|
|
||||||
}
|
|
||||||
StyledToolTip {
|
|
||||||
text: Translation.tr("macOS-style symbols, e.g. for Ctrl, for Alt, for Shift, etc")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ConfigSwitch {
|
|
||||||
buttonIcon: ""
|
|
||||||
text: Translation.tr("Use symbols for function keys")
|
|
||||||
checked: Config.options.appearance.keybinds.useFnSymbol
|
|
||||||
onCheckedChanged: {
|
|
||||||
Config.options.appearance.keybinds.useFnSymbol = checked;
|
|
||||||
}
|
|
||||||
StyledToolTip {
|
|
||||||
text: Translation.tr("Show functions keys as symbols, e.g. for F1, for F12")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ConfigSwitch {
|
|
||||||
buttonIcon: ""
|
|
||||||
text: Translation.tr("Use symbols for mouse")
|
|
||||||
checked: Config.options.appearance.keybinds.useMouseSymbol
|
|
||||||
onCheckedChanged: {
|
|
||||||
Config.options.appearance.keybinds.useMouseSymbol = checked;
|
|
||||||
}
|
|
||||||
StyledToolTip {
|
|
||||||
text: Translation.tr("Replace for \"Scroll ↓\", \"Scroll ↑\", L \"LMB\", R \"RMB\", \"Scroll ↑/↓\" and ⇞/⇟ for \"Page_↑/↓\"")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ConfigSwitch {
|
|
||||||
buttonIcon: ""
|
|
||||||
text: Translation.tr("Use macOS shortcut layout")
|
|
||||||
checked: Config.options.appearance.keybinds.useMacLikeShortcut
|
|
||||||
onCheckedChanged: {
|
|
||||||
Config.options.appearance.keybinds.useMacLikeShortcut = checked;
|
|
||||||
}
|
|
||||||
StyledToolTip {
|
|
||||||
text: Translation.tr("Display modifiers and keys in a single keycap (e.g., \"Ctrl A\" instead of \"Ctrl + A\" or \" A\" instead of \" + A\")")
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ConfigSpinBox {
|
|
||||||
text: Translation.tr("Keybind font size")
|
|
||||||
value: Config.options.appearance.keybinds.pixelSize.key
|
|
||||||
from: Appearance.font.pixelSize.smallest
|
|
||||||
to: Appearance.font.pixelSize.large
|
|
||||||
stepSize: 1
|
|
||||||
onValueChanged: {
|
|
||||||
Config.options.appearance.keybinds.pixelSize.key = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ConfigSpinBox {
|
|
||||||
text: Translation.tr("Description font size")
|
|
||||||
value: Config.options.appearance.keybinds.pixelSize.comment
|
|
||||||
from: Appearance.font.pixelSize.smallest
|
|
||||||
to: Appearance.font.pixelSize.large
|
|
||||||
stepSize: 1
|
|
||||||
onValueChanged: {
|
|
||||||
Config.options.appearance.keybinds.pixelSize.comment = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1012,4 +1012,163 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
icon: "keyboard"
|
||||||
|
title: Translation.tr("Cheatsheet")
|
||||||
|
|
||||||
|
ContentSubsection {
|
||||||
|
title: Translation.tr("Super Key Symbol")
|
||||||
|
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
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: ""
|
||||||
|
text: Translation.tr("Use macOS-like symbols for mods keys")
|
||||||
|
checked: Config.options.appearance.keybinds.useMacSymbol
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.appearance.keybinds.useMacSymbol = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: Translation.tr("macOS-style symbols, e.g. for Ctrl, for Alt, for Shift, etc")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: ""
|
||||||
|
text: Translation.tr("Use symbols for function keys")
|
||||||
|
checked: Config.options.appearance.keybinds.useFnSymbol
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.appearance.keybinds.useFnSymbol = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: Translation.tr("Show functions keys as symbols, e.g. for F1, for F12")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: ""
|
||||||
|
text: Translation.tr("Use symbols for mouse")
|
||||||
|
checked: Config.options.appearance.keybinds.useMouseSymbol
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.appearance.keybinds.useMouseSymbol = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: Translation.tr("Replace for \"Scroll ↓\", \"Scroll ↑\", L \"LMB\", R \"RMB\", \"Scroll ↑/↓\" and ⇞/⇟ for \"Page_↑/↓\"")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: ""
|
||||||
|
text: Translation.tr("Use macOS shortcut layout")
|
||||||
|
checked: Config.options.appearance.keybinds.useMacLikeShortcut
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.appearance.keybinds.useMacLikeShortcut = checked;
|
||||||
|
}
|
||||||
|
StyledToolTip {
|
||||||
|
text: Translation.tr("Display modifiers and keys in a single keycap (e.g., \"Ctrl A\" instead of \"Ctrl + A\" or \" A\" instead of \" + A\")")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ConfigSpinBox {
|
||||||
|
text: Translation.tr("Keybind font size")
|
||||||
|
value: Config.options.appearance.keybinds.fontSize.key
|
||||||
|
from: Appearance.font.pixelSize.smallest
|
||||||
|
to: Appearance.font.pixelSize.large
|
||||||
|
stepSize: 1
|
||||||
|
onValueChanged: {
|
||||||
|
Config.options.appearance.keybinds.fontSize.key = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ConfigSpinBox {
|
||||||
|
text: Translation.tr("Description font size")
|
||||||
|
value: Config.options.appearance.keybinds.fontSize.comment
|
||||||
|
from: Appearance.font.pixelSize.smallest
|
||||||
|
to: Appearance.font.pixelSize.large
|
||||||
|
stepSize: 1
|
||||||
|
onValueChanged: {
|
||||||
|
Config.options.appearance.keybinds.fontSize.comment = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user