Style elevations & update styleTrees

Also rename `info` -> `accent`

Co-Authored-By: Kay Simmons <3323631+Kethku@users.noreply.github.com>
This commit is contained in:
Nate Butler 2022-10-11 17:38:28 -04:00
parent 95bc18a995
commit 5708879b5a
11 changed files with 84 additions and 79 deletions

View file

@ -107,7 +107,7 @@ impl ThemeTestbench {
.boxed(),
)
.with_child(
Self::render_button_set(3, layer_index, "info", &layer.info, cx)
Self::render_button_set(3, layer_index, "accent", &layer.accent, cx)
.flex(1., false)
.boxed(),
)
@ -187,6 +187,14 @@ impl ThemeTestbench {
Some(|style_set| &style_set.disabled),
cx,
))
.with_child(Self::render_button(
set_index * 6 + 5,
layer_index,
"inverted",
&style_set,
Some(|style_set| &style_set.inverted),
cx,
))
}
fn render_button(