Skip to content

Commit

Permalink
feat: moves certain buttons colors to primary
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <[email protected]>
  • Loading branch information
cadriel committed Mar 3, 2021
1 parent 1714a14 commit 82c53eb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/components/cards/KlippyCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<v-card-text>
<v-row>
<v-col cols="12" sm="auto">
<v-btn v-if="!klipperConnected" block color="warning" @click="serviceRestartKlipper" class="me-2 mb-2">Restart Klipper</v-btn>
<v-btn v-if="klipperConnected" block color="warning" @click="serviceRestartKlippy" class="me-2 mb-2">Restart Klipper</v-btn>
<v-btn v-if="klipperConnected" block color="warning" @click="serviceFirmwareRestartKlippy" class="me-2 mb-2">Firmware Restart</v-btn>
<v-btn block color="warning" @click="serviceRestartMoonraker" class="me-2 mb-2">Restart Moonraker</v-btn>
<v-btn v-if="!klipperConnected" block color="primary" @click="serviceRestartKlipper" class="me-2 mb-2">Restart Klipper</v-btn>
<v-btn v-if="klipperConnected" block color="primary" @click="serviceRestartKlippy" class="me-2 mb-2">Restart Klipper</v-btn>
<v-btn v-if="klipperConnected" block color="primary" @click="serviceFirmwareRestartKlippy" class="me-2 mb-2">Firmware Restart</v-btn>
<v-btn block color="primary" @click="serviceRestartMoonraker" class="me-2 mb-2">Restart Moonraker</v-btn>
<v-btn block color="secondary" @click="getKlippyLog()" class="me-2 mb-2"><v-icon left small>$download</v-icon>Klippy.log</v-btn>
<v-btn block color="secondary" @click="getMoonrakerLog()" class="me-2 mb-2"><v-icon left small>$download</v-icon>Moonraker.log</v-btn>
</v-col>
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/TemperatureTargetsWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
v-for="(preset, i) of presets"
:key="i">
<v-list-item-title>
<v-icon small left color="warning">$fire</v-icon>
<v-icon small left color="primary">$fire</v-icon>
{{ preset.name }}
</v-list-item-title>
</v-list-item>
Expand Down
10 changes: 5 additions & 5 deletions src/components/widgets/ToolheadMovesWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</v-col>
<v-col class="ml-2" v-if="canHomeXY">
<v-btn
:color="(!allHomed) ? 'warning' : 'secondary'"
:color="(!allHomed) ? 'primary' : 'secondary'"
:elevation="2"
:loading="hasWait(waits.onHomeAll)"
:disabled="!klippyConnected || printerPrinting || hasWaits"
Expand All @@ -37,7 +37,7 @@
</v-col>
<v-col cols="auto" class="ml-2">
<btn-toolhead-move
:color="(!xyHomed) ? 'warning' : 'secondary'"
:color="(!xyHomed) ? 'primary' : 'secondary'"
:loading="hasWait(waits.onHomeXY)"
:disabled="!klippyConnected || printerPrinting || hasWaits"
@click="sendGcode('G28 X Y', waits.onHomeXY)"
Expand All @@ -54,7 +54,7 @@
</v-col>
<v-col cols="auto" class="ml-2" v-if="canHomeXY">
<btn-toolhead-move
:color="(!zHomed) ? 'warning' : 'secondary'"
:color="(!zHomed) ? 'primary' : 'secondary'"
:loading="hasWait(waits.onHomeZ)"
:disabled="!klippyConnected || printerPrinting || hasWaits"
@click="sendGcode('G28 Z', waits.onHomeZ)"
Expand All @@ -64,7 +64,7 @@
</v-col>
<v-col class="ml-2" v-if="canHomeXY">
<v-btn
:color="(!xHomed) ? 'warning' : 'secondary'"
:color="(!xHomed) ? 'primary' : 'secondary'"
:elevation="2"
:loading="hasWait(waits.onHomeX)"
:disabled="!klippyConnected || printerPrinting || hasWaits"
Expand All @@ -91,7 +91,7 @@
</v-col>
<v-col class="ml-2" v-if="canHomeXY">
<v-btn
:color="(!yHomed) ? 'warning' : 'secondary'"
:color="(!yHomed) ? 'primary' : 'secondary'"
:elevation="2"
:loading="hasWait(waits.onHomeY)"
:disabled="!klippyConnected || printerPrinting || hasWaits"
Expand Down
6 changes: 3 additions & 3 deletions src/components/widgets/configuration/BedMeshWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
:disabled="hasWaits || printerPrinting || printerBusy"
v-bind="attrs"
v-on="on"
color="warning"
color="primary"
class="ml-2"
icon
small>
Expand Down Expand Up @@ -106,7 +106,7 @@
:elevation="2"
:loading="hasWait(waits.onHomeAll)"
:disabled="hasWaits || printerPrinting || printerBusy"
:color="(!allHomed) ? 'warning' : 'secondary'">
:color="(!allHomed) ? 'primary' : 'secondary'">
<v-icon small class="mr-1">$home</v-icon> All
</v-btn>
<v-btn
Expand All @@ -127,7 +127,7 @@
v-on="on"
block
class="mb-2"
color="warning"
color="primary"
:elevation="2"
:disabled="!meshLoaded || hasWaits || printerPrinting || printerBusy"
@click="openSaveDialog()">
Expand Down

0 comments on commit 82c53eb

Please sign in to comment.