Skip to content

Commit 7d61637

Browse files
committed
[feature] Make Auto/Manual buttons green/red based on which one is active
1 parent e3e2584 commit 7d61637

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/components/control/MatchSettingsBar.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<div class="btn-group-toggle btn-group" v-hotkey="keymapToggleAutoRef">
88
<label v-b-tooltip.hover
99
:title="'Enable automatic continuation based on game events (' + Object.keys(keymapToggleAutoRef)[0] + ')'"
10-
:class="{btn:true, 'btn-secondary': true, active: autoContinue}"
10+
:class="{btn:true, 'btn-active': autoContinue, 'btn-passive': !autoContinue}"
1111
@click="setAutoContinue(true)">
1212
Auto
1313
</label>
1414
<label v-b-tooltip.hover
1515
:title="'Disable automatic continuation based on game events (' + Object.keys(keymapToggleAutoRef)[0] + ')'"
16-
:class="{btn:true, 'btn-secondary': true, active: !autoContinue}"
16+
:class="{btn:true, 'btn-active': !autoContinue, 'btn-passive': autoContinue}"
1717
@click="setAutoContinue(false)">
1818
Manual
1919
</label>
@@ -112,4 +112,16 @@
112112
margin-right: 0.5em;
113113
margin-bottom: 0.5em;
114114
}
115+
116+
.btn-active {
117+
background-color: green;
118+
border-color: green;
119+
color: white;
120+
}
121+
122+
.btn-passive {
123+
background-color: red;
124+
border-color: red;
125+
color: white;
126+
}
115127
</style>

0 commit comments

Comments
 (0)