Skip to content

Commit

Permalink
Properly display not-connected color in fast UI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Apr 9, 2023
1 parent a305536 commit 78e1c5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/scripts/RossAscends-mods.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function RestoreNavTab() {
function RA_checkOnlineStatus() {
if (online_status == "no_connection") {
$("#send_textarea").attr("placeholder", "Not connected to API!"); //Input bar placeholder tells users they are not connected
$("#send_form").css("background-color", "rgba(100,0,0,0.5)"); //entire input form area is red when not connected
$("#send_form").addClass('no-connection'); //entire input form area is red when not connected
$("#send_but").css("display", "none"); //send button is hidden when not connected;
$("#API-status-top").addClass("redOverlayGlow");
connection_made = false;
Expand All @@ -210,6 +210,7 @@ function RA_checkOnlineStatus() {
$("#send_textarea").attr("placeholder", "Type a message..."); //on connect, placeholder tells user to type message
const formColor = power_user.fast_ui_mode ? "var(--black90a)" : "var(--black60a)";
/* console.log("RA-AC -- connected, coloring input as " + formColor); */
$('#send_form').removeClass("no-connection");
$("#send_form").css("background-color", formColor); //on connect, form BG changes to transprent black
$("#API-status-top").removeClass("redOverlayGlow");
connection_made = true;
Expand Down
10 changes: 9 additions & 1 deletion public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3399,7 +3399,15 @@ body.no-blur * {
}

#send_form.no-blur-sendtextarea {
background-color: var(--black90a) !important;
background-color: var(--black90a);
}

#send_form.no-connection {
background-color: rgba(100, 0, 0, 0.5);
}

#send_form.no-blur-sendtextarea.no-connection {
background-color: rgba(100, 0, 0, 0.9);
}

body.no-blur #bg1,
Expand Down

0 comments on commit 78e1c5b

Please sign in to comment.