feat: icons for print settings (#441)

This commit is contained in:
vajonam 2021-12-04 19:27:56 -05:00 committed by GitHub
parent 501b012bdb
commit b533955bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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"
@ -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

View File

@ -12,6 +12,7 @@
>
<tool-slider
:label="$t('Panels.PrintsettingsPanel.SpeedFactor')"
icon="mdi-rabbit"
:target="speed_factor"
:max="200"
:multi="100"
@ -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"