widget_styles (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

#config_version=5

modes:
  - mode1

displays:
  default:
    width: 400
    height: 300

widget_styles:
  text_default:
    font_size: 21
    color: red
  bigStyle:
    font_size: 100
    halign: left
  stackedStyle:
    color: blue

slides:
  slide1:
    - type: text
      text: HELLO
      style: bigStyle
      halign: right
    - type: text
      text: Default Style
      y: 100
  slide3:
    - type: text
      font_size: 30
      text: COLOR FROM DEFAULT STYLE
  slide4:
    - type: text
      text: TESTING INVALID STYLE
      style: bogus
  slide5:
    - type: text
      text: HELLO
      style: bigStyle
      font_size: 50
  slide6:
    - type: text
      text: HELLO TOO
      style: bigStyle stackedStyle
  slide7:
    - type: text
      text: HELLO THREE
      style:
        - text_default
        - stackedStyle

slide_player:
  slide1: slide1
  slide3: slide3
  slide4: slide4
  slide5: slide5
  slide6: slide6
  slide7: slide7

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

#config_version=5

mode:
  priority: 100

widget_styles:
  text_default:
    font_size: 50

slides:
  slide2:
    - type: text
      text: MODE1 DEFAULT STYLE
      y: 75
    - type: text
      style: big
      text: BIG FROM BASE
      y: 225

slide_player:
  slide2: slide2