Input now changes color depending on focus (#11738)

This commit is contained in:
Shadow
2021-04-27 23:22:57 -03:00
committed by GitHub
parent 72a5d06e2e
commit 9def7eb00b
2 changed files with 16 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
# Your name.
author: Shadowtail117
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- tweak: "The input bar now changes color depending on whether you have hotkey mode enabled or not."
+3 -3
View File
@@ -222,7 +222,7 @@ macro "borghotkeymode"
macro "macro"
elem
name = "TAB"
command = ".winset \"mainwindow.macro=hotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true\""
command = ".winset \"mainwindow.macro=hotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true input.background-color=#F0F0F0\""
elem
name = "CENTER+REP"
command = ".center"
@@ -392,7 +392,7 @@ macro "macro"
macro "hotkeymode"
elem
name = "TAB"
command = ".winset \"mainwindow.macro=macro hotkey_toggle.is-checked=false input.focus=true\""
command = ".winset \"mainwindow.macro=macro hotkey_toggle.is-checked=false input.focus=true input.background-color=#D3B5B5\""
elem
name = "CENTER+REP"
command = ".center"
@@ -1078,7 +1078,7 @@ window "mainwindow"
background-color = none
saved-params = ""
text = "Hotkey Toggle"
command = ".winset \"mainwindow.macro!=macro ? mainwindow.macro=macro hotkey_toggle.is-checked=false input.focus=true : mainwindow.macro=hotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true\""
command = ".winset \"mainwindow.macro!=macro ? mainwindow.macro=macro hotkey_toggle.is-checked=false input.focus=true input.background-color=#D3B5B5 : mainwindow.macro=hotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true input.background-color=#F0F0F0\""
is-flat = true
button-type = pushbox
elem "mainvsplit"