Skip to content

Commit

Permalink
examples/clock.rs: use SimpleTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 8, 2023
1 parent 84197e1 commit 9ef0f2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions examples/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use kas::geom::{Offset, Quad, Rect, Vec2};
use kas::prelude::*;
use kas::text::Text;

type Application = kas::app::Default<(), kas::theme::FlatTheme>;
type Application = kas::app::Default<(), kas::theme::SimpleTheme>;

impl_scope! {
#[derive(Clone)]
Expand Down Expand Up @@ -178,5 +178,8 @@ fn main() -> kas::app::Result<()> {
.with_decorations(kas::Decorations::None)
.with_transparent(true);

Application::new(())?.with(window).run()
Application::with_theme(Default::default())
.build(())?
.with(window)
.run()
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub mod app {
/// Application pre-launch state, configured with the default graphics backend
#[cfg(feature = "wgpu")]
pub type Default<Data, T = crate::theme::FlatTheme> =
kas_core::app::Application<Data, kas_wgpu::WgpuBuilder<()>, T>;
Application<Data, kas_wgpu::WgpuBuilder<()>, T>;
}

#[cfg(feature = "dynamic")]
Expand Down

0 comments on commit 9ef0f2f

Please sign in to comment.