Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jul 28, 2023
1 parent 7cdfadf commit e25046e
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 83 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0] - 2023-07-28

### Added
- Selection List now will clear Selected if a new Item is added to the same ID location as the last and its Hash is different.
- Manual Override Will always be used over the internal selected if set to Some(). if the # doesnt Exist it Defaults Selected to None.
Expand All @@ -15,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Breaking Selection List now Takes in Font and Manual Selected override on new_with.
- Breaking Selection list Message Type is now Name((usize, T)) for on_select.
- Upgraded to Latest Iced 0.10.0.
- Depreciating Older Versions of Iced_aw.

### Fixed
- Floating Element Position is corrected. Original position issue was due to Center_x containg both X and Width/2.
18 changes: 4 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iced_aw"
version = "0.5.2"
version = "0.6.0"
authors = ["Kaiden42 <gitlab@tinysn.com>", "Andrew Wheeler <genusistimelord@gmail.com>"]
edition = "2021"
description = "Additional widgets for the Iced GUI library"
Expand Down Expand Up @@ -67,19 +67,9 @@ lazy_static = { version = "1.4.0", optional = true }


[dependencies.iced_widget]
git = "https://github.com/iced-rs/iced.git"
#rev = "8221794"
version = "0.1.0"

#[dependencies.iced_graphics]
#git = "https://github.com/iced-rs/iced.git"
#rev = "8221794"
#version = "0.8.0"

#[dependencies.iced_style]
#git = "https://github.com/iced-rs/iced.git"
#rev = "8221794"
#version = "0.8.0"
version = "0.1.1"

[profile.dev.package."*"]
opt-level = 2
Expand Down Expand Up @@ -113,9 +103,9 @@ members = [
]

[workspace.dependencies.iced]
git = "https://github.com/iced-rs/iced.git"
#git = "https://github.com/iced-rs/iced.git"
#rev = "8221794"
#version = "0.9.0"
version = "0.10.0"
features = ["advanced", "lazy", "tokio"]

[workspace.dependencies.iced_aw]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ Every widget is hidden by a feature gate. This allows you to cherry pick the wid
Include `iced_aw` as a dependency in your `Cargo.toml`:
```toml
[dependencies]
iced = "0.9.0"
iced_aw = { version = "0.5", default-features = false, features = [...] }
iced = "0.10.0"
iced_aw = { version = "0.6.0", default-features = false, features = [...] }
```

## Versioning

| `iced` version | `iced_aw` version |
| -------------- | ----------------- |
| 0.4 | 0.2 |
| 0.7 | 0.3 |
| 0.8 | 0.4 |
| 0.9 | 0.5 |
| 0.10 | 0.6 |

## Widgets


