Use only `iced` dependency for `color_palette`
`Point` and `Size` are now properly re-exported.
This commit is contained in:
parent
3d3e51a742
commit
e3555174d7
|
@ -7,6 +7,4 @@ publish = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced = { path = "../..", features = ["canvas", "palette"] }
|
iced = { path = "../..", features = ["canvas", "palette"] }
|
||||||
iced_core = { path = "../../core" }
|
|
||||||
iced_native = { path = "../../native" }
|
|
||||||
palette = "0.5.0"
|
palette = "0.5.0"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use iced::{
|
use iced::{
|
||||||
canvas, slider, Align, Canvas, Color, Column, Element, Length, Row,
|
canvas, slider, Align, Canvas, Color, Column, Element, HorizontalAlignment,
|
||||||
Sandbox, Settings, Slider, Text, Vector,
|
Length, Point, Row, Sandbox, Settings, Size, Slider, Text, Vector,
|
||||||
|
VerticalAlignment,
|
||||||
};
|
};
|
||||||
use palette::{self, Limited};
|
use palette::{self, Limited};
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
@ -147,8 +148,6 @@ impl Theme {
|
||||||
impl canvas::Drawable for Theme {
|
impl canvas::Drawable for Theme {
|
||||||
fn draw(&self, frame: &mut canvas::Frame) {
|
fn draw(&self, frame: &mut canvas::Frame) {
|
||||||
use canvas::Path;
|
use canvas::Path;
|
||||||
use iced::{HorizontalAlignment, VerticalAlignment};
|
|
||||||
use iced_native::{Point, Size};
|
|
||||||
use palette::{Hsl, Srgb};
|
use palette::{Hsl, Srgb};
|
||||||
|
|
||||||
let pad = 20.0;
|
let pad = 20.0;
|
||||||
|
|
Loading…
Reference in New Issue