mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Change dark theme flag to light theme flag, so default is dark
This commit is contained in:
parent
a8d1a4d44d
commit
6ee3153f9c
@ -249,8 +249,8 @@ This hint only has an effect on platforms where screen coordinates and pixels
|
||||
always map 1:1 such as Windows and X11. On platforms like macOS the resolution
|
||||
of the framebuffer is changed independently of the window size.
|
||||
|
||||
@anchor GLFW_DARK_THEME
|
||||
__GLFW_DARK_THEME__ specifies whether the window should use dark theme or not.
|
||||
@anchor GLFW_LIGHT_THEME
|
||||
__GLFW_LIGHT_THEME__ specifies whether the window should use light theme or not.
|
||||
Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This hint only has effect
|
||||
on windows operating system.
|
||||
|
||||
|
@ -1099,10 +1099,10 @@ extern "C" {
|
||||
/*! @brief macOS specific
|
||||
* [window hint](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint).
|
||||
*/
|
||||
#define GLFW_DARK_THEME 0x0002200D
|
||||
#define GLFW_LIGHT_THEME 0x0002200D
|
||||
/*! @brief windows specific
|
||||
*
|
||||
* Allows specifying whether dark theme should be used.
|
||||
* Allows specifying whether light theme should be used.
|
||||
*/
|
||||
#define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001
|
||||
/*! @brief macOS specific
|
||||
|
@ -408,7 +408,7 @@ struct _GLFWwndconfig
|
||||
GLFWbool focusOnShow;
|
||||
GLFWbool mousePassthrough;
|
||||
GLFWbool scaleToMonitor;
|
||||
GLFWbool darkTheme;
|
||||
GLFWbool lightTheme;
|
||||
struct {
|
||||
GLFWbool retina;
|
||||
char frameName[256];
|
||||
|
@ -1344,7 +1344,7 @@ static int createNativeWindow(_GLFWwindow* window,
|
||||
_glfw.win32.instance,
|
||||
(LPVOID) wndconfig);
|
||||
|
||||
_glfwSetWindowTheme(wndconfig->darkTheme, window->win32.handle);
|
||||
_glfwSetWindowTheme(!(wndconfig->lightTheme), window->win32.handle);
|
||||
_glfw_free(wideTitle);
|
||||
|
||||
if (!window->win32.handle)
|
||||
|
@ -388,8 +388,8 @@ GLFWAPI void glfwWindowHint(int hint, int value)
|
||||
case GLFW_SCALE_TO_MONITOR:
|
||||
_glfw.hints.window.scaleToMonitor = value ? GLFW_TRUE : GLFW_FALSE;
|
||||
return;
|
||||
case GLFW_DARK_THEME:
|
||||
_glfw.hints.window.darkTheme = value ? GLFW_TRUE : GLFW_FALSE;
|
||||
case GLFW_LIGHT_THEME:
|
||||
_glfw.hints.window.lightTheme = value ? GLFW_TRUE : GLFW_FALSE;
|
||||
return;
|
||||
case GLFW_CENTER_CURSOR:
|
||||
_glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user