Skip to main content

load_theme_file

Function load_theme_file 

Source
pub fn load_theme_file(path_or_name: &str) -> Result<String>
Expand description

Load a theme file from one of these locations (searched in order):

  1. Exact path, if the argument resolves to an existing file
  2. Shared themes directory ($XDG_DATA_HOME/tca/themes/)

Returns the file contents as a string.