Skip to content

Commit

Permalink
fix some pad label coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Dec 26, 2024
1 parent 2d4e9bc commit a14fd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pad/editor/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ pub fn gen_code_view(id: &str, code: &str) -> View {
{
let j = (i + first.unwrap().to_ascii_lowercase() as usize) % 3;
let mul = 1.0 - (i / 3 % 3) as f32 * 0.333;
let t = mul * (c.saturating_sub(b'a') as f32 / 26.0);
let t = mul * (c.saturating_sub(b'a') as f32 % 26.0 / 26.0);
let target = MIN + (MAX - MIN) * t;
components[j] = components[j].max(target);
}
Expand Down

0 comments on commit a14fd01

Please sign in to comment.