mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Remove clang-format on/off comments
This commit is contained in:
parent
543f00131c
commit
2f44e954aa
4 changed files with 4 additions and 10 deletions
|
|
@ -18,7 +18,6 @@ struct dir {
|
|||
const char *path;
|
||||
};
|
||||
|
||||
/* clang-format off */
|
||||
static struct dir config_dirs[] = {
|
||||
{ "XDG_CONFIG_HOME", "labwc" },
|
||||
{ "HOME", ".config/labwc" },
|
||||
|
|
@ -37,7 +36,6 @@ static struct dir theme_dirs[] = {
|
|||
{ NULL, "opt/share/themes" },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static bool
|
||||
isdir(const char *path)
|
||||
|
|
|
|||
|
|
@ -29,15 +29,15 @@ draw_line(struct draw_data *d, int x1, int y1, int x2, int y2)
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#include "theme/theme.h"
|
||||
|
||||
/* clang-format off */
|
||||
void theme_builtin(void)
|
||||
{
|
||||
parse_hexstr("#589bda", theme.window_active_title_bg_color);
|
||||
|
|
@ -20,4 +19,3 @@ void theme_builtin(void)
|
|||
parse_hexstr("#ffffff", theme.window_active_button_unpressed_image_color);
|
||||
parse_hexstr("#000000", theme.window_inactive_button_unpressed_image_color);
|
||||
}
|
||||
/* clang-format on */
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ match(const gchar *pattern, const gchar *string)
|
|||
return (bool)g_pattern_match_simple(pattern, string);
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
static void entry(const char *key, const char *value)
|
||||
{
|
||||
if (!key || !value) {
|
||||
|
|
@ -66,7 +65,6 @@ static void entry(const char *key, const char *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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue