mirror of
https://github.com/NickHu/sway
synced 2024-12-29 22:23:46 +01:00
f898ca9a83
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. |
||
---|---|---|
.. | ||
bind.c | ||
binding_mode_indicator.c | ||
colors.c | ||
font.c | ||
gaps.c | ||
height.c | ||
hidden_state.c | ||
icon_theme.c | ||
id.c | ||
mode.c | ||
modifier.c | ||
output.c | ||
pango_markup.c | ||
position.c | ||
separator_symbol.c | ||
status_command.c | ||
status_edge_padding.c | ||
status_padding.c | ||
strip_workspace_name.c | ||
strip_workspace_numbers.c | ||
swaybar_command.c | ||
tray_bind.c | ||
tray_output.c | ||
tray_padding.c | ||
workspace_buttons.c | ||
wrap_scroll.c |