mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
97f9f0b699
This is the first in a series of commits to refactor the color handling in sway. This changes parse_color to return whether it was success and no longer uses 0xFFFFFFFF as the fallback color. This also verifies that the string actually contains a valid hexadecimal number along with the length checks. In the process of altering the calls to parse_color, I also took the opportunity to heavily refactor swaybar's ipc_parse_colors function. This allowed for several lines of duplicated code to be removed. |
||
---|---|---|
.. | ||
tray | ||
bar.h | ||
config.h | ||
i3bar.h | ||
input.h | ||
ipc.h | ||
render.h | ||
status_line.h |