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:
Andreas Kling 2022-08-23 21:09:30 +02:00
parent 28714deff6
commit 5ded6904d8
Notes: sideshowbarker 2024-07-17 07:54:37 +09:00

View file

@ -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);