From 12b31bc28d24f5cbaae7feba52f5a0176fdaeb0f Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Mon, 19 May 2025 17:03:31 -0700 Subject: [PATCH] fix: correct color assignments in ThemeHelper for updateDockerLogColor - Updated color mappings in the FGCOLORS array to ensure proper theme color representation. - Changed THEME_AZURE to map to COLOR_BLACK and THEME_BLACK to map to COLOR_WHITE, enhancing visual clarity across themes. --- emhttp/plugins/dynamix/include/ThemeHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/ThemeHelper.php b/emhttp/plugins/dynamix/include/ThemeHelper.php index 13bd5ad1f..f560be970 100644 --- a/emhttp/plugins/dynamix/include/ThemeHelper.php +++ b/emhttp/plugins/dynamix/include/ThemeHelper.php @@ -18,10 +18,10 @@ class ThemeHelper { private const LIGHT_THEMES = [self::THEME_WHITE, self::THEME_AZURE]; private const FGCOLORS = [ - self::THEME_BLACK => self::COLOR_BLACK, + self::THEME_AZURE => self::COLOR_BLACK, self::THEME_WHITE => self::COLOR_BLACK, + self::THEME_BLACK => self::COLOR_WHITE, self::THEME_GRAY => self::COLOR_WHITE, - self::THEME_AZURE => self::COLOR_WHITE ]; private const INIT_ERROR = 'ThemeHelper not initialized. Call initWithCurrentThemeSetting() first.';