slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# `settings/defaults.rs`


## `pub fn from_str(s: &str) -> Self`

*Line 5 · fn*

Parse from string — unknown values default to `Filled`.

---

## `pub fn style_str(&self) -> &'static str`

*Line 12 · fn*

Returns the icon style as a lowercase string slice (`"filled"` or `"outlined"`).

---