feat(config-toggle): right-align ON badge to mirror value direction
The badge now positions each state by where it sits on the scale: OFF left-aligned, DEFAULT centered, ON right-aligned. This makes the OFF ← DEFAULT → ON ordering visible at a glance and reinforces the direction the ←→/h l keys move.
This commit is contained in:
@@ -83,7 +83,7 @@ function __config_toggle_draw
|
||||
set -l badge
|
||||
switch $val
|
||||
case on
|
||||
set badge "$c_ok""ON $c_reset"
|
||||
set badge "$c_ok"" ON$c_reset"
|
||||
case off
|
||||
set badge "$c_err""OFF $c_reset"
|
||||
case '*'
|
||||
@@ -111,7 +111,7 @@ function __config_toggle_draw
|
||||
set -l badge
|
||||
switch $val
|
||||
case on
|
||||
set badge "$c_ok""ON $c_reset"
|
||||
set badge "$c_ok"" ON$c_reset"
|
||||
case off
|
||||
set badge "$c_err""OFF $c_reset"
|
||||
case '*'
|
||||
|
||||
Reference in New Issue
Block a user