Expand Down
7 changes: 3 additions & 4 deletions src/native/badge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ const BORDER_RADIUS_RATIO: f32 = 34.0 / 15.0;
/// A badge for color highlighting small information.
///
/// # Example
/// ```
/// # use iced_native::{widget::Text, renderer::Null};
/// # use iced_aw::native::badge;
/// ```ignore
/// # use iced::widget::Text;
/// # use iced_aw::Badge;
/// #
/// # pub type Badge<'a, Message> = badge::Badge<'a, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// }
Expand Down
8 changes: 3 additions & 5 deletions src/native/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ const DEFAULT_PADDING: f32 = 10.0;
/// A card consisting of a head, body and optional foot.
///
/// # Example
/// ```
/// # use core::Renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_aw::native::card;
/// ```ignore
/// # use iced::widget::Text;
/// # use iced_aw::Card;
/// #
/// # pub type Card<'a, Message> = card::Card<'a, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// ClosingCard,
Expand Down
6 changes: 2 additions & 4 deletions src/native/color_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ use super::overlay::color_picker::{
///
/// # Example
/// ```ignore
/// # use iced_aw::pure::color_picker;
/// # use iced_native::{Color, renderer::Null};
/// # use iced_pure::widget::{button, Button, Text};
/// # use iced_aw::ColorPicker;
/// # use iced::{Color, widget::{button, Button, Text}};
/// #
/// # pub type ColorPicker<'a, Message> = iced_aw::pure::ColorPicker<'a, Message, Null>;
/// #[derive(Clone, Debug)]
/// enum Message {
/// Open,
Expand Down
10 changes: 3 additions & 7 deletions src/native/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ pub use crate::style::context_menu::StyleSheet;
///
///
/// # Example
/// ```
/// # use iced_native::renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_native::widget::Button;
/// # use iced_aw::native::context_menu;
/// ```ignore
/// # use iced::widget::{Text, Button};
/// # use iced_aw::ContextMenu;
/// #
/// # pub type ContextMenu<'a, Content, Message>
/// # = context_menu::ContextMenu<'a, Message, Content, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// Action1,
Expand Down
8 changes: 3 additions & 5 deletions src/native/date_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ use super::overlay::date_picker::{self, DatePickerOverlay, DatePickerOverlayButt
/// An input element for picking dates.
///
/// # Example
/// ```
/// # use iced_aw::date_picker;
/// # use iced_native::{renderer::Null};
/// # use iced_native::widget::{button, Button, Text};
/// ```ignore
/// # use iced_aw::DatePicker;
/// # use iced::widget::{button, Button, Text};
/// #
/// # pub type DatePicker<'a, Message> = iced_aw::DatePicker<'a, Message, Null>;
/// #[derive(Clone, Debug)]
/// enum Message {
/// Open,
Expand Down
8 changes: 3 additions & 5 deletions src/native/floating_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ use super::overlay::floating_element::FloatingElementOverlay;
/// A floating element floating over some content.
///
/// # Example
/// ```
/// # use iced_widget::graphics::renderer::Null;
/// # use iced_widget::{button, Button, Column, Text};
/// # use iced_aw::native::floating_element;
/// ```ignore
/// # use iced::widget::{button, Button, Column, Text};
/// # use iced_aw::native::FloatingElement;
/// #
/// # pub type FloatingElement<'a, B, Message> = floating_element::FloatingElement<'a, B, Message>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// ButtonPressed,
Expand Down
8 changes: 3 additions & 5 deletions src/native/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ use iced_widget::core::{
///
/// # Example
///
/// ```
/// # use iced_native::renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_aw::native::grid;
/// ```ignore
/// # use iced::widget::Text;
/// # use iced_aw::Grid;
/// #
/// # pub type Grid<'a, Message> = grid::Grid<'a, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// }
Expand Down
9 changes: 3 additions & 6 deletions src/native/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ pub use crate::style::modal::StyleSheet;
/// widget to form dialog elements.
///
/// # Example
/// ```
/// # use core::Renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_aw::native::{ modal};
/// ```ignore
/// # use iced::widget::Text;
/// # use iced_aw::Modal;
/// #
/// # pub type Modal<'a, Message>
/// # = modal::Modal<'a, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// CloseModal,
Expand Down
6 changes: 2 additions & 4 deletions src/native/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ const DEFAULT_PADDING: f32 = 5.0;
/// A field that can only be filled with numeric type.
///
/// # Example
/// ```
/// # use iced_native::renderer::Null;
/// # use iced_aw::native::number_input;
/// ```ignore
/// # use iced_aw::NumberInput;
/// #
/// # pub type NumberInput<'a, T, Message> = number_input::NumberInput<'a, T, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// NumberInputChanged(u32),
Expand Down
9 changes: 3 additions & 6 deletions src/native/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ pub use crate::style::split::{Appearance, StyleSheet};
/// It can split horizontally or vertically.
///
/// # Example
/// ```
/// # use iced_aw::split::{State, Axis};
/// # use iced_native::renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_aw::native::split;
/// ```ignore
/// # use iced_aw::split::{State, Axis, Split};
/// # use iced::widget::Text;
/// #
/// # pub type Split<'a, Message> = split::Split<'a, Message, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// Resized(u16),
Expand Down
7 changes: 2 additions & 5 deletions src/native/tab_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ const DEFAULT_SPACING: f32 = 0.0;
/// A tab bar to show tabs.
///
/// # Example
/// ```
/// # use iced_aw::{TabLabel};
/// # use iced_native::{renderer::Null};
/// # use iced_aw::native::tab_bar;
/// ```ignore
/// # use iced_aw::{TabLabel, TabBar};
/// #
/// # pub type TabBar<Message> = tab_bar::TabBar<Message, TabId, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// TabSelected(TabId),
Expand Down
9 changes: 3 additions & 6 deletions src/native/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ pub use tab_bar_position::TabBarPosition;
/// along with the tab's content.
///
/// # Example
/// ```
/// # use iced_aw::{TabLabel};
/// # use iced_native::renderer::Null;
/// # use iced_native::widget::Text;
/// # use iced_aw::native::tabs;
/// ```ignore
/// # use iced_aw::{TabLabel, tabs::Tabs};
/// # use iced::widget::Text;
/// #
/// # pub type Tabs<'a, Message> = tabs::Tabs<'a, Message, TabId, Null>;
/// #[derive(Debug, Clone)]
/// enum Message {
/// TabSelected(TabId),
Expand Down
4 changes: 1 addition & 3 deletions src/native/time_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ pub use crate::style::time_picker::{Appearance, StyleSheet};
///
/// # Example
/// ```ignore
/// # use iced_aw::time_picker;
/// # use iced_native::renderer::Null;
/// # use iced_aw::{TimePicker,time_picker};
/// # use iced_native::widget::{button, Button, Text};
/// #
/// # pub type TimePicker<'a, Message> = iced_aw::TimePicker<'a, Message, Null>;
/// #[derive(Clone, Debug)]
/// enum Message {
/// Open,
Expand Down

0 comments on commit e25046e

Please sign in to comment.