-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out a function to parse color from string
Also add some minimum effort error checking/correction as this will soon be processing a user-entered value. The extant code path should not be affected as input color values are correctly specified. Color values can be words or hex values. Accepted: - 'black' - 'white' - 'blue' - 'dark blue' - '0x0000ff' Rejected with logged error + exit: - 'nonsense color' - '0xZZZZZZ' Related to: QubesOS/qubes-issues#9304
- Loading branch information
1 parent
122f9b4
commit 7e85df2
Showing
1 changed file
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters