Wayland GNOME: titlebar color now follows system theme

When GNOME system theme is default, the color matches the background
color. When it is dark it is dark.
This commit is contained in:
Kovid Goyal
2024-04-04 21:49:32 +05:30
parent bdfa57039c
commit 1bffe89b5d
17 changed files with 85 additions and 46 deletions

3
glfw/wl_init.c vendored
View File

@@ -28,6 +28,7 @@
#define _GNU_SOURCE
#include "internal.h"
#include "wl_client_side_decorations.h"
#include "backend_utils.h"
#include "linux_desktop_settings.h"
#include "../kitty/monotonic.h"
@@ -781,7 +782,7 @@ static const struct wl_registry_listener registryListener = {
};
GLFWAPI int glfwGetCurrentSystemColorTheme(void) {
GLFWAPI GLFWColorScheme glfwGetCurrentSystemColorTheme(void) {
return glfw_current_system_color_theme();
}