summaryrefslogtreecommitdiffstats
path: root/examples/gradient
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-06-20 01:23:01 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-20 01:23:01 +0200
commit714d4503154a6224c26f2eed6e399c73d57b4bf8 (patch)
tree9456eb2d40f2761c29dfa51f370efe11dc22f5e5 /examples/gradient
parent19db068bbbebcda1756720525da247f35bd3a5e0 (diff)
parentc5f4bebeda8d6ef10efade7933a5ee58f06b62d1 (diff)
downloadiced-714d4503154a6224c26f2eed6e399c73d57b4bf8.tar.gz
iced-714d4503154a6224c26f2eed6e399c73d57b4bf8.tar.bz2
iced-714d4503154a6224c26f2eed6e399c73d57b4bf8.zip
Merge pull request #2469 from iced-rs/unify-shell-runtimes
`Daemon` API and Shell Runtime Unification
Diffstat (limited to 'examples/gradient')
-rw-r--r--examples/gradient/src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/gradient/src/main.rs b/examples/gradient/src/main.rs
index 2b906c32..e5b19443 100644
--- a/examples/gradient/src/main.rs
+++ b/examples/gradient/src/main.rs
@@ -1,5 +1,5 @@
+use iced::application;
use iced::gradient;
-use iced::program;
use iced::widget::{
checkbox, column, container, horizontal_space, row, slider, text,
};
@@ -8,7 +8,7 @@ use iced::{Alignment, Color, Element, Length, Radians, Theme};
pub fn main() -> iced::Result {
tracing_subscriber::fmt::init();
- iced::program("Gradient - Iced", Gradient::update, Gradient::view)
+ iced::application("Gradient - Iced", Gradient::update, Gradient::view)
.style(Gradient::style)
.transparent(true)
.run()
@@ -95,11 +95,11 @@ impl Gradient {
.into()
}
- fn style(&self, theme: &Theme) -> program::Appearance {
- use program::DefaultStyle;
+ fn style(&self, theme: &Theme) -> application::Appearance {
+ use application::DefaultStyle;
if self.transparent {
- program::Appearance {
+ application::Appearance {
background_color: Color::TRANSPARENT,
text_color: theme.palette().text,
}