macOS: When the macos_titlebar_color is set to background change the titlebar background to match the current background color of the active kitty window

This commit is contained in:
Kovid Goyal
2018-05-01 23:37:48 +05:30
parent 0b93b85cf2
commit 9cacfc0c26
8 changed files with 46 additions and 39 deletions

View File

@@ -39,9 +39,6 @@ def init_graphics():
def run_app(opts, args):
set_scale(opts.box_drawing_scale)
set_options(opts, is_wayland, args.debug_gl, args.debug_font_fallback)
if is_macos:
from .fast_data_types import macos_change_titlebar_color
macos_change_titlebar_color(opts.macos_titlebar_color)
with cached_values_for('main') as cached_values:
w, h = initial_window_size(opts, cached_values)
window_id = create_os_window(w, h, appname, args.name or args.cls or appname, args.cls or appname, load_all_shaders)