Appearance jammy (#78)

* chore(appearance): add interface i18n phrases

* wip: appearance page skeleton

* wip: more work on the skeletop

* wip: appearance

* wip: add icons and more widgets to appearance page

* wip: set the theme on entering and leaving the appearance panel

* cleanup & layout improvements

* wip(appearance): accent buttons

* fixes

fix default schemas, install methods, and appearance page

* use git deps

* clippy and cleanup

* update libcosmic & fix illustration names

* feat: cosmic-comp theme variables

* use git deps

* fix: add dep to control

* fix: install libwayland-dev

* udpate libcosmic

* wip: reset to default button

* refactor: color button improvements

* feat: import / export themes

* refactor: defaults for most color pickers and toggle for window hint

* refactor: use a context drawer for the container background color

* cleanup(appearance): box ThemeBuilder in Message

* cleanup(appearance): clippy

* fix(appearance): window hint toggle handling

* chore: more entries for the default schema

* fix: typo
This commit is contained in:
Ashley Wulber 2023-10-17 17:05:07 -04:00 committed by GitHub
parent 7c3f77c5d4
commit 0b74b0e586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
109 changed files with 2443 additions and 327 deletions

View file

@ -5,6 +5,7 @@ mod binder;
pub use binder::{AutoBind, Binder};
mod insert;
use cosmic::{Command, Element};
use downcast_rs::{impl_downcast, Downcast};
pub use insert::Insert;
@ -38,11 +39,21 @@ pub trait Page<Message: 'static>: Downcast {
None
}
#[must_use]
fn context_drawer(&self) -> Option<Element<'_, Message>> {
None
}
#[must_use]
#[allow(unused)]
fn load(&self, page: crate::Entity) -> Option<crate::Task<Message>> {
None
}
/// Emit a command when the page is left
fn on_leave(&mut self) -> Command<Message> {
Command::none()
}
}
impl_downcast!(Page<Message>);