diff options
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index 8f544c02..f2f0f7f7 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -28,7 +28,7 @@ struct box_colors { struct colors { uint32_t background; uint32_t statusline; - uint32_t seperator; + uint32_t separator; struct box_colors focused_workspace; struct box_colors active_workspace; @@ -55,7 +55,7 @@ struct window *window; struct colors colors = { .background = 0x000000FF, .statusline = 0xFFFFFFFF, - .seperator = 0x666666FF, + .separator = 0x666666FF, .focused_workspace = { .border = 0x4C7899FF, @@ -91,7 +91,7 @@ void sway_terminate(void) { } void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { - cairo_set_source_rgba(cairo, + cairo_set_source_rgba(cairo, ((color & 0xFF000000) >> 24) / 256.0, ((color & 0xFF0000) >> 16) / 256.0, ((color & 0xFF00) >> 8) / 256.0, @@ -220,7 +220,7 @@ void bar_ipc_init(int outputi, const char *bar_id) { json_object_object_get_ex(_colors, "binding_mode_text", &binding_mode_text); if (background) colors.background = parse_color(json_object_get_string(background)); if (statusline) colors.statusline = parse_color(json_object_get_string(statusline)); - if (separator) colors.seperator = parse_color(json_object_get_string(separator)); + if (separator) colors.separator = parse_color(json_object_get_string(separator)); if (focused_workspace_border) { colors.focused_workspace.border = parse_color(json_object_get_string(focused_workspace_border)); } |