mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:07:45 +00:00
QuickShow: Fill the window with white if the opened image has alpha.
This commit is contained in:
parent
812dc1e9ea
commit
7e54fdce99
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue