Start work on a per window logo
This commit is contained in:
Generated
+11
-8
@@ -62,14 +62,6 @@ class Parser:
|
||||
def background_image(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['background_image'] = config_or_absolute_path(val)
|
||||
|
||||
def background_image_anchor(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
val = val.lower()
|
||||
if val not in self.choices_for_background_image_anchor:
|
||||
raise ValueError(f"The value {val} is not a valid choice for background_image_anchor")
|
||||
ans["background_image_anchor"] = val
|
||||
|
||||
choices_for_background_image_anchor = frozenset(('top-left', 'top', 'top-right', 'left', 'center', 'right', 'bottom-left', 'bottom', 'bottom-right'))
|
||||
|
||||
def background_image_layout(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
val = val.lower()
|
||||
if val not in self.choices_for_background_image_layout:
|
||||
@@ -1278,6 +1270,17 @@ class Parser:
|
||||
def window_border_width(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['window_border_width'] = window_border_width(val)
|
||||
|
||||
def window_logo_path(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['window_logo_path'] = config_or_absolute_path(val)
|
||||
|
||||
def window_logo_position(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
val = val.lower()
|
||||
if val not in self.choices_for_window_logo_position:
|
||||
raise ValueError(f"The value {val} is not a valid choice for window_logo_position")
|
||||
ans["window_logo_position"] = val
|
||||
|
||||
choices_for_window_logo_position = frozenset(('top-left', 'top', 'top-right', 'left', 'center', 'right', 'bottom-left', 'bottom', 'bottom-right'))
|
||||
|
||||
def window_margin_width(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['window_margin_width'] = edge_width(val)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user