Skip to content

Commit b3168f9

Browse files
committed
fix: doc
1 parent bf0d330 commit b3168f9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

iced_layershell/src/build_pattern/application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
use iced::widget::{button, column, row, text, text_input};
66
use iced::{event, Alignment, Color, Element, Event, Length, Task as Command};
7-
use iced_layershell::build_pattern::{application, MainSettings};
7+
use iced_layershell::build_pattern::{application, Settings};
88
use iced_layershell::reexport::Anchor;
99
use iced_layershell::settings::{LayerShellSettings, StartMode};
1010
use iced_layershell::to_layer_message;
@@ -25,7 +25,7 @@ pub fn main() -> Result<(), iced_layershell::Error> {
2525
application(namespace, update, view)
2626
.style(style)
2727
.subscription(subscription)
28-
.settings(MainSettings {
28+
.settings(Settings {
2929
layer_settings: LayerShellSettings {
3030
size: Some((0, 400)),
3131
exclusive_zone: 400,

iced_layershell/src/build_pattern/daemon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use iced_layershell::actions::{IcedNewMenuSettings, MenuDirection};
1111
use iced_runtime::window::Action as WindowAction;
1212
use iced_runtime::{task, Action};
1313
14-
use iced_layershell::build_pattern::{daemon, MainSettings};
14+
use iced_layershell::build_pattern::{daemon, Settings};
1515
use iced_layershell::reexport::{Anchor, KeyboardInteractivity, Layer, NewLayerShellSettings};
1616
use iced_layershell::settings::{LayerShellSettings, StartMode};
1717
use iced_layershell::to_layer_message;
@@ -24,7 +24,7 @@ pub fn main() -> Result<(), iced_layershell::Error> {
2424
Counter::remove_id,
2525
)
2626
.subscription(Counter::subscription)
27-
.settings(MainSettings {
27+
.settings(Settings {
2828
layer_settings: LayerShellSettings {
2929
size: Some((0, 400)),
3030
exclusive_zone: 400,

iced_sessionlock/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use iced::widget::{Space, button, column, text, text_input};
1313
use iced::{Alignment, Element, Event, Length, Task as Command, event};
1414
use iced_sessionlock::actions::UnLockAction;
1515
use iced_sessionlock::application;
16+
use iced_sessionlock::to_session_message;
1617
1718
pub fn main() -> Result<(), iced_sessionlock::Error> {
1819
application(Counter::update, Counter::view)
@@ -35,7 +36,7 @@ enum Message {
3536
}
3637
3738
impl Counter {
38-
fn new(_flags: ()) -> (Self, Command<Message>) {
39+
fn new() -> (Self, Command<Message>) {
3940
(
4041
Self {
4142
value: 0,

0 commit comments

Comments
 (0)