mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add text color for action mode text (starts with >)
This commit is contained in:
@@ -2874,6 +2874,10 @@ button.disabled {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.action_mode_input {
|
||||
color: var(--action_mode_input);
|
||||
}
|
||||
|
||||
.console_text {
|
||||
white-space: pre-wrap;
|
||||
display: inline-block;
|
||||
|
@@ -522,6 +522,12 @@ function do_story_text_updates(action) {
|
||||
story_area.prepend(item);
|
||||
}
|
||||
}
|
||||
|
||||
if (action.action['Selected Text'].charAt(0) == ">") {
|
||||
item.classList.add("action_mode_input");
|
||||
} else {
|
||||
item.classList.remove("action_mode_input");
|
||||
}
|
||||
|
||||
if ('wi_highlighted_text' in action.action) {
|
||||
for (chunk of action.action['wi_highlighted_text']) {
|
||||
|
@@ -44,6 +44,7 @@
|
||||
--text: #e0e0e0;
|
||||
--text_to_ai_color: #e0e0e0;
|
||||
--text_edit: #34dae7;
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #1e6d6aa1;
|
||||
--statusbar_text_color: #e0e0e0;
|
||||
|
@@ -89,6 +89,7 @@
|
||||
--text: var(--gruvbox-light0);
|
||||
--text_to_ai_color: var(--gruvbox-bright-blue);
|
||||
--text_edit: var(--gruvbox-neutral-aqua);
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #002d6ca1;
|
||||
--statusbar_text_color: white;
|
||||
|
@@ -47,6 +47,7 @@
|
||||
--text: var(--on_background_palette);
|
||||
--text_to_ai_color: var(--on_background_palette);
|
||||
--text_edit: var(--on_background_palette);
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #002d6ca1;
|
||||
--statusbar_text_color: white;
|
||||
|
@@ -44,6 +44,7 @@
|
||||
--text: #e0e0e0;
|
||||
--text_to_ai_color: #e0e0e0;
|
||||
--text_edit: #9cc3ee;
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #eedcb880;
|
||||
--statusbar_text_color: #e0e0e0;
|
||||
|
@@ -44,6 +44,7 @@
|
||||
--text: #fff;
|
||||
--text_to_ai_color: #fff;
|
||||
--text_edit: #cdf;
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #3bf72380;
|
||||
--statusbar_text_color: #ffffff;
|
||||
|
@@ -48,6 +48,7 @@
|
||||
--text: #f2f1f1;
|
||||
--text_to_ai_color: #3d3d3d;
|
||||
--text_edit: #3d3d3d;
|
||||
--action_mode_input: #33E978;
|
||||
|
||||
--statusbar_color: #fde0e080;
|
||||
--statusbar_text_color: white;
|
||||
|
Reference in New Issue
Block a user