Skip to content

Commit

Permalink
fix(ui): use vuetify's material design palette colors for protocol co…
Browse files Browse the repository at this point in the history
…lor (#3692)
  • Loading branch information
acshef committed Apr 29, 2024
1 parent e327942 commit 2df5105
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/utils.js
Original file line number Diff line number Diff line change
@@ -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))
Expand Down Expand Up @@ -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
}
}

0 comments on commit 2df5105

Please sign in to comment.