@@ -214,6 +214,8 @@ pub struct Visuals {
214
214
pub window_corner_radius : f32 ,
215
215
pub window_shadow : Shadow ,
216
216
217
+ pub popup_shadow : Shadow ,
218
+
217
219
pub resize_corner_size : f32 ,
218
220
219
221
pub text_cursor_width : f32 ,
@@ -402,6 +404,7 @@ impl Visuals {
402
404
code_bg_color : Color32 :: from_gray ( 64 ) ,
403
405
window_corner_radius : 6.0 ,
404
406
window_shadow : Shadow :: big_dark ( ) ,
407
+ popup_shadow : Shadow :: small_dark ( ) ,
405
408
resize_corner_size : 12.0 ,
406
409
text_cursor_width : 2.0 ,
407
410
text_cursor_preview : false ,
@@ -422,6 +425,7 @@ impl Visuals {
422
425
extreme_bg_color : Color32 :: from_gray ( 250 ) ,
423
426
code_bg_color : Color32 :: from_gray ( 200 ) ,
424
427
window_shadow : Shadow :: big_light ( ) ,
428
+ popup_shadow : Shadow :: small_light ( ) ,
425
429
..Self :: dark ( )
426
430
}
427
431
}
@@ -824,6 +828,7 @@ impl Visuals {
824
828
code_bg_color,
825
829
window_corner_radius,
826
830
window_shadow,
831
+ popup_shadow,
827
832
resize_corner_size,
828
833
text_cursor_width,
829
834
text_cursor_preview,
@@ -848,6 +853,7 @@ impl Visuals {
848
853
stroke_ui ( ui, & mut widgets. noninteractive . bg_stroke , "Outline" ) ;
849
854
ui. add ( Slider :: new ( window_corner_radius, 0.0 ..=20.0 ) . text ( "Rounding" ) ) ;
850
855
shadow_ui ( ui, window_shadow, "Shadow" ) ;
856
+ shadow_ui ( ui, popup_shadow, "Shadow (small menus and popups)" ) ;
851
857
} ) ;
852
858
853
859
ui. collapsing ( "Widgets" , |ui| widgets. ui ( ui) ) ;
0 commit comments