Skip to content

Commit

Permalink
feat(StatusPanel): change tab text to icons
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Nov 23, 2024
1 parent 3ac6540 commit ae2b9d1
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions src/components/panels/StatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,15 @@
<v-divider class="mt-0 mb-0" />
</template>
<v-tabs v-model="activeTab" fixed-tabs>
<v-tab v-if="current_filename" href="#status">{{ $t('Panels.StatusPanel.Status') }}</v-tab>
<v-tab href="#files">{{ $t('Panels.StatusPanel.Files') }}</v-tab>
<v-tab v-if="current_filename" href="#status">
<v-icon>{{ mdiSpeedometer }}</v-icon>
</v-tab>
<v-tab href="#files">
<v-icon>{{ mdiFileDocumentMultipleOutline }}</v-icon>
</v-tab>
<v-tab href="#jobqueue">
<v-badge :color="jobQueueBadgeColor" :content="jobsCount.toString()" :inline="true">
{{ $t('Panels.StatusPanel.Jobqueue') }}
<v-icon color="disabled">{{ mdiTrayFull }}</v-icon>
</v-badge>
</v-tab>
</v-tabs>
Expand Down Expand Up @@ -133,16 +137,19 @@ import Panel from '@/components/ui/Panel.vue'
import {
mdiAlertOutline,
mdiBroom,
mdiCloseCircle,
mdiDotsVertical,
mdiFileDocumentMultipleOutline,
mdiInformation,
mdiLayersPlus,
mdiMessageProcessingOutline,
mdiPause,
mdiPlay,
mdiPrinter,
mdiSelectionRemove,
mdiSpeedometer,
mdiStop,
mdiMessageProcessingOutline,
mdiCloseCircle,
mdiLayersPlus,
mdiDotsVertical,
mdiTrayFull,
} from '@mdi/js'
import { PrinterStateMacro } from '@/store/printer/types'
import CancelJobDialog from '@/components/dialogs/CancelJobDialog.vue'
Expand All @@ -162,11 +169,14 @@ import CancelJobDialog from '@/components/dialogs/CancelJobDialog.vue'
},
})
export default class StatusPanel extends Mixins(BaseMixin) {
mdiInformation = mdiInformation
mdiMessageProcessingOutline = mdiMessageProcessingOutline
mdiAlertOutline = mdiAlertOutline
mdiCloseCircle = mdiCloseCircle
mdiDotsVertical = mdiDotsVertical
mdiAlertOutline = mdiAlertOutline
mdiFileDocumentMultipleOutline = mdiFileDocumentMultipleOutline
mdiInformation = mdiInformation
mdiMessageProcessingOutline = mdiMessageProcessingOutline
mdiSpeedometer = mdiSpeedometer
mdiTrayFull = mdiTrayFull
declare $refs: {
bigThumbnail: any
Expand Down Expand Up @@ -428,4 +438,8 @@ export default class StatusPanel extends Mixins(BaseMixin) {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
}
.theme--dark.v-tabs > .v-tabs-bar .v-tab:not(.v-tab--active) > .v-badge > .v-icon {
color: rgba(255, 255, 255, 0.6);
}
</style>

0 comments on commit ae2b9d1

Please sign in to comment.