diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-05-04 16:58:23 +0200 |
|---|---|---|
| committer | Aram Drevekenin <aram@poor.dev> | 2021-05-04 16:58:23 +0200 |
| commit | fbe8042695e0e6eb09a66a2685fd8038df6e3236 (patch) | |
| tree | 990d781e108deb76409cbe0735b416b649e53725 /src | |
| parent | chore(version): bump zellij-tile (diff) | |
| download | sl0ppij-fbe8042695e0e6eb09a66a2685fd8038df6e3236.tar.gz sl0ppij-fbe8042695e0e6eb09a66a2685fd8038df6e3236.tar.xz sl0ppij-fbe8042695e0e6eb09a66a2685fd8038df6e3236.zip | |
HOTFIX: allow cargo publish
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/utils/shared.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/utils/shared.rs b/src/common/utils/shared.rs index 7b4cbcb5..ace5674b 100644 --- a/src/common/utils/shared.rs +++ b/src/common/utils/shared.rs @@ -43,7 +43,7 @@ pub mod colors { pub const BLACK: u8 = 16; } -pub fn hex_to_rgb(hex: &str) -> (u8, u8, u8) { +pub fn _hex_to_rgb(hex: &str) -> (u8, u8, u8) { let rgb = Rgb::from_hex_str(hex) .expect("The passed argument must be a valid hex color") .as_tuple(); @@ -69,7 +69,7 @@ pub fn default_palette() -> Palette { } // Dark magic -pub fn detect_theme(bg: PaletteColor) -> Theme { +pub fn _detect_theme(bg: PaletteColor) -> Theme { match bg { PaletteColor::Rgb((r, g, b)) => { // HSP, P stands for perceived brightness |
