ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Default config path function.

use std::path::PathBuf;

use super::default_config_dir::default_config_dir;

/// Gets the default path for the theme config file.
///
/// # Returns
///
/// The full path to the theme.json config file, or `None` if the config
/// directory cannot be determined.
#[must_use]
pub fn default_config_path() -> Option<PathBuf> {
    default_config_dir().map(|p| p.join("theme.json"))
}