QuickShow: Fill the window with white if the opened image has alpha.

This commit is contained in:
Andreas Kling 2019-03-24 03:07:00 +01:00
commit 7e54fdce99
Notes: sideshowbarker 2024-07-19 14:57:25 +09:00

View file

@ -58,6 +58,11 @@ int main(int argc, char** argv)
auto* widget = new GWidget;
window->set_main_widget(widget);
if (bitmap->has_alpha_channel()) {
widget->set_background_color(Color::White);
widget->set_fill_with_background_color(true);
}
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
auto* label = new GLabel(widget);