Create iced_widget subcrate and re-organize the whole codebase

This commit is contained in:
Héctor Ramón Jiménez 2023-03-04 05:37:11 +01:00
parent c54409d171
commit 3a0d34c024
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
209 changed files with 1959 additions and 2183 deletions

View file

@ -18,7 +18,7 @@
#![deny(missing_docs, unused_results)]
#![forbid(unsafe_code, rust_2018_idioms)]
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
pub use iced_core::{Background, Color};
pub use iced_core as core;
pub mod application;
pub mod button;
@ -33,7 +33,6 @@ pub mod rule;
pub mod scrollable;
pub mod slider;
pub mod svg;
pub mod text;
pub mod text_input;
pub mod theme;
pub mod toggler;

View file

@ -1,5 +1,5 @@
//! Change the appearance of text.
use iced_core::Color;
use crate::core::Color;
/// The style sheet of some text.
pub trait StyleSheet {

View file

@ -8,6 +8,7 @@ use crate::application;
use crate::button;
use crate::checkbox;
use crate::container;
use crate::core::widget::text;
use crate::menu;
use crate::pane_grid;
use crate::pick_list;
@ -17,7 +18,6 @@ use crate::rule;
use crate::scrollable;
use crate::slider;
use crate::svg;
use crate::text;
use crate::text_input;
use crate::toggler;