Skip to content

Commit 341c9a3

Browse files
committed
Introduce daemon API and unify shell runtimes
1 parent 368b15f commit 341c9a3

54 files changed

Lines changed: 1301 additions & 2626 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ iced_core.workspace = true
6666
iced_futures.workspace = true
6767
iced_renderer.workspace = true
6868
iced_widget.workspace = true
69-
iced_winit.features = ["application"]
69+
iced_winit.features = ["program"]
7070
iced_winit.workspace = true
7171

7272
iced_highlighter.workspace = true

examples/arc/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use iced::widget::canvas::{
77
use iced::{Element, Length, Point, Rectangle, Renderer, Subscription, Theme};
88

99
pub fn main() -> iced::Result {
10-
iced::program("Arc - Iced", Arc::update, Arc::view)
10+
iced::application("Arc - Iced", Arc::update, Arc::view)
1111
.subscription(Arc::subscription)
1212
.theme(|_| Theme::Dark)
1313
.antialiasing(true)

examples/bezier_tool/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use iced::widget::{button, container, horizontal_space, hover};
44
use iced::{Element, Length, Theme};
55

66
pub fn main() -> iced::Result {
7-
iced::program("Bezier Tool - Iced", Example::update, Example::view)
7+
iced::application("Bezier Tool - Iced", Example::update, Example::view)
88
.theme(|_| Theme::CatppuccinMocha)
99
.antialiasing(true)
1010
.run()

examples/checkbox/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use iced::{Element, Font};
44
const ICON_FONT: Font = Font::with_name("icons");
55

66
pub fn main() -> iced::Result {
7-
iced::program("Checkbox - Iced", Example::update, Example::view)
7+
iced::application("Checkbox - Iced", Example::update, Example::view)
88
.font(include_bytes!("../fonts/icons.ttf").as_slice())
99
.run()
1010
}

examples/clock/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use iced::{
1111
pub fn main() -> iced::Result {
1212
tracing_subscriber::fmt::init();
1313

14-
iced::program("Clock - Iced", Clock::update, Clock::view)
14+
iced::application("Clock - Iced", Clock::update, Clock::view)
1515
.subscription(Clock::subscription)
1616
.theme(Clock::theme)
1717
.antialiasing(true)

examples/color_palette/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::marker::PhantomData;
1111
use std::ops::RangeInclusive;
1212

1313
pub fn main() -> iced::Result {
14-
iced::program(
14+
iced::application(
1515
"Color Palette - Iced",
1616
ColorPalette::update,
1717
ColorPalette::view,

examples/custom_shader/src/main.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ use iced::window;
99
use iced::{Alignment, Color, Element, Length, Subscription};
1010

1111
fn main() -> iced::Result {
12-
iced::program("Custom Shader - Iced", IcedCubes::update, IcedCubes::view)
13-
.subscription(IcedCubes::subscription)
14-
.run()
12+
iced::application(
13+
"Custom Shader - Iced",
14+
IcedCubes::update,
15+
IcedCubes::view,
16+
)
17+
.subscription(IcedCubes::subscription)
18+
.run()
1519
}
1620

1721
struct IcedCubes {

examples/download_progress/src/main.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ use iced::widget::{button, center, column, progress_bar, text, Column};
44
use iced::{Alignment, Element, Subscription};
55

66
pub fn main() -> iced::Result {
7-
iced::program("Download Progress - Iced", Example::update, Example::view)
8-
.subscription(Example::subscription)
9-
.run()
7+
iced::application(
8+
"Download Progress - Iced",
9+
Example::update,
10+
Example::view,
11+
)
12+
.subscription(Example::subscription)
13+
.run()
1014
}
1115

1216
#[derive(Debug)]

examples/editor/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::path::{Path, PathBuf};
1212
use std::sync::Arc;
1313

1414
pub fn main() -> iced::Result {
15-
iced::program("Editor - Iced", Editor::update, Editor::view)
15+
iced::application("Editor - Iced", Editor::update, Editor::view)
1616
.load(Editor::load)
1717
.subscription(Editor::subscription)
1818
.theme(Editor::theme)

examples/events/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use iced::window;
55
use iced::{Alignment, Element, Length, Subscription, Task};
66

77
pub fn main() -> iced::Result {
8-
iced::program("Events - Iced", Events::update, Events::view)
8+
iced::application("Events - Iced", Events::update, Events::view)
99
.subscription(Events::subscription)
1010
.exit_on_close_request(false)
1111
.run()

0 commit comments

Comments
 (0)