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
|
|
@ -4,10 +4,13 @@ use iced::widget::{
|
|||
use iced::{Alignment, Element, Length, Theme};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::sandbox(QRGenerator::update, QRGenerator::view)
|
||||
.title("QR Code Generator - Iced")
|
||||
.theme(QRGenerator::theme)
|
||||
.run()
|
||||
iced::sandbox(
|
||||
"QR Code Generator - Iced",
|
||||
QRGenerator::update,
|
||||
QRGenerator::view,
|
||||
)
|
||||
.theme(QRGenerator::theme)
|
||||
.run()
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue