sway-patched-tray-menu/sway/commands/bar
Brian Ashworth f898ca9a83 bar_cmd_colors: remove add_color
This is the third commit in a series of commits to refactor color
handling in sway. This removes add_color from commands.c. It was only
being used by bar_cmd_colors. This also changes the functions to use
parse_color which is used to validate rgb(a) colors throughout the code
base and is also what i3bar is using to parse the colors after they are
passed over ipc. After parsing the color and ensuring it is valid, the
rgba hex string is then generated using snprintf. This refactor also
ensures that all the colors for the command are valid before applying
any of them.
2019-12-28 10:07:25 +01:00
..
bind.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
binding_mode_indicator.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
colors.c bar_cmd_colors: remove add_color 2019-12-28 10:07:25 +01:00
font.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
gaps.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
height.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
hidden_state.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
icon_theme.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
id.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
mode.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
modifier.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
output.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
pango_markup.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
position.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
separator_symbol.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
status_command.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
status_edge_padding.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
status_padding.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
strip_workspace_name.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
strip_workspace_numbers.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
swaybar_command.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
tray_bind.c Fix memory leaks 2019-08-12 09:42:11 +09:00
tray_output.c swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
tray_padding.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
workspace_buttons.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00
wrap_scroll.c bar: fix segfault with missing or invalid bar id 2019-05-17 15:33:57 -04:00