This commit is contained in:
Kovid Goyal
2024-02-09 15:48:42 +05:30
parent 7c14e0d666
commit 585ac148a6
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ Detailed list of changes
- macOS: Fix :code:`kitten @ select-window` leaving the keyboard in a partially functional state (:iss:`7074`) - macOS: Fix :code:`kitten @ select-window` leaving the keyboard in a partially functional state (:iss:`7074`)
- Graphics protocol: Improve display of images using unicode placeholders or - Graphics protocol: Improve display of images using Unicode placeholders or
row/column boxes by resizing them using linear instead of nearest neighbor row/column boxes by resizing them using linear instead of nearest neighbor
interpolation on the GPU (:iss:`7070`) interpolation on the GPU (:iss:`7070`)

View File

@@ -3051,8 +3051,8 @@ GLFWAPI void glfwCocoaSetWindowChrome(GLFWwindow *w, unsigned int color, bool us
NSColor *background = nil; NSColor *background = nil;
NSAppearance *appearance = nil; NSAppearance *appearance = nil;
bool titlebar_transparent = false; bool titlebar_transparent = false;
NSWindowStyleMask current_style_mask = [window->ns.object styleMask]; const NSWindowStyleMask current_style_mask = [window->ns.object styleMask];
bool in_fullscreen = ((current_style_mask & NSWindowStyleMaskFullScreen) != 0) || window->ns.in_traditional_fullscreen; const bool in_fullscreen = ((current_style_mask & NSWindowStyleMaskFullScreen) != 0) || window->ns.in_traditional_fullscreen;
NSAppearance *light_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantLight] : [NSAppearance appearanceNamed:NSAppearanceNameAqua]; NSAppearance *light_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantLight] : [NSAppearance appearanceNamed:NSAppearanceNameAqua];
NSAppearance *dark_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark] : [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua]; NSAppearance *dark_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark] : [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
if (use_system_color || background_opacity < 1.0) { if (use_system_color || background_opacity < 1.0) {