Do not re-export Palette from iced_core

This commit is contained in:
Clark Moody 2020-04-24 15:20:00 -05:00
parent 4b90241ea1
commit 27fadad324
3 changed files with 2 additions and 7 deletions

View File

@ -35,6 +35,3 @@ pub use point::Point;
pub use rectangle::Rectangle; pub use rectangle::Rectangle;
pub use size::Size; pub use size::Size;
pub use vector::Vector; pub use vector::Vector;
#[cfg(feature = "palette")]
pub use palette;

View File

@ -5,10 +5,8 @@ authors = ["Clark Moody <clark@clarkmoody.com>"]
edition = "2018" edition = "2018"
publish = false publish = false
[features]
palette = []
[dependencies] [dependencies]
iced = { path = "../..", features = ["canvas", "palette"] } iced = { path = "../..", features = ["canvas", "palette"] }
iced_core = { path = "../../core" } iced_core = { path = "../../core" }
iced_native = { path = "../../native" } iced_native = { path = "../../native" }
palette = "0.5.0"

View File

@ -2,7 +2,7 @@ use iced::{
canvas, slider, text_input, Canvas, Color, Column, Element, Length, Point, canvas, slider, text_input, Canvas, Color, Column, Element, Length, Point,
Row, Sandbox, Settings, Slider, Text, TextInput, Row, Sandbox, Settings, Slider, Text, TextInput,
}; };
use iced_core::palette::{self, Limited}; use palette::{self, Limited};
pub fn main() { pub fn main() {
ColorPalette::run(Settings { ColorPalette::run(Settings {