From 5a098e16461bbdc28c1ba22b67c9eba5dd6aa997 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 21 Sep 2025 07:22:34 +0800 Subject: [PATCH] updated lite --- klite.embd | 120 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 106 insertions(+), 14 deletions(-) diff --git a/klite.embd b/klite.embd index 83f6dbede..164672c05 100644 --- a/klite.embd +++ b/klite.embd @@ -111,7 +111,7 @@ Current version indicated by LITEVER below. --theme_color_topmenu: #32496d; } - .theme-old { + .theme-1 { --theme_color_bg_dark:#262626; --theme_color_bg_outer:#303030; --theme_color_bg:#263040; @@ -135,6 +135,78 @@ Current version indicated by LITEVER below. --theme_color_topmenu: #337ab7; } + .theme-2 { + --theme_color_bg: #2f2231; + --theme_color_bg_dark: #211b22; + --theme_color_bg_outer: #170f1a; + --theme_color_border: #bd8857; + --theme_color_border_highlight: #e68e3a; + --theme_color_disabled_bg: #484d56; + --theme_color_disabled_fg: #616773; + --theme_color_footer: #2a1d30; + --theme_color_glow_text: #a161a6; + --theme_color_highlight: #ffa434; + --theme_color_input_bg: #5c3b6b; + --theme_color_input_text: #ffffff; + --theme_color_main: #ce9447; + --theme_color_placeholder_text: #b6b3b3; + --theme_color_tabs: #e4a95a; + --theme_color_tabs_highlight: #dc901c; + --theme_color_tabs_text: #ffffff; + --theme_color_text: #ffffff; + --theme_color_topbtn: #c88333; + --theme_color_topbtn_highlight: #d98908; + --theme_color_topmenu: #2a1f33; + } + + .theme-3 { + --theme_color_bg: #000000; + --theme_color_bg_dark: #000000; + --theme_color_bg_outer: #000000; + --theme_color_border: #000000; + --theme_color_border_highlight: #ffffff; + --theme_color_disabled_bg: #000000; + --theme_color_disabled_fg: #000000; + --theme_color_footer: #000000; + --theme_color_glow_text: #94d7ff; + --theme_color_highlight: #4d4d4d; + --theme_color_input_bg: #475162; + --theme_color_input_text: #ffffff; + --theme_color_main: #000000; + --theme_color_placeholder_text: #9e9e9e; + --theme_color_tabs: #000000; + --theme_color_tabs_highlight: #596985; + --theme_color_tabs_text: #ffffff; + --theme_color_text: #ffffff; + --theme_color_topbtn: #000000; + --theme_color_topbtn_highlight: #596985; + --theme_color_topmenu: #000000; + } + + .theme-4 { + --theme_color_bg: #182330; + --theme_color_bg_dark: #0b141a; + --theme_color_bg_outer: #182330; + --theme_color_border: #485c6c; + --theme_color_border_highlight: #82a1bc; + --theme_color_disabled_bg: #484d56; + --theme_color_disabled_fg: #616773; + --theme_color_footer: #182330; + --theme_color_glow_text: #94d7ff; + --theme_color_highlight: #00bfffcc; + --theme_color_input_bg: #475162; + --theme_color_input_text: #e0e0e0; + --theme_color_main: #ff69b499; + --theme_color_placeholder_text: #9e9e9e; + --theme_color_tabs: #32496d; + --theme_color_tabs_highlight: #00bfffcc; + --theme_color_tabs_text: #e0e0e0; + --theme_color_text: #d1d1d1; + --theme_color_topbtn: #ff69b4b3; + --theme_color_topbtn_highlight: #00bfffcc; + --theme_color_topmenu: #ff69b4b3; + } + body.connected.corpoui .topmenu { --theme_color_topmenu: #337ab7; } @@ -3653,7 +3725,7 @@ Current version indicated by LITEVER below. passed_ai_warning: false, //used to store AI safety panel acknowledgement state entersubmit: (is_on_mobile()?false:true), //enter sends the prompt darkmode: true, - oldtheme: false, //temp setting maybe. + colortheme: 0, // 0=newtheme, 1=oldtheme, 2=fruity, 3=black render_streaming_markdown: true, raw_instruct_tags: false, //experimental flags @@ -13132,7 +13204,7 @@ Current version indicated by LITEVER below. document.getElementById("show_advanced_load").checked = localsettings.show_advanced_load; document.getElementById("import_tavern_prompt").checked = localsettings.import_tavern_prompt; document.getElementById("invert_colors").checked = localsettings.invert_colors; - document.getElementById("oldtheme").checked = localsettings.oldtheme; + document.getElementById("colortheme").value = localsettings.colortheme; document.getElementById("sidepanel_mode").checked = localsettings.sidepanel_mode; document.getElementById("trimsentences").checked = localsettings.trimsentences; document.getElementById("trimwhitespace").checked = localsettings.trimwhitespace; @@ -13611,11 +13683,25 @@ Current version indicated by LITEVER below. document.body.classList.remove("invert_colors"); } - if(localsettings.oldtheme) + document.body.classList.remove("theme-1"); + document.body.classList.remove("theme-2"); + document.body.classList.remove("theme-3"); + document.body.classList.remove("theme-4"); + if(localsettings.colortheme==1) { - document.body.classList.add("theme-old"); - } else { - document.body.classList.remove("theme-old"); + document.body.classList.add("theme-1"); + } + else if(localsettings.colortheme==2) + { + document.body.classList.add("theme-2"); + } + else if(localsettings.colortheme==3) + { + document.body.classList.add("theme-3"); + } + else if(localsettings.colortheme==4) + { + document.body.classList.add("theme-4"); } } @@ -13715,7 +13801,7 @@ Current version indicated by LITEVER below. localsettings.show_advanced_load = (document.getElementById("show_advanced_load").checked ? true : false); localsettings.import_tavern_prompt = (document.getElementById("import_tavern_prompt").checked ? true : false); localsettings.invert_colors = (document.getElementById("invert_colors").checked ? true : false); - localsettings.oldtheme = (document.getElementById("oldtheme").checked ? true : false); + localsettings.colortheme = parseInt(document.getElementById("colortheme").value); localsettings.sidepanel_mode = (document.getElementById("sidepanel_mode").checked ? true : false); localsettings.trimsentences = (document.getElementById("trimsentences").checked ? true : false); localsettings.trimwhitespace = (document.getElementById("trimwhitespace").checked ? true : false); @@ -22274,7 +22360,7 @@ Current version indicated by LITEVER below. let panel = document.getElementById('corpoleftpanelitemstopper'); let panelitems = `
Context
Raw Editor
-
Light / Dark Theme
`; +
Light / Dark Mode
`; if(localsettings.opmode==3||localsettings.opmode==4) { @@ -26413,6 +26499,17 @@ Current version indicated by LITEVER below. +
+
Color Scheme ?Set UI color scheme. Does not apply to corpo mode.
+ +
Options below are experimental. Use at your own risk.
@@ -26446,11 +26543,6 @@ Current version indicated by LITEVER below. class="helptext">Adds extra data to the savefile for better legacy support. Will make your savefile much larger.
-
-
OldColorTheme ?Switch to old color theme.
- -