diff options
author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2023-03-06 23:36:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 23:36:12 +0900 |
commit | 63bfe9c5e495481da97c7c566a727216de75c8a7 (patch) | |
tree | 6eb82a89d47d41cd239b4699d16d38ad5a878a49 /zellij-utils/src/consts.rs | |
parent | a263c34925bdcccff9341e9c634105edea0e67ce (diff) |
feat: add self-provided themes (#2224)
* chore: move themes to default assets
* feat: add self-provided themes
* fix: embed themes into binary
Diffstat (limited to 'zellij-utils/src/consts.rs')
-rw-r--r-- | zellij-utils/src/consts.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/consts.rs b/zellij-utils/src/consts.rs index 5709db891..7599a5ae0 100644 --- a/zellij-utils/src/consts.rs +++ b/zellij-utils/src/consts.rs @@ -1,6 +1,7 @@ //! Zellij program-wide constants. use directories_next::ProjectDirs; +use include_dir::{include_dir, Dir}; use lazy_static::lazy_static; use once_cell::sync::OnceCell; use std::path::PathBuf; @@ -15,6 +16,7 @@ pub static DEBUG_MODE: OnceCell<bool> = OnceCell::new(); pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "/etc/zellij"; pub const SYSTEM_DEFAULT_DATA_DIR_PREFIX: &str = system_default_data_dir(); +pub static ZELLIJ_THEMES_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/assets/themes"); const fn system_default_data_dir() -> &'static str { if let Some(data_dir) = std::option_env!("PREFIX") { |