mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Add ability to hide button backgrounds (#2621)
* Add Spacing::combo_width * Put ComboBox arrow closer to the text * Tweak faint_bg_color * Make it possible to have buttons without background …while still having background for sliders, checkboxes, etc * Rename mandatory_bg_fill -> bg_fill * tweak grid stripe color (again) * Make the animated part of the ProgressBar more visible * Add line in changelog * Add another line in changelog * Menu fix: use the `open` widget style for open menus * Adjust sizes on menu buttons and regular buttons to make sure they match * Update comment Co-authored-by: Andreas Reich <andreas@rerun.io> * optional_bg_fill -> weak_bg_fill Co-authored-by: Andreas Reich <andreas@rerun.io>
This commit is contained in:
@@ -76,7 +76,7 @@ impl<'a> Widget for DatePickerButton<'a> {
|
||||
}
|
||||
let mut button = Button::new(text);
|
||||
if button_state.picker_visible {
|
||||
button = button.fill(visuals.bg_fill).stroke(visuals.bg_stroke);
|
||||
button = button.fill(visuals.weak_bg_fill).stroke(visuals.bg_stroke);
|
||||
}
|
||||
let mut button_response = ui.add(button);
|
||||
if button_response.clicked() {
|
||||
|
||||
Reference in New Issue
Block a user