mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Fix set_background_opacity with increment/decrement
This commit is contained in:
parent
18fe2e8dfa
commit
55e4761302
1 changed files with 3 additions and 3 deletions
|
|
@ -459,10 +459,10 @@ class Boss:
|
|||
_('You must set the dynamic_background_opacity option in kitty.conf to be able to change background opacity'))
|
||||
os_window_id = window.os_window_id
|
||||
if opacity[0] in '+-':
|
||||
opacity = background_opacity_of(os_window_id)
|
||||
if opacity is None:
|
||||
old_opacity = background_opacity_of(os_window_id)
|
||||
if old_opacity is None:
|
||||
return
|
||||
opacity += float(opacity)
|
||||
opacity = old_opacity + float(opacity)
|
||||
elif opacity == 'default':
|
||||
opacity = self.opts.background_opacity
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue