summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-29 23:33:07 +0200
committerpml68 <contact@pml68.dev>2025-04-29 23:35:04 +0200
commit9ecd689c2b708894b9cf88576aa8dfa5b5797a63 (patch)
tree38fbd5c78c90487e5b641f635d01c4a614ddfd44
parentfix(material_theme): missing `abs` when checking the alpha values in `mix` (diff)
downloadiced-builder-9ecd689c2b708894b9cf88576aa8dfa5b5797a63.tar.gz
style: `theme` -> `appearance`
-rw-r--r--src/config.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs
index 7f6f8ce..369a505 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -14,17 +14,17 @@ use crate::{Error, environment};
#[derive(Debug, Clone, Default)]
pub struct Config {
- theme: Appearance,
+ appearance: Appearance,
last_project: Option<PathBuf>,
}
impl Config {
pub fn selected_theme(&self) -> Theme {
- self.theme.selected.clone()
+ self.appearance.selected.clone()
}
pub fn themes(&self) -> Arc<[Theme]> {
- self.theme.all.clone()
+ self.appearance.all.clone()
}
pub fn last_project(&self) -> Option<&Path> {
@@ -77,10 +77,11 @@ impl Config {
last_project,
} = toml::from_str(content.as_ref())?;
- let theme = Self::load_appearance(&theme).await.unwrap_or_default();
+ let appearance =
+ Self::load_appearance(&theme).await.unwrap_or_default();
Ok(Self {
- theme,
+ appearance,
last_project,
})
}