summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-04 22:55:10 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-05-04 22:55:10 +0200
commite3555174d7c12599d454cbe890248449dc3ea958 (patch)
treeb8f52965c5818e2689d5e1ce7eb9646f22697b4f /examples
parent3d3e51a742ec940e19271897a8266172bffd6587 (diff)
downloadiced-e3555174d7c12599d454cbe890248449dc3ea958.tar.gz
iced-e3555174d7c12599d454cbe890248449dc3ea958.tar.bz2
iced-e3555174d7c12599d454cbe890248449dc3ea958.zip
Use only `iced` dependency for `color_palette`
`Point` and `Size` are now properly re-exported.
Diffstat (limited to 'examples')
-rw-r--r--examples/color_palette/Cargo.toml2
-rw-r--r--examples/color_palette/src/main.rs7
2 files changed, 3 insertions, 6 deletions
diff --git a/examples/color_palette/Cargo.toml b/examples/color_palette/Cargo.toml
index 61c9f6b2..00f33e20 100644
--- a/examples/color_palette/Cargo.toml
+++ b/examples/color_palette/Cargo.toml
@@ -7,6 +7,4 @@ publish = false
[dependencies]
iced = { path = "../..", features = ["canvas", "palette"] }
-iced_core = { path = "../../core" }
-iced_native = { path = "../../native" }
palette = "0.5.0"
diff --git a/examples/color_palette/src/main.rs b/examples/color_palette/src/main.rs
index 0092c6ad..073a6734 100644
--- a/examples/color_palette/src/main.rs
+++ b/examples/color_palette/src/main.rs
@@ -1,6 +1,7 @@
use iced::{
- canvas, slider, Align, Canvas, Color, Column, Element, Length, Row,
- Sandbox, Settings, Slider, Text, Vector,
+ canvas, slider, Align, Canvas, Color, Column, Element, HorizontalAlignment,
+ Length, Point, Row, Sandbox, Settings, Size, Slider, Text, Vector,
+ VerticalAlignment,
};
use palette::{self, Limited};
use std::marker::PhantomData;
@@ -147,8 +148,6 @@ impl Theme {
impl canvas::Drawable for Theme {
fn draw(&self, frame: &mut canvas::Frame) {
use canvas::Path;
- use iced::{HorizontalAlignment, VerticalAlignment};
- use iced_native::{Point, Size};
use palette::{Hsl, Srgb};
let pad = 20.0;