Enable Settings::antialiasing by default
This commit is contained in:
parent
fd1101bd5f
commit
68c4764494
11 changed files with 2 additions and 12 deletions
|
|
@ -31,7 +31,7 @@ pub struct Settings {
|
||||||
/// Enabling it can produce a smoother result in some widgets, like the
|
/// Enabling it can produce a smoother result in some widgets, like the
|
||||||
/// `canvas` widget, at a performance cost.
|
/// `canvas` widget, at a performance cost.
|
||||||
///
|
///
|
||||||
/// By default, it is disabled.
|
/// By default, it is enabled.
|
||||||
pub antialiasing: bool,
|
pub antialiasing: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ impl Default for Settings {
|
||||||
fonts: Vec::new(),
|
fonts: Vec::new(),
|
||||||
default_font: Font::default(),
|
default_font: Font::default(),
|
||||||
default_text_size: Pixels(16.0),
|
default_text_size: Pixels(16.0),
|
||||||
antialiasing: false,
|
antialiasing: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ pub fn main() -> iced::Result {
|
||||||
iced::application(Arc::default, Arc::update, Arc::view)
|
iced::application(Arc::default, Arc::update, Arc::view)
|
||||||
.subscription(Arc::subscription)
|
.subscription(Arc::subscription)
|
||||||
.theme(|_| Theme::Dark)
|
.theme(|_| Theme::Dark)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ use iced::{Element, Theme};
|
||||||
pub fn main() -> iced::Result {
|
pub fn main() -> iced::Result {
|
||||||
iced::application(Example::default, Example::update, Example::view)
|
iced::application(Example::default, Example::update, Example::view)
|
||||||
.theme(|_| Theme::CatppuccinMocha)
|
.theme(|_| Theme::CatppuccinMocha)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ pub fn main() -> iced::Result {
|
||||||
iced::application(Clock::default, Clock::update, Clock::view)
|
iced::application(Clock::default, Clock::update, Clock::view)
|
||||||
.subscription(Clock::subscription)
|
.subscription(Clock::subscription)
|
||||||
.theme(Clock::theme)
|
.theme(Clock::theme)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ pub fn main() -> iced::Result {
|
||||||
)
|
)
|
||||||
.theme(ColorPalette::theme)
|
.theme(ColorPalette::theme)
|
||||||
.default_font(Font::MONOSPACE)
|
.default_font(Font::MONOSPACE)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ pub fn main() -> iced::Result {
|
||||||
iced::application(GameOfLife::default, GameOfLife::update, GameOfLife::view)
|
iced::application(GameOfLife::default, GameOfLife::update, GameOfLife::view)
|
||||||
.subscription(GameOfLife::subscription)
|
.subscription(GameOfLife::subscription)
|
||||||
.theme(|_| Theme::Dark)
|
.theme(|_| Theme::Dark)
|
||||||
.antialiasing(true)
|
|
||||||
.centered()
|
.centered()
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ pub fn main() -> iced::Result {
|
||||||
LoadingSpinners::update,
|
LoadingSpinners::update,
|
||||||
LoadingSpinners::view,
|
LoadingSpinners::view,
|
||||||
)
|
)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ pub fn main() -> iced::Result {
|
||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
iced::application(Multitouch::default, Multitouch::update, Multitouch::view)
|
iced::application(Multitouch::default, Multitouch::update, Multitouch::view)
|
||||||
.antialiasing(true)
|
|
||||||
.centered()
|
.centered()
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ fn main() -> iced::Result {
|
||||||
SierpinskiEmulator::update,
|
SierpinskiEmulator::update,
|
||||||
SierpinskiEmulator::view,
|
SierpinskiEmulator::view,
|
||||||
)
|
)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ pub fn main() -> iced::Result {
|
||||||
|
|
||||||
iced::application(TheMatrix::default, TheMatrix::update, TheMatrix::view)
|
iced::application(TheMatrix::default, TheMatrix::update, TheMatrix::view)
|
||||||
.subscription(TheMatrix::subscription)
|
.subscription(TheMatrix::subscription)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ pub fn main() -> iced::Result {
|
||||||
VectorialText::view,
|
VectorialText::view,
|
||||||
)
|
)
|
||||||
.theme(|_| Theme::Dark)
|
.theme(|_| Theme::Dark)
|
||||||
.antialiasing(true)
|
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue