1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Clear saved theme preference.
use fs;
use io;
use PathBuf;
use default_config_path;
/// Clears the saved theme preference.
///
/// Removes the theme config file if it exists.
///
/// # Arguments
///
/// * `config_path` - Optional custom path. If None, uses the default config location.
///
/// # Returns
///
/// `Ok(())` on success, or an error if the file couldn't be removed.
///
/// # Errors
///
/// Returns an error if:
/// - The config directory cannot be determined (when using default path)
/// - The file exists but cannot be removed