From ef902e02574408d02c76a3ead254a840f44e0a2c Mon Sep 17 00:00:00 2001 From: "P.J. Finlay" Date: Sat, 16 Sep 2023 17:00:10 -0500 Subject: [PATCH] Fix text color in dark mode Currently when the browser has a dark theme enabled the language selection dropdown has white text on a white background that is un-readable. This commit changes the dropdown select to have black text on a white background. https://github.com/LibreTranslate/LibreTranslate/issues/491 --- libretranslate/static/css/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretranslate/static/css/main.css b/libretranslate/static/css/main.css index c002cf4..f9cb39a 100644 --- a/libretranslate/static/css/main.css +++ b/libretranslate/static/css/main.css @@ -180,6 +180,10 @@ select { color: var(--fg-color); } +select option { + color: var(--pri-bg-color); +} + .language-select { display: inline-flex; align-items: center;