mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:07:35 +00:00
PixelPaint: Start with a smaller new image (and smaller window)
We started this app with an overwhelmingly huge window. Shrink it.
This commit is contained in:
parent
4c186d1f44
commit
c7244e37eb
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
window->set_title("PixelPaint");
|
window->set_title("PixelPaint");
|
||||||
window->resize(950, 570);
|
window->resize(800, 480);
|
||||||
window->set_icon(app_icon.bitmap_for_size(16));
|
window->set_icon(app_icon.bitmap_for_size(16));
|
||||||
|
|
||||||
auto& main_widget = window->set_main_widget<GUI::Widget>();
|
auto& main_widget = window->set_main_widget<GUI::Widget>();
|
||||||
|
@ -395,9 +395,9 @@ int main(int argc, char** argv)
|
||||||
if (Core::File::exists(image_file_real_path)) {
|
if (Core::File::exists(image_file_real_path)) {
|
||||||
open_image_file(image_file_real_path);
|
open_image_file(image_file_real_path);
|
||||||
} else {
|
} else {
|
||||||
auto image = PixelPaint::Image::create_with_size({ 640, 480 });
|
auto image = PixelPaint::Image::create_with_size({ 480, 360 });
|
||||||
|
|
||||||
auto bg_layer = PixelPaint::Layer::create_with_size(*image, { 640, 480 }, "Background");
|
auto bg_layer = PixelPaint::Layer::create_with_size(*image, image->size(), "Background");
|
||||||
image->add_layer(*bg_layer);
|
image->add_layer(*bg_layer);
|
||||||
bg_layer->bitmap().fill(Color::White);
|
bg_layer->bitmap().fill(Color::White);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue