Skip to content

Commit 676646e

Browse files
committed
fix: unit test
1 parent 3642fe4 commit 676646e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

iced_layershell/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ impl Application for Counter {
178178
.into()
179179
}
180180
181-
fn style(&self, theme: &Self::Theme) -> iced_layershell::Appearance {
182-
use iced_layershell::Appearance;
183-
Appearance {
181+
fn style(&self, theme: &Self::Theme) -> iced::theme::Style {
182+
use iced::theme::Style;
183+
Style {
184184
background_color: Color::TRANSPARENT,
185185
text_color: theme.palette().text,
186186
}
@@ -417,7 +417,7 @@ impl Counter {
417417
.center_x(Length::Fill)
418418
.center_y(Length::Fill)
419419
.style(|_theme| container::Style {
420-
background: Some(iced::Color::new(0., 0.5, 0.7, 0.6).into()),
420+
background: Some(iced::Color::from_rgba(0., 0.5, 0.7, 0.6).into()),
421421
..Default::default()
422422
})
423423
//.style(Container::Custom(Box::new(BlackMenu)))
@@ -472,8 +472,8 @@ impl Counter {
472472
You can define which regions of your window receive input events and which parts are transparent to these events by using WlRegion in SetInputRegion message call.
473473
```rust, ignore
474474
Message::SetInputRegion(ActionCallback::new(|region| {
475-
region.add(0, 0, 400, 400);
476-
region.subtract(0, 0, 400, 60);
475+
region.add(0, 0, 400, 400);
476+
region.subtract(0, 0, 400, 60);
477477
}))
478478
```
479479
view the full example [here](https://github.com/waycrate/exwlshelleventloop/tree/master/iced_layershell/examples/input_regions.rs)

iced_layershell/src/build_pattern/application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ fn view(counter: &Counter) -> Element<Message> {
149149
.into()
150150
}
151151
152-
fn style(_counter: &Counter, theme: &iced::Theme) -> iced_layershell::Appearance {
153-
use iced_layershell::Appearance;
154-
Appearance {
152+
fn style(_counter: &Counter, theme: &iced::Theme) -> iced::theme::Style {
153+
use iced::theme::Style;
154+
Style {
155155
background_color: Color::TRANSPARENT,
156156
text_color: theme.palette().text,
157157
}

iced_layershell/src/build_pattern/daemon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl Counter {
228228
.center_x(Length::Fill)
229229
.center_y(Length::Fill)
230230
.style(|_theme| container::Style {
231-
background: Some(iced::Color::new(0., 0.5, 0.7, 0.6).into()),
231+
background: Some(iced::Color::from_rgba(0., 0.5, 0.7, 0.6).into()),
232232
..Default::default()
233233
})
234234
//.style(Container::Custom(Box::new(BlackMenu)))

0 commit comments

Comments
 (0)