Make sandbox helper take a title as well

This commit is contained in:
Héctor Ramón Jiménez 2024-03-16 16:12:07 +01:00
parent 3f81c524cc
commit bb71e8481e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
21 changed files with 64 additions and 58 deletions

View file

@ -6,11 +6,14 @@ use iced::widget::{
use iced::{Element, Length, Point, Rectangle, Renderer, Theme, Vector};
pub fn main() -> iced::Result {
iced::sandbox(VectorialText::update, VectorialText::view)
.theme(|_| Theme::Dark)
.title("Vectorial Text - Iced")
.antialiased()
.run()
iced::sandbox(
"Vectorial Text - Iced",
VectorialText::update,
VectorialText::view,
)
.theme(|_| Theme::Dark)
.antialiased()
.run()
}
#[derive(Default)]