Changing color picker popup size #5806
Answered
by
nnmarcoo
NotQuiteApex
asked this question in
Q&A
-
|
Is it possible to change the color picker popup size? Right now it overflows past the window border, making it impossible to access certain aspects. |
Beta Was this translation helpful? Give feedback.
Answered by
nnmarcoo
Mar 16, 2025
Replies: 1 comment
-
|
You can style the size of the popup, but I don't think you can directly configure the color picker, so it doesn't look quite right. I suggest making a custom widget/popup. if button_response.clicked() {
ui.memory_mut(|mem| mem.toggle_popup(egui::Id::new("color_picker")));
}
egui::popup::popup_below_widget(
ui,
egui::Id::new("color_picker"),
&button_response,
egui::popup::PopupCloseBehavior::CloseOnClickOutside,
|ui| {
ui.set_max_size(vec2(0., 0.));
egui::color_picker::color_picker_color32(ui, &mut self.brush_color, Alpha::Opaque);
}
); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NotQuiteApex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You can style the size of the popup, but I don't think you can directly configure the color picker, so it doesn't look quite right. I suggest making a custom widget/popup.