mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
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.
This commit is contained in:
parent
13beed1722
commit
0482190bc8
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/0482190bc8 Pull-request: https://github.com/SerenityOS/serenity/pull/16226
|
@ -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>();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue