THEME global variable should include Modifier as an enum #2380
boydaihungst
started this conversation in
3. Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think THEME should include Modifier (e.g., reversed) as an enum. At the moment, it seems to only return an integer, which is the sum of all modifiers.
The reason is that sometimes developers create GUI plugins with custom themes that need to recognize user modifiers to draw colors correctly. For example, your mactag.yazi won’t work well if users change the
hovered reversed
modifier tofalse
.yazi/yazi-config/preset/theme-dark.toml
Line 25 in 52a5ab5
Beta Was this translation helpful? Give feedback.
All reactions