Skip to content

Commit

Permalink
feat: icons for print settings (mainsail-crew#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
vajonam authored and dw-0 committed Dec 25, 2021
1 parent e0a29dd commit ba7ef6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/inputs/ToolSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
</v-icon>
</v-btn>
<v-icon small :class="'mr-2'">
{{ icon }}
</v-icon>
<span>{{ label }}</span>
<v-btn
v-if="value !== defaultValue"
Expand Down Expand Up @@ -80,6 +83,7 @@ export default class ToolSlider extends Mixins(BaseMixin) {
@Prop({ type: String, required: true }) readonly command!: string
@Prop({ type: String, default: '' }) readonly attributeName!: string
@Prop({ type: String, default: '' }) readonly label!: string
@Prop({ type: String, default: '' }) readonly icon!: string
@Prop({ type: String, default: '%' }) readonly unit!: string
@Prop({ type: Number, default: 1 }) readonly attributeScale!: number
@Prop({ type: Number, default: 0 }) readonly min!: number
Expand Down
2 changes: 2 additions & 0 deletions src/components/panels/PrintsettingsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
>
<tool-slider
:label="$t('Panels.PrintsettingsPanel.SpeedFactor')"
icon="mdi-rabbit"
:target="speed_factor"
:max="200"
:multi="100"
Expand All @@ -24,6 +25,7 @@
<v-divider></v-divider>
<tool-slider
:label="$t('Panels.PrintsettingsPanel.ExtrusionFactor')"
icon="mdi-printer-3d-nozzle-outline"
:target="extrude_factor"
:max="200"
:multi="100"
Expand Down

0 comments on commit ba7ef6c

Please sign in to comment.