mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-14 18:59:56 +10:00
qs: fix wrong capitalization in cheatsheet
This commit is contained in:
@@ -46,8 +46,8 @@ Scope { // Scope
|
|||||||
implicitWidth: cheatsheetBackground.width + Appearance.sizes.elevationMargin * 2
|
implicitWidth: cheatsheetBackground.width + Appearance.sizes.elevationMargin * 2
|
||||||
implicitHeight: cheatsheetBackground.height + Appearance.sizes.elevationMargin * 2
|
implicitHeight: cheatsheetBackground.height + Appearance.sizes.elevationMargin * 2
|
||||||
WlrLayershell.namespace: "quickshell:cheatsheet"
|
WlrLayershell.namespace: "quickshell:cheatsheet"
|
||||||
// Hyprland 0.49: Focus is always exclusive and setting this breaks mouse focus grab
|
// Setting this value makes it take its sweet time to open
|
||||||
// WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
// WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
mask: Region {
|
mask: Region {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Item {
|
|||||||
id: flow
|
id: flow
|
||||||
height: flickable.height
|
height: flickable.height
|
||||||
flow: Flow.TopToBottom
|
flow: Flow.TopToBottom
|
||||||
spacing: 12
|
spacing: 10
|
||||||
Repeater {
|
Repeater {
|
||||||
model: [...HyprlandKeybinds.keybindCategories, ""]
|
model: [...HyprlandKeybinds.keybindCategories, ""]
|
||||||
delegate: CheatsheetKeybindsCategory {
|
delegate: CheatsheetKeybindsCategory {
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ Column {
|
|||||||
property var keyBlacklist: ["SUPER_L", "SUPER_R"]
|
property var keyBlacklist: ["SUPER_L", "SUPER_R"]
|
||||||
property var keySubstitutions: Object.assign({
|
property var keySubstitutions: Object.assign({
|
||||||
"Super": "",
|
"Super": "",
|
||||||
"mouse_up": "Scroll ↓", // ikr, weird
|
"Mouse_up": "Scroll ↓", // ikr, weird
|
||||||
"mouse_down": "Scroll ↑", // trust me bro
|
"Mouse_down": "Scroll ↑", // trust me bro
|
||||||
"mouse:272": "LMB",
|
"Mouse:272": "LMB",
|
||||||
"mouse:273": "RMB",
|
"Mouse:273": "RMB",
|
||||||
"mouse:275": "MouseBack",
|
"Mouse:275": "MouseBack",
|
||||||
"Slash": "/",
|
"Slash": "/",
|
||||||
"Hash": "#",
|
"Hash": "#",
|
||||||
"Return": "Enter",
|
"Return": "Enter",
|
||||||
@@ -152,7 +152,10 @@ Column {
|
|||||||
id: keybindKey
|
id: keybindKey
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !keyBlacklist.includes(bindLine.keyData.key)
|
visible: !keyBlacklist.includes(bindLine.keyData.key)
|
||||||
key: StringUtils.toTitleCase(root.keySubstitutions[bindLine.keyData.key] || bindLine.keyData.key)
|
key: {
|
||||||
|
const k = StringUtils.toTitleCase(bindLine.keyData.key)
|
||||||
|
return root.keySubstitutions[k] || k
|
||||||
|
}
|
||||||
pixelSize: Config.options.cheatsheet.fontSize.key
|
pixelSize: Config.options.cheatsheet.fontSize.key
|
||||||
color: Appearance.colors.colOnLayer0
|
color: Appearance.colors.colOnLayer0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user