mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 01:53:35 +02:00
Support negative inactive_text_alpha values for active-window-only fading
This commit is contained in:
@@ -311,6 +311,15 @@ def conf_parsing(self):
|
||||
self.ae(opts.kitty_mod, to_modifiers('alt'))
|
||||
self.ae(next(keys_for_func(opts, 'next_layout')).mods, opts.kitty_mod)
|
||||
|
||||
opts = p('inactive_text_alpha 0.25')
|
||||
self.ae(opts.inactive_text_alpha, 0.25)
|
||||
opts = p('inactive_text_alpha -0.25')
|
||||
self.ae(opts.inactive_text_alpha, -0.25)
|
||||
opts = p('inactive_text_alpha 2')
|
||||
self.ae(opts.inactive_text_alpha, 1.0)
|
||||
opts = p('inactive_text_alpha -2')
|
||||
self.ae(opts.inactive_text_alpha, -1.0)
|
||||
|
||||
# deprecation handling
|
||||
opts = p('clear_all_shortcuts y', 'send_text all f1 hello')
|
||||
self.ae(len(opts.keyboard_modes[''].keymap), 1)
|
||||
|
||||
Reference in New Issue
Block a user