ratkit 0.2.14

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
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"))
}