diff options
Diffstat (limited to 'src/config/clean/theme/config.rs')
-rw-r--r-- | src/config/clean/theme/config.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config/clean/theme/config.rs b/src/config/clean/theme/config.rs index 9028490..5be88fc 100644 --- a/src/config/clean/theme/config.rs +++ b/src/config/clean/theme/config.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use crate::config::raw::theme::AppThemeRaw; -use crate::config::{parse_config_or_default, TomlConfigFile}; +use crate::config::{ConfigType, TomlConfigFile}; use crate::error::AppResult; use super::style::AppStyle; @@ -30,8 +30,10 @@ impl AppTheme { } impl TomlConfigFile for AppTheme { - fn get_config(file_name: &str) -> Self { - parse_config_or_default::<AppThemeRaw, AppTheme>(file_name) + type Raw = AppThemeRaw; + + fn get_type() -> ConfigType { + ConfigType::Theme } } |