Style the busy and waiting colors

This commit is contained in:
cmdr2 2022-10-17 17:52:55 +05:30
parent 9af75bf9b2
commit 5f1593f4d0
2 changed files with 8 additions and 8 deletions

View File

@ -326,13 +326,13 @@ img {
height: 8pt; height: 8pt;
border-radius: 4pt; */ border-radius: 4pt; */
font-size: 14pt; font-size: 14pt;
color: rgb(128, 87, 0); color: rgb(200, 139, 0);
/* background-color: rgb(197, 1, 1); */ /* background-color: rgb(197, 1, 1); */
/* transform: translateY(15%); */ /* transform: translateY(15%); */
display: inline; display: inline;
} }
#server-status-msg { #server-status-msg {
color: rgb(128, 87, 0); color: rgb(200, 139, 0);
padding-left: 2pt; padding-left: 2pt;
font-size: 10pt; font-size: 10pt;
} }
@ -479,12 +479,12 @@ img {
.activeTaskLabel { .activeTaskLabel {
background:rgb(0, 90, 30); background:rgb(0, 90, 30);
border: 1px solid rgb(0, 75, 19); border: 1px solid rgb(0, 75, 19);
color:rgb(204, 255, 217) color:rgb(222, 253, 230)
} }
.waitingTaskLabel { .waitingTaskLabel {
background:rgb(90, 90, 0); background:rgb(128, 89, 0);
border: 1px solid rgb(0, 75, 19); border: 1px solid rgb(0, 75, 19);
color:rgb(255, 255, 204) color:rgb(255, 242, 211)
} }
.secondaryButton { .secondaryButton {
background: rgb(132, 8, 0); background: rgb(132, 8, 0);

View File

@ -235,8 +235,8 @@ function setServerStatus(msgType, msg) {
serverStatusMsg.innerText = 'Stable Diffusion is ' + msg serverStatusMsg.innerText = 'Stable Diffusion is ' + msg
break break
case 'busy': case 'busy':
serverStatusColor.style.color = 'yellow' serverStatusColor.style.color = 'rgb(200, 139, 0)'
serverStatusMsg.style.color = 'yellow' serverStatusMsg.style.color = 'rgb(200, 139, 0)'
serverStatusMsg.innerText = 'Stable Diffusion is ' + msg serverStatusMsg.innerText = 'Stable Diffusion is ' + msg
break break
case 'error': case 'error':
@ -571,7 +571,7 @@ async function doMakeImage(task) {
console.log('Endpoint response: ', renderRequest) console.log('Endpoint response: ', renderRequest)
throw new Error('Endpoint response does not contains a response stream url.') throw new Error('Endpoint response does not contains a response stream url.')
} }
task['taskStatusLabel'].innerText = "Busy/Waiting" task['taskStatusLabel'].innerText = "Waiting"
task['taskStatusLabel'].classList.add('waitingTaskLabel') task['taskStatusLabel'].classList.add('waitingTaskLabel')
task['taskStatusLabel'].classList.remove('activeTaskLabel') task['taskStatusLabel'].classList.remove('activeTaskLabel')