Skip to content

Commit 6a01d9c

Browse files
committed
Style led meter using css
1 parent 5f349fb commit 6a01d9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

data/resources/ui/style.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
}
66

77
.vumeter {
8-
filter: invert(0.2);
8+
border: 1px solid black;
9+
border-radius: 5px;
10+
background-color: #303030;
11+
filter: invert(.1);
912
}

src/ui/peakmeter.rs

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ mod imp {
5353
let rounded_rect = gsk::RoundedRect::from_rect(bounding_box, 5.0);
5454

5555
snapshot.push_rounded_clip(&rounded_rect);
56-
snapshot.append_color(&RGBA::new(1.0, 1.0, 1.0, 0.1), &bounding_box);
5756

5857
let discrete_level = (level * NUM_BLOCKS as f32).floor() as u32;
5958
let mut block_width = width / NUM_BLOCKS;

0 commit comments

Comments
 (0)