-
-
Notifications
You must be signed in to change notification settings - Fork 25
Configuration
Diggory Hardy edited this page Jun 3, 2022
·
1 revision
Configuration support is built but not enabled by default, since formats are not yet stable. It may also be used programmatically.
To use, specify paths (KAS_CONFIG
, KAS_THEME_CONFIG
) and mode
(KAS_CONFIG_MODE
: Read
(default), ReadWrite
or WriteDefault
).
To get started:
export KAS_CONFIG=kas.yaml
export KAS_THEME_CONFIG=theme.yaml
export KAS_CONFIG_MODE=readwrite
# Optionally, force creation of default files:
KAS_CONFIG_MODE=WriteDefault cargo run --example gallery
# Now, just run:
cargo run --example gallery
For further documentation, see kas_wgpu::options::Options
.
Winit detects the display's scale factor automatically (if not, it's probably a bug, except possibly on X11).
Winit allows forcing a specific scale factor on X11, e.g.:
export WINIT_X11_SCALE_FACTOR=1.5