Remote control command to set window logo

This commit is contained in:
Kovid Goyal
2021-12-04 13:45:12 +05:30
parent 9d9840a6d8
commit 14047588ae
2 changed files with 126 additions and 2 deletions

View File

@@ -1090,10 +1090,10 @@ class Window:
'text': text
}
def set_logo(self, path: str, position: str = 'bottom-right', alpha: float = 0.5) -> None:
def set_logo(self, path: str, position: str = '', alpha: float = -1) -> None:
from .options.utils import config_or_absolute_path
path = config_or_absolute_path(path, get_options().env) or path
set_window_logo(self.os_window_id, self.tab_id, self.id, path, position, alpha)
set_window_logo(self.os_window_id, self.tab_id, self.id, path, position or '', alpha)
# actions {{{