diff options
author | MacDue <macdue@dueutil.tech> | 2022-11-27 14:12:34 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-27 20:35:22 +0100 |
commit | 0482190bc858011e0e8358c6e6d48bf3d81214d6 (patch) | |
tree | ab11a783de73e52bb5d50ca9c1a3cbcb79160776 | |
parent | 13beed172238ba34d439a7cd0e73141bdecd55ab (diff) | |
download | serenity-0482190bc858011e0e8358c6e6d48bf3d81214d6.zip |
PixelPaint: Make antialiasing the default for tools
Our AA painting works with opacity and generally has a nicer look
so lets make it the default.
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/EllipseTool.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/LineTool.cpp | 1 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/RectangleTool.cpp | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp b/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp index 04046caefa..db68b49923 100644 --- a/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp @@ -173,7 +173,7 @@ GUI::Widget* EllipseTool::get_properties_widget() m_fill_mode = FillMode::Fill; }; - aa_enable_checkbox.set_checked(false); + aa_enable_checkbox.set_checked(true); outline_mode_radio.set_checked(true); auto& aspect_container = m_properties_widget->add<GUI::Widget>(); diff --git a/Userland/Applications/PixelPaint/Tools/LineTool.cpp b/Userland/Applications/PixelPaint/Tools/LineTool.cpp index be1e50436a..a1d31367be 100644 --- a/Userland/Applications/PixelPaint/Tools/LineTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/LineTool.cpp @@ -169,6 +169,7 @@ GUI::Widget* LineTool::get_properties_widget() aa_enable_checkbox.on_checked = [&](bool checked) { m_antialias_enabled = checked; }; + aa_enable_checkbox.set_checked(true); } return m_properties_widget.ptr(); diff --git a/Userland/Applications/PixelPaint/Tools/RectangleTool.cpp b/Userland/Applications/PixelPaint/Tools/RectangleTool.cpp index 19f354969f..293b8ba856 100644 --- a/Userland/Applications/PixelPaint/Tools/RectangleTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/RectangleTool.cpp @@ -219,6 +219,7 @@ GUI::Widget* RectangleTool::get_properties_widget() aa_enable_checkbox.on_checked = [&](bool checked) { m_antialias_enabled = checked; }; + aa_enable_checkbox.set_checked(true); auto& aspect_container = mode_extras_container.add<GUI::Widget>(); aspect_container.set_layout<GUI::VerticalBoxLayout>(); |