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::{
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,

View file

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