From 9ecd689c2b708894b9cf88576aa8dfa5b5797a63 Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 29 Apr 2025 23:33:07 +0200 Subject: style: `theme` -> `appearance` --- src/config.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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, } 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, }) } -- cgit v1.2.3