fix: remove with_alpha(false) from ColorDialog to bypass GTK4 popover sizing bug
This commit is contained in:
+1
-1
@@ -209,7 +209,7 @@ pub fn build_editor_page(
|
|||||||
label.set_xalign(0.0);
|
label.set_xalign(0.0);
|
||||||
|
|
||||||
let rgba = gtk::gdk::RGBA::parse(&hex).unwrap_or(gtk::gdk::RGBA::BLACK);
|
let rgba = gtk::gdk::RGBA::parse(&hex).unwrap_or(gtk::gdk::RGBA::BLACK);
|
||||||
let dialog = ColorDialog::builder().with_alpha(false).build();
|
let dialog = ColorDialog::builder().build();
|
||||||
let button = ColorDialogButton::new(Some(dialog));
|
let button = ColorDialogButton::new(Some(dialog));
|
||||||
button.set_rgba(&rgba);
|
button.set_rgba(&rgba);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user