From 24f03b14b815fcd1e3a5fbeb360d500e43c4abca Mon Sep 17 00:00:00 2001 From: Aiden Shef Date: Fri, 26 Apr 2024 08:31:36 -0600 Subject: [PATCH] Use Vuetify's Material design palette colors for protocol color like other columns in node table --- 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 } }