From fb6bf3fdde8972e4f531cea013796b3dc7f15ef4 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Sun, 24 Nov 2024 14:39:35 +0900 Subject: [PATCH] theme: set default values of window.*.border.color to #aaaaaa This makes the colors of titlebar and window borders different, but will let menu.border.color (which will be supported soon) inherit window.active.border.color just like Openbox does, without making the menu borders around a selected menu item invisible. --- docs/labwc-theme.5.scd | 4 ++-- docs/themerc | 4 ++-- src/theme.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/labwc-theme.5.scd b/docs/labwc-theme.5.scd index 3951b275..9f4b2e9b 100644 --- a/docs/labwc-theme.5.scd +++ b/docs/labwc-theme.5.scd @@ -60,10 +60,10 @@ labwc-config(5). Default is 0. *window.active.border.color* - Border color of active window. Default is #e1dedb. + Border color of active window. Default is #aaaaaa. *window.inactive.border.color* - Border color of inactive window. Default is #f6f5f4. + Border color of inactive window. Default is #aaaaaa. *window.active.indicator.toggled-keybind.color* Status indicator for the ToggleKeybinds action. Can be set to the same diff --git a/docs/themerc b/docs/themerc index 66bbe682..8c627171 100644 --- a/docs/themerc +++ b/docs/themerc @@ -16,8 +16,8 @@ window.titlebar.padding.width: 0 window.titlebar.padding.height: 0 # window border -window.active.border.color: #e1dedb -window.inactive.border.color: #f6f5f4 +window.active.border.color: #aaaaaa +window.inactive.border.color: #aaaaaa # ToggleKeybinds status indicator window.active.indicator.toggled-keybind.color: #ff0000 diff --git a/src/theme.c b/src/theme.c index bea07400..6e3ebbd8 100644 --- a/src/theme.c +++ b/src/theme.c @@ -563,8 +563,8 @@ theme_builtin(struct theme *theme, struct server *server) theme->window_titlebar_padding_height = 0; theme->window_titlebar_padding_width = 0; - parse_hexstr("#e1dedb", theme->window[THEME_ACTIVE].border_color); - parse_hexstr("#f6f5f4", theme->window[THEME_INACTIVE].border_color); + parse_hexstr("#aaaaaa", theme->window[THEME_ACTIVE].border_color); + parse_hexstr("#aaaaaa", theme->window[THEME_INACTIVE].border_color); parse_hexstr("#ff0000", theme->window_toggled_keybinds_color);