Pi66

walrs
pywal but if its Fast-Minimal-Simple
git clone https://git.pi66.xyz/walrs

← back to log

1.0.4

author: pixel
date: 2025-04-08 22:22
hash: a0bc2f1cb04b98dc5ab64d721ae992f8b85a236e

Diffstat:

M

Cargo.lock
2 ++++++++-------

M

src/get_colors.rs
3 +++++++++++++++-------

M

src/main.rs
4 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff --git a/Cargo.lock b/Cargo.lock
index 75dfd39..daef4d4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1061,7 +1061,7 @@ checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"

 [[package]]
 name = "walrs"
-version = "1.0.3"
+version = "1.0.4"
 dependencies = [
  "clap",
  "color-thief",
diff --git a/src/get_colors.rs b/src/get_colors.rs
index fbe229f..8d4c01d 100644
--- a/src/get_colors.rs
+++ b/src/get_colors.rs
@@ -101,7 +101,8 @@ pub fn get_colors(image_path: &str,send:bool,brightness: Option<i8>,saturation:
     }

     let (mut r,mut g,mut b) =  collect_rgb[20];
-    (r,g,b) = adjust_rgb(r,g,b,70,10);
+    (r,g,b) = adjust_rgb(r,g,b,40,10);
+    
     (r,g,b) = to_gray(r, g, b, Some(2));
     done[7] =  (r,g,b);
     done[15] = (r,g,b);
diff --git a/src/main.rs b/src/main.rs
index e1fa3d6..6811192 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,11 +25,11 @@ struct Arg {
     #[arg(short = 'g')]
     generate: Option<String>,

-    /// reload Templates from cache file without set the wallpaper
+    /// reload Templates from cache file and set the wallpaper
     #[arg(short = 'r', action = ArgAction::SetTrue)]
     reload_nowal: bool,

-    /// reload Templates from cache file and set the wallpaper
+    /// reload Templates from cache file without set the wallpaper
     #[arg(short = 'R', action = ArgAction::SetTrue)]
     reload: bool,