mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
PixelPaint: Make the default empty image transparent by default
It was previously white by default, but let's change that. :^)
This commit is contained in:
parent
28714deff6
commit
5ded6904d8
Notes:
sideshowbarker
2024-07-17 07:54:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5ded6904d8
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ void MainWidget::create_default_image()
|
|||
|
||||
auto bg_layer = Layer::try_create_with_size(*image, image->size(), "Background").release_value_but_fixme_should_propagate_errors();
|
||||
image->add_layer(*bg_layer);
|
||||
bg_layer->content_bitmap().fill(Color::White);
|
||||
bg_layer->content_bitmap().fill(Color::Transparent);
|
||||
|
||||
m_layer_list_widget->set_image(image);
|
||||
|
||||
|
|
Loading…
Reference in a new issue