diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:28 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:28 +0530 |
| commit | c1dd2c588e9bad58a760a06076c6689776d7d43d (patch) | |
| tree | d12a5464dec63c3c4d8c8935c95593cefead5fa6 /src/common/utils | |
| parent | Use ZELLIJ_SOCKET_DIR env variable and make user specific tmp dir (diff) | |
| download | sl0ppij-c1dd2c588e9bad58a760a06076c6689776d7d43d.tar.gz sl0ppij-c1dd2c588e9bad58a760a06076c6689776d7d43d.tar.xz sl0ppij-c1dd2c588e9bad58a760a06076c6689776d7d43d.zip | |
Fix after rebase
Diffstat (limited to 'src/common/utils')
| -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 |
