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
|
|
@ -13,12 +13,15 @@ use std::marker::PhantomData;
|
|||
use std::ops::RangeInclusive;
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::sandbox(ColorPalette::update, ColorPalette::view)
|
||||
.theme(ColorPalette::theme)
|
||||
.title("Color Palette - Iced")
|
||||
.default_font(Font::MONOSPACE)
|
||||
.antialiased()
|
||||
.run()
|
||||
iced::sandbox(
|
||||
"Color Palette - Iced",
|
||||
ColorPalette::update,
|
||||
ColorPalette::view,
|
||||
)
|
||||
.theme(ColorPalette::theme)
|
||||
.default_font(Font::MONOSPACE)
|
||||
.antialiased()
|
||||
.run()
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue