mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
QuickShow: Fill the window with white if the opened image has alpha.
This commit is contained in:
parent
812dc1e9ea
commit
7e54fdce99
Notes:
sideshowbarker
2024-07-19 14:57:25 +09:00
Author: https://github.com/awesomekling
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