Skip to content

Commit 7cadc3b

Browse files
committed
Adjust led scale
1 parent e4d43d1 commit 7cadc3b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/simulator/views.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Simulator {
137137

138138
fn single_led(on: bool) -> impl egui::Widget {
139139
move |ui: &mut egui::Ui| {
140-
let desired_size = ui.spacing().interact_size.y * egui::vec2(1.0, 1.0);
140+
let desired_size = ui.spacing().interact_size.y * egui::vec2(1.2, 1.2);
141141
let (rect, response) = ui.allocate_exact_size(desired_size, egui::Sense::hover());
142142

143143
if ui.is_rect_visible(rect) {
@@ -161,12 +161,12 @@ impl Simulator {
161161

162162
let red_text = TextFormat {
163163
color: Color32::RED,
164-
font_id: FontId::monospace(20.0),
164+
font_id: FontId::monospace(24.0),
165165
..Default::default()
166166
};
167167
let transparent_text = TextFormat {
168168
color: Color32::TRANSPARENT,
169-
font_id: FontId::monospace(20.0),
169+
font_id: FontId::monospace(24.0),
170170
..Default::default()
171171
};
172172

0 commit comments

Comments
 (0)