Enable Settings::antialiasing by default

This commit is contained in:
Héctor Ramón Jiménez 2025-03-12 02:14:58 +01:00
parent fd1101bd5f
commit 68c4764494
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
11 changed files with 2 additions and 12 deletions

View file

@ -31,7 +31,7 @@ pub struct Settings {
/// Enabling it can produce a smoother result in some widgets, like the
/// `canvas` widget, at a performance cost.
///
/// By default, it is disabled.
/// By default, it is enabled.
pub antialiasing: bool,
}
@ -42,7 +42,7 @@ impl Default for Settings {
fonts: Vec::new(),
default_font: Font::default(),
default_text_size: Pixels(16.0),
antialiasing: false,
antialiasing: true,
}
}
}

View file

@ -11,7 +11,6 @@ pub fn main() -> iced::Result {
iced::application(Arc::default, Arc::update, Arc::view)
.subscription(Arc::subscription)
.theme(|_| Theme::Dark)
.antialiasing(true)
.run()
}

View file

@ -5,7 +5,6 @@ use iced::{Element, Theme};
pub fn main() -> iced::Result {
iced::application(Example::default, Example::update, Example::view)
.theme(|_| Theme::CatppuccinMocha)
.antialiasing(true)
.run()
}

View file

@ -14,7 +14,6 @@ pub fn main() -> iced::Result {
iced::application(Clock::default, Clock::update, Clock::view)
.subscription(Clock::subscription)
.theme(Clock::theme)
.antialiasing(true)
.run()
}

View file

@ -18,7 +18,6 @@ pub fn main() -> iced::Result {
)
.theme(ColorPalette::theme)
.default_font(Font::MONOSPACE)
.antialiasing(true)
.run()
}

View file

@ -17,7 +17,6 @@ pub fn main() -> iced::Result {
iced::application(GameOfLife::default, GameOfLife::update, GameOfLife::view)
.subscription(GameOfLife::subscription)
.theme(|_| Theme::Dark)
.antialiasing(true)
.centered()
.run()
}

View file

@ -16,7 +16,6 @@ pub fn main() -> iced::Result {
LoadingSpinners::update,
LoadingSpinners::view,
)
.antialiasing(true)
.run()
}

View file

@ -13,7 +13,6 @@ pub fn main() -> iced::Result {
tracing_subscriber::fmt::init();
iced::application(Multitouch::default, Multitouch::update, Multitouch::view)
.antialiasing(true)
.centered()
.run()
}

View file

@ -12,7 +12,6 @@ fn main() -> iced::Result {
SierpinskiEmulator::update,
SierpinskiEmulator::view,
)
.antialiasing(true)
.run()
}

View file

@ -12,7 +12,6 @@ pub fn main() -> iced::Result {
iced::application(TheMatrix::default, TheMatrix::update, TheMatrix::view)
.subscription(TheMatrix::subscription)
.antialiasing(true)
.run()
}

View file

@ -12,7 +12,6 @@ pub fn main() -> iced::Result {
VectorialText::view,
)
.theme(|_| Theme::Dark)
.antialiasing(true)
.run()
}