From 626d63c91dea5aabc2ff0f89f31541bcb2937486 Mon Sep 17 00:00:00 2001 From: Aya Moosa Date: Mon, 8 Apr 2024 22:00:12 -0700 Subject: [PATCH] working white text, not perfect with all colors --- src/UI/UIWindowThemeDialog.js | 6 ++---- src/css/style.css | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/UI/UIWindowThemeDialog.js b/src/UI/UIWindowThemeDialog.js index 72e5a843b..4ceed5f8c 100644 --- a/src/UI/UIWindowThemeDialog.js +++ b/src/UI/UIWindowThemeDialog.js @@ -99,10 +99,8 @@ const UIWindowThemeDialog = async function UIWindowThemeDialog () { const slider_ch = (e) => { state[e.meta.name] = e.target.value; - if (e.meta.name === 'lig' && e.target.value < 50) { - state.light_text = true; - } else { - state.light_text = false; + if (e.meta.name === 'lig') { + state.light_text = e.target.value < 70 ? true : false; } svc_theme.apply(state); console.log(state); diff --git a/src/css/style.css b/src/css/style.css index 8d0b29766..a09816a68 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -895,7 +895,6 @@ span.header-sort-icon img { white-space: nowrap; overflow: hidden; color: var(--window-head-color); - opacity: .8; } .window-active .window-head-title {