From b8f3a7cbe05075fb25b67ac9800c0d4cde75c2da Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Wed, 5 Jul 2023 05:16:52 +0900 Subject: [PATCH] fix code text color & default minimal light theme --- public/scripts/power-user.js | 2 +- public/style.css | 1 + public/themes/Default (Minimal Light).json | 24 +++++++++++++++++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index f24980e35..c1a548a22 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -1338,7 +1338,7 @@ function setAvgBG() { // Calculate complementary color based on background color const complementaryHue = (h + 0.5) % 1; - const complementarySaturation = s > 0.5 ? s - 0.2 : s + 0.2; + const complementarySaturation = s > 0.5 ? s - 0.6 : s + 0.6; const complementaryLuminance = l > 0.5 ? 0.2 : 0.8; // Convert complementary color back to RGB diff --git a/public/style.css b/public/style.css index 57c9c53cc..a2297fb47 100644 --- a/public/style.css +++ b/public/style.css @@ -293,6 +293,7 @@ code { padding: 0 3px; /* max-width: calc(100svw - 95px); */ line-height: var(--mainFontSize); + color: var(--white70a); } diff --git a/public/themes/Default (Minimal Light).json b/public/themes/Default (Minimal Light).json index 5cbe3b9bc..3d4ac9e6c 100644 --- a/public/themes/Default (Minimal Light).json +++ b/public/themes/Default (Minimal Light).json @@ -1 +1,23 @@ -{"name":"Default (Minimal Light)","blur_strength":10,"main_text_color":"rgba(0, 0, 0, 1)","italics_text_color":"rgba(104, 104, 104, 1)","quote_text_color":"rgba(191, 154, 81, 1)","fastui_bg_color":"rgba(225, 225, 225, 1)","blur_tint_color":"rgba(228, 228, 228, 0.76)","shadow_color":"rgba(0, 0, 0, 0.5)","shadow_width":2,"font_scale":1,"fast_ui_mode":true,"waifuMode":false,"avatar_style":0,"chat_display":0,"noShadows":true,"sheld_width":0,"timer_enabled":false,"hotswap_enabled":false} \ No newline at end of file +{ + "name": "Default (Minimal Light) v2", + "blur_strength": 10, + "main_text_color": "rgba(89, 89, 89, 1)", + "italics_text_color": "rgba(104, 104, 104, 1)", + "quote_text_color": "rgba(191, 154, 81, 1)", + "blur_tint_color": "rgba(228, 228, 228, 0.76)", + "user_mes_blur_tint_color": "", + "bot_mes_blur_tint_color": "", + "shadow_color": "rgba(0, 0, 0, 0.5)", + "shadow_width": 2, + "font_scale": 1, + "fast_ui_mode": true, + "waifuMode": false, + "avatar_style": 0, + "chat_display": 0, + "noShadows": true, + "sheld_width": 0, + "timer_enabled": false, + "timestamps_enabled": "", + "mesIDDisplay_enabled": "", + "hotswap_enabled": false +} \ No newline at end of file