From 2df5105afda0dc879bd2231e9d02cb314f7f783a Mon Sep 17 00:00:00 2001 From: acshef Date: Mon, 29 Apr 2024 01:08:43 -0600 Subject: [PATCH] fix(ui): use vuetify's material design palette colors for protocol color (#3692) --- src/lib/utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/utils.js b/src/lib/utils.js index f925e650030..ae0fc9fd99e 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -1,4 +1,5 @@ import { isValidDSK, Protocols } from '@zwave-js/core/safe' +import colors from 'vuetify/lib/util/colors' export function copy(o) { return JSON.parse(JSON.stringify(o)) @@ -194,10 +195,10 @@ export function getProtocol(node) { export function getProtocolColor(node) { switch (node.protocol) { case Protocols.ZWave: - return 'blue' + return colors.blue.base case Protocols.ZWaveLongRange: - return 'purple' + return colors.purple.base default: - return 'grey' + return colors.grey.base } }