Make sandbox helper take a title as well
This commit is contained in:
parent
3f81c524cc
commit
bb71e8481e
21 changed files with 64 additions and 58 deletions
|
|
@ -7,10 +7,9 @@ use iced::{Alignment, Element, Length, Subscription, Theme};
|
|||
use std::time::{Duration, Instant};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::sandbox(Stopwatch::update, Stopwatch::view)
|
||||
iced::sandbox("Stopwatch - Iced", Stopwatch::update, Stopwatch::view)
|
||||
.subscription(Stopwatch::subscription)
|
||||
.theme(Stopwatch::theme)
|
||||
.title("Stopwatch - Iced")
|
||||
.run()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue