Add light and dark to the macOS title bar option

This commit is contained in:
pagedown
2021-12-21 15:14:08 +08:00
parent 58b7fb41d9
commit 278477b387
11 changed files with 38 additions and 15 deletions

View File

@@ -181,7 +181,7 @@ def load_config(*paths: str, overrides: Optional[Iterable[str]] = None, accumula
opts.action_alias = {}
opts.mouse_map = []
opts.map = []
if opts.background_opacity < 1.0 and opts.macos_titlebar_color:
if opts.background_opacity < 1.0 and opts.macos_titlebar_color > 0:
log_error('Cannot use both macos_titlebar_color and background_opacity')
opts.macos_titlebar_color = 0
opts.config_paths = paths