Update to use cosmic::theme::Theme
This commit is contained in:
parent
5cca5dd058
commit
ecf61a93b1
3 changed files with 24 additions and 18 deletions
|
|
@ -1,15 +1,14 @@
|
||||||
// SPDX-License-Identifier: MIT OR Apache-2.0
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
Element,
|
||||||
iced::{
|
iced::{
|
||||||
self,
|
self,
|
||||||
Color,
|
Color,
|
||||||
Alignment,
|
Alignment,
|
||||||
Application,
|
Application,
|
||||||
Command,
|
Command,
|
||||||
Element,
|
|
||||||
Length,
|
Length,
|
||||||
Theme,
|
|
||||||
widget::{
|
widget::{
|
||||||
column,
|
column,
|
||||||
horizontal_space,
|
horizontal_space,
|
||||||
|
|
@ -18,6 +17,7 @@ use cosmic::{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
settings,
|
settings,
|
||||||
|
theme::Theme,
|
||||||
widget::{
|
widget::{
|
||||||
button,
|
button,
|
||||||
toggler,
|
toggler,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,14 @@
|
||||||
// SPDX-License-Identifier: MIT OR Apache-2.0
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||||||
|
|
||||||
use cosmic::iced_native::{
|
use cosmic::{
|
||||||
{Color, Element, Length, Point, Rectangle, Size, Theme},
|
iced_native::{
|
||||||
image,
|
{Color, Element, Length, Point, Rectangle, Size},
|
||||||
layout::{self, Layout},
|
image,
|
||||||
renderer,
|
layout::{self, Layout},
|
||||||
widget::{self, tree, Widget},
|
renderer,
|
||||||
|
widget::{self, tree, Widget},
|
||||||
|
},
|
||||||
|
theme::Theme,
|
||||||
};
|
};
|
||||||
use cosmic_text::{
|
use cosmic_text::{
|
||||||
Attrs,
|
Attrs,
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
// SPDX-License-Identifier: MIT OR Apache-2.0
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||||||
|
|
||||||
use cosmic::iced_native::{
|
use cosmic::{
|
||||||
{Color, Element, Length, Point, Rectangle, Shell, Size, Theme},
|
iced_native::{
|
||||||
clipboard::Clipboard,
|
{Color, Element, Length, Point, Rectangle, Shell, Size},
|
||||||
event::{Event, Status},
|
clipboard::Clipboard,
|
||||||
image,
|
event::{Event, Status},
|
||||||
keyboard::{Event as KeyEvent, KeyCode},
|
image,
|
||||||
layout::{self, Layout},
|
keyboard::{Event as KeyEvent, KeyCode},
|
||||||
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
|
layout::{self, Layout},
|
||||||
renderer,
|
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
|
||||||
widget::{self, tree, Widget},
|
renderer,
|
||||||
|
widget::{self, tree, Widget},
|
||||||
|
},
|
||||||
|
theme::Theme,
|
||||||
};
|
};
|
||||||
use cosmic_text::{
|
use cosmic_text::{
|
||||||
Action,
|
Action,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue