diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-12-27 23:33:55 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-12-27 23:33:55 -0500 |
| commit | 8e32e808ad0d0e5f94e377d0c34f5440cf355656 (patch) | |
| tree | b5916b36f4161c1c4d670295254d0f3fd9e793df /README.md | |
| parent | 8ef971a1de44fef94deae70337109f632204638a (diff) | |
parse_color: return success + drop fallback color
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.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
