diff --git a/cosmic-theme/src/model/mode.rs b/cosmic-theme/src/model/mode.rs index f910ba26..f57c653c 100644 --- a/cosmic-theme/src/model/mode.rs +++ b/cosmic-theme/src/model/mode.rs @@ -30,13 +30,12 @@ impl ThemeMode { config.get::("is_dark") } - /// version of the theme - pub fn version() -> u64 { - 1 + pub const fn version() -> u64 { + Self::VERSION } /// Get the config for the theme mode pub fn config() -> Result { - Config::new(THEME_MODE_ID, Self::version()) + Config::new(THEME_MODE_ID, Self::VERSION) } }