feat: CosmicTk::header_size density config

This commit is contained in:
Michael Aaron Murphy 2024-05-27 21:49:49 +02:00 committed by Jeremy Soller
parent f0bfa87a36
commit 6720b8277c
8 changed files with 118 additions and 79 deletions

View file

@ -73,9 +73,6 @@ pub struct Core {
/// Configured theme mode
pub(super) system_theme_mode: ThemeMode,
/// Libcosmic toolkit configuration.
pub(super) toolkit_config: CosmicTk,
pub(super) portal_is_dark: Option<bool>,
pub(super) portal_accent: Option<Srgba>,
@ -123,16 +120,6 @@ impl Default for Core {
})
})
.unwrap_or_default(),
toolkit_config: CosmicTk::config()
.map(|c| {
CosmicTk::get_entry(&c).unwrap_or_else(|(errors, mode)| {
for why in errors {
tracing::error!(?why, "CosmicTk config entry error");
}
mode
})
})
.unwrap_or_default(),
window: Window {
context_title: String::new(),
header_title: String::new(),