add a basic default dark theme

This commit is contained in:
Trevor Bentley
2023-01-15 17:50:33 +01:00
parent 15fe76b0ba
commit 88e76d788c
39 changed files with 1505 additions and 8 deletions
+9
View File
@@ -127,6 +127,15 @@ pub struct GitsySettingsTemplates {
pub error: Option<String>,
}
impl GitsySettingsTemplates {
pub fn template_dir(&self) -> String {
self.path.clone().canonicalize()
.expect(&format!("ERROR: unable to canonicalize template path: {}", self.path.display()))
.to_str().expect(&format!("ERROR: unable to parse template path: {}", self.path.display()))
.to_string()
}
}
#[derive(Deserialize, Debug)]
pub struct GitsySettingsOutputs {
pub path: PathBuf,