Skip to content

Commit

Permalink
Use multiply_opacity in WidgetGallery
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed May 30, 2024
1 parent 8a9d93c commit c793aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_demo_lib/src/demo/widget_gallery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl super::View for WidgetGallery {
fn ui(&mut self, ui: &mut egui::Ui) {
ui.add_enabled_ui(self.enabled, |ui| {
ui.set_visible(self.visible);
ui.set_opacity(self.opacity);
ui.multiply_opacity(self.opacity);

egui::Grid::new("my_grid")
.num_columns(2)
Expand Down

0 comments on commit c793aae

Please sign in to comment.