Hello,
I’m trying to draw my own widget, that means implementing snapshot() on it. When drawing on the snapshot, append_fill() works as expected. I also managed to draw symbolic icons, however they are completely not anti-aliased and therefore very ugly. I’m not sure what I’m doing wrong?
let icon_paintable = gtk::IconTheme::default().lookup_icon(
"view-reveal-symbolic",
&[],
16,
16,
gtk::TextDirection::Ltr,
gtk::IconLookupFlags::FORCE_SYMBOLIC,
);
icon_paintable.snapshot_symbolic(snapshot, 16.0, 16.0, &[gdk::RGBA::BLACK]);
Thank you!
Emmanuel