From 9def7eb00be8ad04badca8fd2c3bd22fc61c1bf3 Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 27 Apr 2021 19:22:57 -0700 Subject: [PATCH] Input now changes color depending on focus (#11738) --- html/changelogs/shadow-input.yml | 13 +++++++++++++ interface/skin.dmf | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 html/changelogs/shadow-input.yml diff --git a/html/changelogs/shadow-input.yml b/html/changelogs/shadow-input.yml new file mode 100644 index 00000000000..113741d20f3 --- /dev/null +++ b/html/changelogs/shadow-input.yml @@ -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." \ No newline at end of file diff --git a/interface/skin.dmf b/interface/skin.dmf index 2bddf8f1810..074145eae2d 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -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"