Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Stylesheet

Ethosa edited this page Nov 15, 2021 · 4 revisions

Stylesheet

Using little part of CSS in your program 👀

This wiki page assumes that you already known with CSS

Firstly we should build our scene and put a GUI node in it.

build:
  - Scene main:
    - Control gui_node:

Now we have only one thing left - to add a stylesheet to our node. This is done as follows:

gui_node.setStyle(style({
  background-color: rgba(100, 122, 144, 0.5),
  border-radius: 8,
  border-detail: 8,
  shadow: on,
  shadow-offset: 10 10,
  margin: 4 4 4 4,
}))

Pretty easy and understandable (I hope so) 👀