Skip to content

Commit

Permalink
Use FlatTheme for more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Aug 12, 2022
1 parent 5992541 commit 3b3f997
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/kas-core/src/theme/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl<'a> std::ops::BitOrAssign<TkAction> for DrawMgr<'a> {
///
/// Most themes will not want to implement *everything*, but rather derive
/// not-explicitly-implemented methods from a base theme. This may be achieved
/// with the [`kas_macros::extends`] macro:
/// with the [`kas::macros::extends`](crate::macros::extends) macro:
/// ```ignore
/// #[extends(ThemeDraw, base = self.base())]
/// impl ThemeDraw {
Expand Down
2 changes: 1 addition & 1 deletion examples/counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn main() -> kas::shell::Result<()> {
}
};

let theme = kas::theme::ShadedTheme::new().with_font_size(24.0);
let theme = kas::theme::SimpleTheme::new().with_font_size(24.0);
kas::shell::Toolkit::new(theme)?
.with(Counter::new(0))?
.run()
Expand Down
2 changes: 1 addition & 1 deletion examples/data-list-view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,6 @@ fn main() -> kas::shell::Result<()> {
}
};

let theme = kas::theme::ShadedTheme::new();
let theme = kas::theme::FlatTheme::new();
kas::shell::Toolkit::new(theme)?.with(window)?.run()
}
2 changes: 1 addition & 1 deletion examples/data-list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ fn main() -> kas::shell::Result<()> {
}
};

let theme = kas::theme::ShadedTheme::new();
let theme = kas::theme::FlatTheme::new();
kas::shell::Toolkit::new(theme)?.with(window)?.run()
}

0 comments on commit 3b3f997

Please sign in to comment.