mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +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
3 changed files with 3 additions and 1 deletions
|
@ -173,7 +173,7 @@ GUI::Widget* EllipseTool::get_properties_widget()
|
||||||
m_fill_mode = FillMode::Fill;
|
m_fill_mode = FillMode::Fill;
|
||||||
};
|
};
|
||||||
|
|
||||||
aa_enable_checkbox.set_checked(false);
|
aa_enable_checkbox.set_checked(true);
|
||||||
outline_mode_radio.set_checked(true);
|
outline_mode_radio.set_checked(true);
|
||||||
|
|
||||||
auto& aspect_container = m_properties_widget->add<GUI::Widget>();
|
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) {
|
aa_enable_checkbox.on_checked = [&](bool checked) {
|
||||||
m_antialias_enabled = checked;
|
m_antialias_enabled = checked;
|
||||||
};
|
};
|
||||||
|
aa_enable_checkbox.set_checked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_properties_widget.ptr();
|
return m_properties_widget.ptr();
|
||||||
|
|
|
@ -219,6 +219,7 @@ GUI::Widget* RectangleTool::get_properties_widget()
|
||||||
aa_enable_checkbox.on_checked = [&](bool checked) {
|
aa_enable_checkbox.on_checked = [&](bool checked) {
|
||||||
m_antialias_enabled = checked;
|
m_antialias_enabled = checked;
|
||||||
};
|
};
|
||||||
|
aa_enable_checkbox.set_checked(true);
|
||||||
|
|
||||||
auto& aspect_container = mode_extras_container.add<GUI::Widget>();
|
auto& aspect_container = mode_extras_container.add<GUI::Widget>();
|
||||||
aspect_container.set_layout<GUI::VerticalBoxLayout>();
|
aspect_container.set_layout<GUI::VerticalBoxLayout>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue