Flatten theme styles by eliminating top-level ui key

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Nathan Sobo
2021-08-20 10:44:34 -06:00
co-authored by Max Brunsfeld Antonio Scandurra
parent 9b7756f566
commit 9ff764983d
6 changed files with 24 additions and 25 deletions
+3 -3
View File
@@ -207,7 +207,7 @@ impl ThemeSelector {
settings.ui_font_family,
settings.ui_font_size,
)
.with_style(&settings.theme.ui.selector.label)
.with_style(&settings.theme.selector.label)
.boxed(),
)
.with_margin_top(6.0)
@@ -240,7 +240,7 @@ impl ThemeSelector {
fn render_match(&self, theme_match: &StringMatch, index: usize) -> ElementBox {
let settings = self.settings.borrow();
let theme = &settings.theme.ui;
let theme = &settings.theme;
let container = Container::new(
Label::new(
@@ -286,7 +286,7 @@ impl View for ThemeSelector {
.with_child(Expanded::new(1.0, self.render_matches(cx)).boxed())
.boxed(),
)
.with_style(&settings.theme.ui.selector.container)
.with_style(&settings.theme.selector.container)
.boxed(),
)
.with_max_width(600.0)