Address PR feedback

This commit is contained in:
Hirame1 2022-04-19 18:46:44 +07:00
parent 870b77f69d
commit 6f417da7ad
3 changed files with 11 additions and 11 deletions

View File

@ -160,6 +160,7 @@
width: 3.3rem;
margin: 0.4rem;
border-radius: 0.3rem;
border: 0.2rem solid #767676;
cursor: pointer;
}
@ -169,8 +170,7 @@
}
.c-automator__button--active {
border-color: #45a047;
color: #45a047;
background-color: var(--color-reality);
}
.c-automator__button-resume {

View File

@ -68,23 +68,23 @@ export default {
},
docStyle() {
return {
"color": this.infoPaneID === 1 ? "green" : ""
"background-color": this.infoPaneID === 1 ? "var(--color-reality)" : ""
};
},
blockStyle() {
return {
"color": this.infoPaneID === 2 ? "green" : ""
"background-color": this.infoPaneID === 2 ? "var(--color-reality)" : ""
};
},
logStyle() {
return {
"color": this.infoPaneID === 4 ? "green" : ""
"background-color": this.infoPaneID === 4 ? "var(--color-reality)" : ""
};
},
errorStyle() {
const errorlessColor = this.infoPaneID === 3 ? "green" : "";
const errorlessColor = this.infoPaneID === 3 ? "var(--color-reality)" : "";
return {
"color": this.errorCount === 0 ? errorlessColor : "red"
"background-color": this.errorCount === 0 ? errorlessColor : "red"
};
}
},

View File

@ -60,22 +60,22 @@ export default {
},
sortStyle(selected) {
return {
"color": selected ? "green" : ""
"background-color": selected ? "var(--color-reality)" : ""
};
},
timestampStyle(key) {
return {
"color": this.timestampMode === AUTOMATOR_EVENT_TIMESTAMP_MODE[key] ? "green" : ""
"background-color": this.timestampMode === AUTOMATOR_EVENT_TIMESTAMP_MODE[key] ? "var(--color-reality)" : ""
};
},
clearRealityStyle() {
return {
"color": this.clearOnReality ? "green" : ""
"background-color": this.clearOnReality ? "var(--color-reality)" : ""
};
},
clearRestartStyle() {
return {
"color": this.clearOnRestart ? "green" : ""
"background-color": this.clearOnRestart ? "var(--color-reality)" : ""
};
},
setTimestampMode(key) {