Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou committed Jan 8, 2022
2 parents d6b9863 + 4ac9b56 commit e919a81
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions src/components/gcodeviewer/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ export default class Viewer extends Mixins(BaseMixin) {
viewerInit(element: HTMLCanvasElement) {
viewer = new GCodeViewer(element)
viewer.init()
viewer.setBackgroundColor('#121212')
viewer.setBackgroundColor(this.backgroundColor)
viewer.bed.setBedColor(this.gridColor)
viewer.setCursorVisiblity(this.showCursor)
viewer.setZClipPlane(1000000, -1000000)
viewer.axes.show(this.showAxes)
Expand Down Expand Up @@ -753,7 +754,7 @@ export default class Viewer extends Mixins(BaseMixin) {
}
get backgroundColor() {
return this.$store.state.gui.gcodeViewer?.backgroundColor ?? '#000000'
return this.$store.state.gui.gcodeViewer?.backgroundColor ?? '#121212'
}
@Watch('backgroundColor')
Expand All @@ -763,7 +764,7 @@ export default class Viewer extends Mixins(BaseMixin) {
}
get gridColor() {
return this.$store.state.gui.gcodeViewer?.gridColor ?? '#000000'
return this.$store.state.gui.gcodeViewer?.gridColor ?? '#B3B3B3'
}
@Watch('gridColor')
Expand Down
6 changes: 3 additions & 3 deletions src/components/panels/ControlPanelCrossControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="col-12">
<v-btn-toggle v-if="stepsReversed.length > 0" dense no-gutters style="flex-wrap: nowrap; width: 100%;" v-model="selectedCrossStep">
<v-btn dense class="btnMinWidthAuto flex-grow-1 px-0" v-for="steps of stepsReversed" :key="'all-'+steps">
<span class="body-2">{{ steps }}</span>
<v-btn-toggle v-if="stepsReversed.length > 0" dense no-gutters style="flex-wrap: nowrap; width: 100%;" v-model="selectedCrossStep" :key="'all-steps-'+stepsReversed.join('_')">
<v-btn dense class="btnMinWidthAuto flex-grow-1 px-0" v-for="step of stepsReversed" :key="'step-'+step">
<span class="body-2">{{ step }}</span>
</v-btn>
</v-btn-toggle>
<div class="font-weight-bold warning rounded pa-2" v-else>
Expand Down
12 changes: 6 additions & 6 deletions src/store/gui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ export const getDefaultState = (): GuiState => {
confirmUnsavedChanges: true
},
gcodeViewer: {
extruderColors : ['#00FFFFFF','#FF00FFFF','#FFFF00FF','#000000FF','#FFFFFFFF'],
gridColor : '#0000FF',
backgroundColor : '#000000',
extruderColors : ['#E76F51FF','#F4A261FF','#E9C46AFF','#2A9D8FFF','#264653FF'],
gridColor : '#B3B3B3',
backgroundColor : '#121212',
colorMode : 2,
showAxes : true,
minFeed : 20,
maxFeed : 100,
minFeedColor : '#0000FF',
maxFeedColor : '#FF0000',
progressColor : '#FFFFFF',
minFeedColor : '#2196f3',
maxFeedColor : '#D41216',
progressColor : '#FFFFFFB2',
showCursor: true,
showTravelMoves: false,
showObjectSelection: false,
Expand Down

0 comments on commit e919a81

Please sign in to comment.