aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/utils
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:28 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:28 +0530
commitc1dd2c588e9bad58a760a06076c6689776d7d43d (patch)
treed12a5464dec63c3c4d8c8935c95593cefead5fa6 /src/common/utils
parentUse ZELLIJ_SOCKET_DIR env variable and make user specific tmp dir (diff)
downloadsl0ppij-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.rs4
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