Skip to content

Commit 63fa717

Browse files
committed
Don't expand widgets on hover
1 parent f53a9c9 commit 63fa717

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/egui/src/style.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,15 +1568,15 @@ impl Widgets {
15681568
bg_stroke: Stroke::new(1.0, Color32::from_gray(150)), // e.g. hover over window edge or button
15691569
fg_stroke: Stroke::new(1.5, Color32::from_gray(240)),
15701570
corner_radius: CornerRadius::same(3),
1571-
expansion: 1.0,
1571+
expansion: 0.0,
15721572
},
15731573
active: WidgetVisuals {
15741574
weak_bg_fill: Color32::from_gray(55),
15751575
bg_fill: Color32::from_gray(55),
15761576
bg_stroke: Stroke::new(1.0, Color32::WHITE),
15771577
fg_stroke: Stroke::new(2.0, Color32::WHITE),
15781578
corner_radius: CornerRadius::same(2),
1579-
expansion: 1.0,
1579+
expansion: 0.0,
15801580
},
15811581
open: WidgetVisuals {
15821582
weak_bg_fill: Color32::from_gray(45),
@@ -1613,15 +1613,15 @@ impl Widgets {
16131613
bg_stroke: Stroke::new(1.0, Color32::from_gray(105)), // e.g. hover over window edge or button
16141614
fg_stroke: Stroke::new(1.5, Color32::BLACK),
16151615
corner_radius: CornerRadius::same(3),
1616-
expansion: 1.0,
1616+
expansion: 0.0,
16171617
},
16181618
active: WidgetVisuals {
16191619
weak_bg_fill: Color32::from_gray(165),
16201620
bg_fill: Color32::from_gray(165),
16211621
bg_stroke: Stroke::new(1.0, Color32::BLACK),
16221622
fg_stroke: Stroke::new(2.0, Color32::BLACK),
16231623
corner_radius: CornerRadius::same(2),
1624-
expansion: 1.0,
1624+
expansion: 0.0,
16251625
},
16261626
open: WidgetVisuals {
16271627
weak_bg_fill: Color32::from_gray(220),

0 commit comments

Comments
 (0)