Skip to content

Commit a98af8b

Browse files
committed
Merge branch 'develop'
2 parents 6a65aaf + 766c529 commit a98af8b

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

src/components/KioskMultiStatePanel.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
class="multi-state-hint-icon"
55
:class="{ 'multi-state-hint-icon-override': isOverrideActive }"
66
small
7+
:style="activeState && activeState.colorDialog ? { color: activeState.colorSelectedIcon + ' !important' } : {}"
78
>format_list_bulleted</v-icon>
89
<KioskPanel
910
:isEnabled="calculateEnabled"
1011
pa="1"
1112
@click="openDialog"
1213
class="noFocus"
14+
:borderColorRaw="activeState && activeState.colorSelectedIcon ? activeState.colorSelectedIcon : null"
1315
>
1416
<template v-slot:title>
1517
<v-avatar
16-
:color="
17-
(isOverrideActive ? 'on ' : 'off ') + ' darken-1'
18+
:color="isOverrideActive && activeState.colorSelectedIcon ? activeState.colorSelectedIcon : (isOverrideActive ? 'on ' : 'off ') + ' darken-1'
1819
"
1920
size="38"
2021
>
@@ -44,6 +45,7 @@
4445
@click="selectState(state)"
4546
class="multi-state-item"
4647
:class="state.id === activeStateId ? 'multi-state-item-active' : 'multi-state-item-passive'"
48+
:style="state.colorDialog ? { backgroundColor: state.colorDialog } : {}"
4749
>
4850
<v-list-item-icon v-if="state.icon">
4951
<v-icon>{{ state.icon }}</v-icon>

src/components/KioskPanel.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:class="`ma-1 pa-${borderSize - 1} ${
55
borderColor ? borderColor : (enabled ? 'on ' : 'off ') + 'darken-1'
66
}`"
7+
:style="borderColorRaw ? { borderColor: borderColorRaw + ' !important' } : {}"
78
:max-width="maxWidth"
89
:min-width="minWidth"
910
v-bind="$attrs"
@@ -35,6 +36,8 @@ export default {
3536
isEnabled: {},
3637
borderColor: {},
3738
bgColor: {},
39+
borderColorRaw: null,
40+
bgColorRaw: null,
3841
minWidth: { default: '140px' },
3942
maxWidth: { default: '180px' },
4043
renderTitle: { default: true },

src/views/KioskOverview.vue

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -424,24 +424,27 @@ export default {
424424
states: [
425425
{
426426
id: 'home',
427-
label: 'Alle da',
427+
label: 'daheim',
428428
icon: 'home'
429429
},
430-
{
431-
id: 'away',
432-
label: 'Alle weg',
433-
icon: 'directions_walk',
434-
planIdForCheckIfOn: 65,
435-
onAction: { kind: 'event-trigger', applianceId: 22, sensorPath: 'switch1', eventPath: 'off.click' },
436-
offAction: { kind: 'event-trigger', applianceId: 22, sensorPath: 'switch1', eventPath: 'off.click' }
437-
},
438430
{
439431
id: 'asleep',
440-
label: 'Alle schlafen',
432+
label: 'schlafen',
441433
icon: 'bedtime',
442434
planIdForCheckIfOn: 70,
443435
onAction: { kind: 'event-trigger', applianceId: 72, sensorPath: 'switch1', eventPath: 'off.click' },
444436
offAction: { kind: 'event-trigger', applianceId: 72, sensorPath: 'switch1', eventPath: 'off.click' }
437+
},
438+
{
439+
id: 'away',
440+
label: 'WEG',
441+
icon: 'directions_walk',
442+
planIdForCheckIfOn: 65,
443+
colorSelectedIcon: 'rgba(255, 0, 0, 0.6)',
444+
colorSelected: 'rgba(255, 0, 0, 0.3)',
445+
colorDialog: 'rgba(255, 0, 0, 0.15)',
446+
onAction: { kind: 'event-trigger', applianceId: 22, sensorPath: 'switch1', eventPath: 'off.click' },
447+
offAction: { kind: 'event-trigger', applianceId: 22, sensorPath: 'switch1', eventPath: 'off.click' }
445448
}
446449
]
447450
},

0 commit comments

Comments
 (0)