Update to use cosmic::theme::Theme

This commit is contained in:
Jeremy Soller 2022-11-09 08:03:13 -07:00
parent 5cca5dd058
commit ecf61a93b1
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 24 additions and 18 deletions

View file

@ -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,

View file

@ -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::{
{Color, Element, Length, Point, Rectangle, Size},
image, image,
layout::{self, Layout}, layout::{self, Layout},
renderer, renderer,
widget::{self, tree, Widget}, widget::{self, tree, Widget},
},
theme::Theme,
}; };
use cosmic_text::{ use cosmic_text::{
Attrs, Attrs,

View file

@ -1,7 +1,8 @@
// 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::{
{Color, Element, Length, Point, Rectangle, Shell, Size},
clipboard::Clipboard, clipboard::Clipboard,
event::{Event, Status}, event::{Event, Status},
image, image,
@ -10,6 +11,8 @@ use cosmic::iced_native::{
mouse::{self, Button, Event as MouseEvent, ScrollDelta}, mouse::{self, Button, Event as MouseEvent, ScrollDelta},
renderer, renderer,
widget::{self, tree, Widget}, widget::{self, tree, Widget},
},
theme::Theme,
}; };
use cosmic_text::{ use cosmic_text::{
Action, Action,