Dim down the red color of token counter #90

This commit is contained in:
SillyLossy
2023-04-16 20:50:59 +03:00
parent 69beea39ff
commit 0358daa9b1
2 changed files with 4 additions and 5 deletions

View File

@@ -165,7 +165,7 @@ function RA_CountCharTokens() {
// display the counted tokens // display the counted tokens
if (count_tokens < 1024 && perm_tokens < 1024) { if (count_tokens < 1024 && perm_tokens < 1024) {
$("#result_info").html(count_tokens + " Tokens (" + perm_tokens + " Permanent Tokens)"); //display normal if both counts are under 1024 $("#result_info").html(count_tokens + " Tokens (" + perm_tokens + " Permanent Tokens)"); //display normal if both counts are under 1024
} else { $("#result_info").html("<font color=red>" + count_tokens + " Tokens (" + perm_tokens + " Permanent Tokens)(TOO MANY)</font>"); } //warn if either are over 1024 } else { $("#result_info").html(`<span class="neutral_warning">${count_tokens} Tokens (${perm_tokens} Permanent Tokens)(TOO MANY)</span>`); } //warn if either are over 1024
} }
//Auto Load Last Charcter -- (fires when active_character is defined and auto_load_chat is true) //Auto Load Last Charcter -- (fires when active_character is defined and auto_load_chat is true)
async function RA_autoloadchat() { async function RA_autoloadchat() {

View File

@@ -2606,7 +2606,7 @@ body.big-avatars .collage_4 .img_4 {
} }
span.warning { span.warning {
color: rgb(190, 0, 0); color: rgba(255, 0, 0, 0.5);
font-weight: bolder; font-weight: bolder;
} }
@@ -3148,9 +3148,8 @@ toolcool-color-picker {
flex-wrap: wrap; flex-wrap: wrap;
} }
.reverse_proxy_warning { .reverse_proxy_warning, .neutral_warning {
color: red; color: rgba(255, 0, 0, 0.5)
opacity: 0.5;
} }
.textarea_compact { .textarea_compact {