Skip to content

Commit

Permalink
Merge pull request #82 from genusistimelord/main
Browse files Browse the repository at this point in the history
Removed Colors feature as it is required for most widgets now.
  • Loading branch information
Andrew Wheeler(Genusis) authored Jan 30, 2023
2 parents 120087c + 287ae97 commit 385567b
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 22 deletions.
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ categories = ["gui"]
[features]
badge = []
card = []
colors = []
date_picker = ["chrono", "lazy_static", "icon_text"]
color_picker = ["icon_text", "iced_graphics/canvas"]
floating_element = []
Expand All @@ -34,17 +33,16 @@ split = []
default = [
"badge",
"card",
"colors",
"number_input",
#"date_picker",
#"color_picker",
"date_picker",
"color_picker",
"floating_element",
"icon_text",
"grid",
"modal",
"tab_bar",
"tabs",
#"time_picker",
"time_picker",
"wrap",
"selection_list",
"split",
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ iced_aw = { version = "0.2", default-features = false, features = [...] }
Please take a look into our examples on how to use badges.

Enable this widget with the feature `badge`.
To enable predefined styles, enable the feature `colors`.

### Card

Expand All @@ -51,7 +50,6 @@ To enable predefined styles, enable the feature `colors`.
Please take a look into our examples on how to use cards.

Enable this widget with the feature `card`.
To enable predefined styles, enable the feature `colors`.

### Color Picker

Expand Down Expand Up @@ -88,7 +86,6 @@ Enable this widget with the feature `date_picker`.
Please take a look into our examples on how to use floating elements.

Enable this widget with the feature `floating_element`.
To enable predefined styles for buttons, enable the feature `colors`.

### Modal

Expand All @@ -104,7 +101,6 @@ Modals are useful for showing some content as an overlay on top. In combination
Please take a look into our examples on how to use modals.

Enable this widget with the feature `modal`.
To enable predefined styles, enable the feature `colors`.

### NumberInput

Expand Down Expand Up @@ -172,8 +168,6 @@ Quickstart features are pretty handy to start and experiment having everything l

This crate adds a predefined color palette based on the [CSS color palette](https://www.w3schools.com/cssref/css_colors.asp).

Enable colors with the feature `colors`.

### Bootstrap icons

Thanks to [Bootstrap](https://icons.getbootstrap.com), iced_aw now contains ~1,200 icons to be used in an Iced GUI.
Expand Down
1 change: 0 additions & 1 deletion examples/badge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"badge",
"colors",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/card/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"card",
"colors",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/color_picker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"color_picker",
"colors",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/date_picker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"date_picker",
"colors",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/floating_element/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"floating_element",
"colors",
"icons",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/modal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2021"
[dependencies]
iced_aw = { workspace = true, features = [
"card",
"colors",
"modal",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion examples/time_picker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ edition = "2021"

[dependencies]
iced_aw = { workspace = true, features = [
"colors",
"time_picker",
] }
iced.workspace = true
1 change: 0 additions & 1 deletion src/style/colors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Predefined color palette based on the CSS color palette
//!
//! *This API requires the following crate features to be activated: colors*
//!
//! Thanks to:
//! * [W3 Schools](https://www.w3schools.com/cssref/css_colors.asp)
Expand Down
4 changes: 1 addition & 3 deletions src/style/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//! The appearance of the widgets
pub mod style_state;

#[cfg(feature = "colors")]
pub mod colors;
pub mod style_state;

#[cfg(feature = "badge")]
pub mod badge;
Expand Down

0 comments on commit 385567b

Please sign in to comment.