-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial work on help and welcome screens
- Loading branch information
1 parent
f8b6b2d
commit 504175d
Showing
8 changed files
with
162 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
pub mod dashboard; | ||
pub mod help; | ||
pub mod welcome; | ||
|
||
pub use dashboard::Dashboard; | ||
pub use help::Help; | ||
pub use welcome::Welcome; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use data::config; | ||
use iced::widget::{column, container, text}; | ||
use iced::{alignment, Length}; | ||
|
||
use crate::widget::Element; | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum Message {} | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum Event {} | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct Help { | ||
error: config::Error, | ||
} | ||
|
||
impl Help { | ||
pub fn new(error: config::Error) -> Self { | ||
Help { error } | ||
} | ||
|
||
pub fn update(&mut self, _message: Message) -> Option<Event> { | ||
None | ||
} | ||
|
||
pub fn view<'a>(&self) -> Element<'a, Message> { | ||
let content = column![] | ||
.push(text("halloy help")) | ||
.align_items(iced::Alignment::Center); | ||
|
||
container(content) | ||
.align_x(alignment::Horizontal::Center) | ||
.align_y(alignment::Vertical::Center) | ||
.width(Length::Fill) | ||
.height(Length::Fill) | ||
.into() | ||
} | ||
} |
Oops, something went wrong.