Add theme and theme_changes functions to system
This commit is contained in:
parent
9518573fce
commit
09c604c92d
24 changed files with 186 additions and 102 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use iced::system;
|
||||
use iced::widget::{button, center, column, text};
|
||||
use iced::{Element, Task, system};
|
||||
use iced::{Element, Task};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::application(Example::new, Example::update, Example::view).run()
|
||||
|
|
@ -26,7 +27,7 @@ impl Example {
|
|||
fn new() -> (Self, Task<Message>) {
|
||||
(
|
||||
Self::Loading,
|
||||
system::fetch_information().map(Message::InformationReceived),
|
||||
system::information().map(Message::InformationReceived),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue