GLFW API to track system color scheme dark/light

Implemented only on macOS and Wayland.
This commit is contained in:
Kovid Goyal
2023-04-13 13:16:33 +05:30
parent 1392d8cdb7
commit 66801b6b28
10 changed files with 99 additions and 1 deletions

2
glfw/internal.h vendored
View File

@@ -632,13 +632,13 @@ struct _GLFWlibrary
GLFWmonitorfun monitor;
GLFWjoystickfun joystick;
GLFWapplicationclosefun application_close;
GLFWsystemcolorthemechangefun system_color_theme_change;
GLFWdrawtextfun draw_text;
GLFWcurrentselectionfun get_current_selection;
GLFWhascurrentselectionfun has_current_selection;
GLFWimecursorpositionfun get_ime_cursor_position;
} callbacks;
// This is defined in the window API's platform.h
_GLFW_PLATFORM_LIBRARY_WINDOW_STATE;
// This is defined in the context API's context.h