Revert layer elevation

This commit is contained in:
hodasemi 2024-05-17 14:29:22 +02:00
parent 4c5f1f4ce0
commit bd9cca5f11
2 changed files with 2 additions and 2 deletions

View file

@ -494,7 +494,7 @@ impl Gridable for Button {
self.framable.set_ui_layer(layer); self.framable.set_ui_layer(layer);
self.iconizable.set_ui_layer(layer)?; self.iconizable.set_ui_layer(layer)?;
self.textable.set_ui_layer(layer)?; self.textable.set_ui_layer(layer)?;
self.info_icon.set_ui_layer(layer + 1)?; self.info_icon.set_ui_layer(layer)?;
self.normal.set_ui_layer(layer); self.normal.set_ui_layer(layer);
self.selected.set_ui_layer(layer); self.selected.set_ui_layer(layer);

View file

@ -308,7 +308,7 @@ impl Gridable for Icon {
self.framable.set_ui_layer(layer); self.framable.set_ui_layer(layer);
self.iconizable_wrapper.set_ui_layer(layer)?; self.iconizable_wrapper.set_ui_layer(layer)?;
self.textable_wrapper.set_ui_layer(layer)?; self.textable_wrapper.set_ui_layer(layer)?;
self.info_icon.set_ui_layer(layer + 1)?; self.info_icon.set_ui_layer(layer)?;
if let Some(background) = self.background.read().unwrap().as_ref() { if let Some(background) = self.background.read().unwrap().as_ref() {
background.set_ui_layer(layer); background.set_ui_layer(layer);