Skip to content

Commit

Permalink
Color scheme edit
Browse files Browse the repository at this point in the history
  • Loading branch information
salihgerdan committed Mar 5, 2023
1 parent bd501cf commit 81ab7e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/gui/treemap_widget/imp/node_color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ static DIR: Lazy<[RGBA; 5]> = Lazy::new(|| {
(0..5)
.map(|depth| {
RGBA::new(
DIR_R * (1.1 * DIR_R / 1.0).powi(depth as i32),
DIR_G * (1.1 * DIR_G / 1.0).powi(depth as i32),
DIR_B * (1.1 * DIR_B / 1.0).powi(depth as i32),
DIR_R * (1.1 * DIR_R * 0.77).powi(depth as i32),
DIR_G * (1.1 * DIR_G * 0.88).powi(depth as i32),
DIR_B * (1.1 * DIR_B * 0.92).powi(depth as i32),
DIR_A,
)
})
Expand All @@ -33,9 +33,9 @@ static FILE: Lazy<[RGBA; 5]> = Lazy::new(|| {
(0..5)
.map(|depth| {
RGBA::new(
FILE_R * (1.1 * FILE_R / 1.0).powi(depth as i32),
FILE_G * (1.1 * FILE_G / 1.0).powi(depth as i32),
FILE_B * (1.1 * FILE_B / 1.0).powi(depth as i32),
FILE_R * (1.2 * FILE_R * 0.77).powi(depth as i32),
FILE_G * (1.2 * FILE_G * 0.88).powi(depth as i32),
FILE_B * (1.2 * FILE_B * 0.92).powi(depth as i32),
FILE_A,
)
})
Expand Down

0 comments on commit 81ab7e9

Please sign in to comment.