mirror of
https://github.com/swaywm/sway.git
synced 2024-11-17 13:42:36 +00: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. |
||
---|---|---|
.. | ||
desktop | ||
input | ||
tree | ||
commands.h | ||
config.h | ||
criteria.h | ||
decoration.h | ||
desktop.h | ||
ipc-json.h | ||
ipc-server.h | ||
layers.h | ||
output.h | ||
security.h | ||
server.h | ||
surface.h | ||
swaynag.h | ||
xdg_decoration.h | ||
xwayland.h |