mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-06 03:25:27 +00:00
draft status pages
This commit is contained in:
parent
2d750d0572
commit
db3c5366fd
5 changed files with 87 additions and 50 deletions
15
src/app/browser/window/tab/item/page/content/status/error.rs
Normal file
15
src/app/browser/window/tab/item/page/content/status/error.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use adw::StatusPage;
|
||||
|
||||
pub struct Error {
|
||||
gobject: StatusPage,
|
||||
}
|
||||
|
||||
impl Error {
|
||||
pub fn new(title: &str, description: &str) -> StatusPage {
|
||||
StatusPage::builder()
|
||||
.description(description)
|
||||
.icon_name("dialog-error-symbolic")
|
||||
.title(title)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue