const char *path;
};
-/* clang-format off */
static struct dir config_dirs[] = {
{ "XDG_CONFIG_HOME", "labwc" },
{ "HOME", ".config/labwc" },
{ NULL, "opt/share/themes" },
{ NULL, NULL }
};
-/* clang-format on */
static bool
isdir(const char *path)
wlr_render_rect(d->renderer, &box, d->rgba, d->transform_matrix);
}
-/* clang-format off */
static void draw_rect_unfilled(struct draw_data *d, struct wlr_box box)
{
draw_line(d, box.x, box.y, box.x + box.width - 1, box.y);
- draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1, box.y + box.height - 1);
- draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1, box.y + box.height - 1);
+ draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1,
+ box.y + box.height - 1);
+ draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1,
+ box.y + box.height - 1);
draw_line(d, box.x, box.y, box.x, box.y + box.height - 1);
}
-/* clang-format on */
static void
shrink(struct wlr_box *box, int size)
#include "theme/theme.h"
-/* clang-format off */
void theme_builtin(void)
{
parse_hexstr("#589bda", theme.window_active_title_bg_color);
parse_hexstr("#ffffff", theme.window_active_button_unpressed_image_color);
parse_hexstr("#000000", theme.window_inactive_button_unpressed_image_color);
}
-/* clang-format on */
return (bool)g_pattern_match_simple(pattern, string);
}
-/* clang-format off */
static void entry(const char *key, const char *value)
{
if (!key || !value) {
parse_hexstr(value, theme.window_inactive_button_unpressed_image_color);
}
}
-/* clang-format on */
static void
parse_config_line(char *line, char **key, char **value)