From 0482190bc858011e0e8358c6e6d48bf3d81214d6 Mon Sep 17 00:00:00 2001 From: MacDue Date: Sun, 27 Nov 2022 14:12:34 +0000 Subject: [PATCH] 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. --- Userland/Applications/PixelPaint/Tools/EllipseTool.cpp | 2 +- Userland/Applications/PixelPaint/Tools/LineTool.cpp | 1 + Userland/Applications/PixelPaint/Tools/RectangleTool.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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(); 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(); aspect_container.set_layout();