Hey @Dimitris ,
thanks for sharing the stylguide. Could you enrich it with example sizes for example for font-size, height of the Header, Footer, etc…
For the meanwhile:
Next Little step - give it a try;-)
uid: test_ui
tags: []
props:
parameters:
- description: The label for the widget
label: Title
name: title
required: false
type: TEXT
- context: item
description: The light switch Item
label: Item
name: item
required: false
type: TEXT
parameterGroups: []
timestamp: Aug 17, 2022, 6:13:01 PM
component: f7-block
config: {}
slots:
default:
- component: f7-block
config:
style:
height: 100%
slots:
default:
- component: f7-segmented
slots:
default:
- component: oh-button
config:
action: variable
actionVariableValue: SECTION1
actionVariable: selectSection
text: Home
large: true
style:
font-weight: 200
font-size: 30px
text-decoration: underline
text-decoration-color: '=vars.selectSection=="SECTION1" ? "#F8BB00" : "transparent"'
text-underline-offset: 4px
color: '=vars.selectSection=="SECTION1" ? "black" : "#8C8C8C"'
- component: oh-button
config:
action: variable
actionVariableValue: SECTION2
actionVariable: selectSection
text: Rooms
large: true
style:
font-weight: 200
font-size: 30px
color: '=vars.selectSection=="SECTION2" ? "black" : "#8C8C8C"'
text-decoration: underline
text-decoration-color: '=vars.selectSection=="SECTION2" ? "#F8BB00" : "transparent"'
text-underline-offset: 4px
- component: oh-button
config:
action: variable
actionVariableValue: SECTION3
actionVariable: selectSection
text: Floors
large: true
style:
font-weight: 200
font-size: 30px
color: "#8C8C8C"
- component: f7-segmented
config:
visible: =!!(vars.selectSection == "SECTION2")
slots:
default:
- component: oh-button
config:
action: variable
actionVariableValue: DIV1
actionVariable: selectDivision
text: Living Room
style:
color: '=vars.selectDivision=="DIV1" ? "black" : "#8C8C8C"'
text-decoration: underline
text-underline-offset: 4px
text-decoration-color: '=vars.selectSection + vars.selectDivision == "SECTION2DIV1" ? "#F8BB00" : "transparent"'
- component: oh-button
config:
action: variable
actionVariableValue: DIV2
actionVariable: selectDivision
text: Bedroom
style:
color: '=vars.selectDivision=="DIV2" ? "black" : "#8C8C8C"'
text-decoration: underline
text-underline-offset: 3px
text-decoration-color: '=vars.selectSection + vars.selectDivision == "SECTION2DIV2" ? "#F8BB00" : "transparent"'
- component: oh-button
config:
action: variable
actionVariableValue: DIV3
actionVariable: selectDivision
text: Kitchen
style:
color: '=vars.selectDivision=="DIV3" ? "black" : "#8C8C8C"'
text-decoration: underline
text-underline-offset: 3px
text-decoration-color: '=vars.selectSection + vars.selectDivision == "SECTION2DIV3" ? "#F8BB00" : "transparent"'
- component: f7-segmented
config:
visible: =!!(vars.selectSection == "SECTION3")
slots:
default:
- component: oh-button
config:
action: variable
actionVariableValue: OTHER1
actionVariable: selectOther
text: Other One
- component: oh-button
config:
action: variable
actionVariableValue: OTHER2
actionVariable: selectOther
text: Other Two
- component: oh-button
config:
action: variable
actionVariableValue: OTHER3
actionVariable: selectOther
text: Other Three
- component: oh-cell
config:
visible: =!!(vars.selectSection + vars.selectDivision + vars.selectThing == "SECTION2DIV1Lights")
icon: f7:lightbulb
title: I am a light card in the Living Room
subtitle: only for testing
- component: oh-cell
config:
visible: =!!(vars.selectSection + vars.selectDivision + vars.selectThing == "SECTION2DIV2Lights")
icon: f7:lightbulb
title: I am a light card in the Bedroom
subtitle: only for testing
- component: Label
config:
text: =vars.selectSection + vars.selectDivision
- component: Label
config:
text: =vars.SecDiv
- component: f7-segmented
config:
class:
- segmented-strong
style:
--f7-segmented-strong-padding: 0px
--f7-segmented-strong-between-buttons: 0px
--f7-segmented-strong-button-font-weight: 300
--f7-segmented-strong-bg-color: transparent
g--f7-segmented-strong-button-hover-bg-color: rgba(255, 255, 255, 0.15)
slots:
default:
- component: oh-button
config:
class:
- padding-top-half
- display-flex
- flex-direction-column
text: Lights
action: variable
actionVariable: selectThing
actionVariableValue: Lights
icon-f7: lightbulb
iconSize: 20
iconColor: black
fill: '=vars.selectThing=="Lights" ? true : false'
style:
--f7-button-text-color: '=vars.selectThing=="Lights" ? "#6A6A6A" : "#8C8C8C"'
--f7-button-border-radius: 15px
--f7-button-padding-vertical: 0px
--f7-button-padding-horizontal: 0px
--f7-button-bg-color: '=vars.selectThing=="Lights" ? "#F8BB00" : "transparent"'
--f7-button-hover-bg-color: '=vars.selectThing=="Lights" ? "F8BB00" : "transparent"'
height: auto
font-size: 12px
- component: oh-button
config:
class:
- padding-top-half
- display-flex
- flex-direction-column
text: Climate
action: variable
actionVariable: selectThing
actionVariableValue: Climate
icon-f7: snow
iconSize: 20
iconColor: black
fill: '=vars.selectThing=="Climate" ? true : false'
style:
--f7-button-text-color: '=vars.selectThing=="Climate" ? "#6A6A6A" : "#8C8C8C"'
--f7-button-border-radius: 15px
--f7-button-padding-vertical: 0px
--f7-button-padding-horizontal: 0px
--f7-button-bg-color: '=vars.selectThing=="Climate" ? "#F8BB00" : "transparent"'
--f7-button-hover-bg-color: '=vars.selectThing=="Climate" ? "F8BB00" : "transparent"'
height: auto
font-size: 12px
- component: oh-button
config:
class:
- padding-top-half
- display-flex
- flex-direction-column
text: Rollers
action: variable
actionVariable: selectThing
actionVariableValue: Rollers
icon-f7: archivebox
iconSize: 20
iconColor: black
fill: '=vars.selectThing=="Rollers" ? true : false'
style:
--f7-button-text-color: '=vars.selectThing=="Rollers" ? "#6A6A6A" : "#8C8C8C"'
--f7-button-border-radius: 15px
--f7-button-padding-vertical: 0px
--f7-button-padding-horizontal: 0px
--f7-button-bg-color: '=vars.selectThing=="Rollers" ? "#F8BB00" : "transparent"'
--f7-button-hover-bg-color: '=vars.selectThing=="Rollers" ? "F8BB00" : "transparent"'
height: auto
font-size: 12px
- component: oh-button
config:
class:
- padding-top-half
- display-flex
- flex-direction-column
text: Security
action: variable
actionVariable: selectThing
actionVariableValue: Security
icon-f7: camera
iconSize: 20
iconColor: black
fill: '=vars.selectThing=="Security" ? true : false'
style:
--f7-button-text-color: '=vars.selectThing=="Security" ? "#6A6A6A" : "#8C8C8C"'
--f7-button-border-radius: 15px
--f7-button-padding-vertical: 0px
--f7-button-padding-horizontal: 0px
--f7-button-bg-color: '=vars.selectThing=="Security" ? "#F8BB00" : "transparent"'
--f7-button-hover-bg-color: '=vars.selectThing=="Security" ? "F8BB00" : "transparent"'
height: auto
font-size: 12px