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
use cosmic::{
Element,
iced::{
self,
Color,
Alignment,
Application,
Command,
Element,
Length,
Theme,
widget::{
column,
horizontal_space,
@ -18,6 +17,7 @@ use cosmic::{
},
},
settings,
theme::Theme,
widget::{
button,
toggler,

View file

@ -1,11 +1,14 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
use cosmic::iced_native::{
{Color, Element, Length, Point, Rectangle, Size, Theme},
image,
layout::{self, Layout},
renderer,
widget::{self, tree, Widget},
use cosmic::{
iced_native::{
{Color, Element, Length, Point, Rectangle, Size},
image,
layout::{self, Layout},
renderer,
widget::{self, tree, Widget},
},
theme::Theme,
};
use cosmic_text::{
Attrs,

View file

@ -1,15 +1,18 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
use cosmic::iced_native::{
{Color, Element, Length, Point, Rectangle, Shell, Size, Theme},
clipboard::Clipboard,
event::{Event, Status},
image,
keyboard::{Event as KeyEvent, KeyCode},
layout::{self, Layout},
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
renderer,
widget::{self, tree, Widget},
use cosmic::{
iced_native::{
{Color, Element, Length, Point, Rectangle, Shell, Size},
clipboard::Clipboard,
event::{Event, Status},
image,
keyboard::{Event as KeyEvent, KeyCode},
layout::{self, Layout},
mouse::{self, Button, Event as MouseEvent, ScrollDelta},
renderer,
widget::{self, tree, Widget},
},
theme::Theme,
};
use cosmic_text::{
Action,