From 02fff24b4fa27c500a964148d54f793ddc1df1cb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 26 Oct 2023 16:22:41 +0200 Subject: config: improve validation of color values, default alpha to 0xff Reject color values that aren't in either RGB, or ARGB format. That is, color values that aren't hexadecimal numbers with either 6 or 8 digits. Also, if a color value is allowed to have an alpha component, and the user left it out, default to 0xff (opaque) rather than 0x00 (fully transparent). Closes #1526 --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b68a804..0696b580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,9 +52,21 @@ ## Unreleased ### Added ### Changed + +* config: ARGB color values now default to opaque, rather than + transparent, when the alpha component has been left out + ([#1526][1526]). + +[1526]: https://codeberg.org/dnkl/foot/issues/1526 + + ### Deprecated ### Removed ### Fixed + +* config: improved validation of color values. + + ### Security ### Contributors -- cgit v1.3