From ae2b9d12790edb1ba029104d591bfb64817fd860 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Nov 2024 22:46:47 +0100 Subject: [PATCH] feat(StatusPanel): change tab text to icons Signed-off-by: Stefan Dej --- src/components/panels/StatusPanel.vue | 34 +++++++++++++++++++-------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index d0a3833bb..cfe40b7ec 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -89,11 +89,15 @@ - {{ $t('Panels.StatusPanel.Status') }} - {{ $t('Panels.StatusPanel.Files') }} + + {{ mdiSpeedometer }} + + + {{ mdiFileDocumentMultipleOutline }} + - {{ $t('Panels.StatusPanel.Jobqueue') }} + {{ mdiTrayFull }} @@ -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' @@ -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 @@ -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); +}