mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
servoshell: Update all egui dependencies and group them for dependabot (#32683)
This updates egui, making the necessary changes to maintain behavior. In addition, it groups dependencies so that they are updated in a single PR by dependabot, avoiding manual work.
This commit is contained in:
parent
650af7db92
commit
e14e079fff
4 changed files with 37 additions and 28 deletions
|
@ -8,7 +8,7 @@ use std::sync::Arc;
|
|||
use std::time::Instant;
|
||||
|
||||
use egui::{
|
||||
pos2, CentralPanel, Color32, Frame, Key, Modifiers, PaintCallback, Pos2, Spinner,
|
||||
pos2, CentralPanel, Color32, Frame, Key, Label, Modifiers, PaintCallback, Pos2, Spinner,
|
||||
TopBottomPanel, Vec2,
|
||||
};
|
||||
use egui_glow::CallbackFn;
|
||||
|
@ -245,18 +245,6 @@ impl Minibrowser {
|
|||
};
|
||||
let mut embedder_events = vec![];
|
||||
|
||||
if let Some(status_text) = &self.status_text {
|
||||
let position = Some(pos2(0.0, ctx.available_rect().max.y));
|
||||
egui::containers::popup::show_tooltip_at(
|
||||
ctx,
|
||||
"tooltip_for_status_text".into(),
|
||||
position,
|
||||
|ui| {
|
||||
ui.label(status_text.clone());
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
CentralPanel::default()
|
||||
.frame(Frame::none())
|
||||
.show(ctx, |ui| {
|
||||
|
@ -282,6 +270,17 @@ impl Minibrowser {
|
|||
let Some(servo_fbo) = servo_framebuffer_id else {
|
||||
return;
|
||||
};
|
||||
|
||||
if let Some(status_text) = &self.status_text {
|
||||
egui::containers::popup::show_tooltip_at(
|
||||
ctx,
|
||||
ui.layer_id(),
|
||||
"tooltip layer".into(),
|
||||
pos2(0.0, ctx.available_rect().max.y),
|
||||
|ui| ui.add(Label::new(status_text.clone()).extend()),
|
||||
);
|
||||
}
|
||||
|
||||
ui.painter().add(PaintCallback {
|
||||
rect,
|
||||
callback: Arc::new(CallbackFn::new(move |info, painter| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue