How can I disable/remove the shadow of hover text #4083
Answered
by
YgorSouza
wangxiaochuTHU
asked this question in
Q&A
-
I used let frame : Frame = Frame::none().shadow(Shadow::NONE);
egui::CentralPanel::default().frame(frame)
.show(ctx, |ui| {
/* painting several widgets here*/
})
.response
.on_hover_text_at_pointer( RichText::new("32872").background_color(Color32::TRANSPARENT) ) |
Beta Was this translation helpful? Give feedback.
Answered by
YgorSouza
Feb 22, 2024
Replies: 1 comment
-
The hover text shadow is controlled by Visuals::popup_shadow. It also controls the shadow on context menus and combo box drawers. But the window shadow is a separate field. ctx.style_mut(|style| style.visuals.popup_shadow = Shadow::NONE); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wangxiaochuTHU
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The hover text shadow is controlled by Visuals::popup_shadow. It also controls the shadow on context menus and combo box drawers. But the window shadow is a separate field.