chore: format for 2024 edition
This commit is contained in:
parent
8cf372c9b9
commit
0aa518984e
57 changed files with 196 additions and 199 deletions
|
|
@ -5,12 +5,12 @@
|
|||
|
||||
use super::Builder;
|
||||
use super::ButtonClass;
|
||||
use crate::Element;
|
||||
use crate::prelude::*;
|
||||
use crate::widget::icon::{self, Handle};
|
||||
use crate::widget::{button, row, tooltip};
|
||||
use crate::Element;
|
||||
use iced_core::text::LineHeight;
|
||||
use iced_core::{font::Weight, widget::Id, Alignment, Length, Padding};
|
||||
use iced_core::{Alignment, Length, Padding, font::Weight, widget::Id};
|
||||
use std::borrow::Cow;
|
||||
|
||||
pub type Button<'a, Message> = Builder<'a, Message, Hyperlink>;
|
||||
|
|
|
|||
|
|
@ -8,21 +8,21 @@ pub use crate::theme::Button as ButtonClass;
|
|||
pub mod link;
|
||||
use derive_setters::Setters;
|
||||
#[doc(inline)]
|
||||
pub use link::link;
|
||||
#[doc(inline)]
|
||||
pub use link::Button as LinkButton;
|
||||
#[doc(inline)]
|
||||
pub use link::link;
|
||||
|
||||
mod icon;
|
||||
#[doc(inline)]
|
||||
pub use icon::icon;
|
||||
#[doc(inline)]
|
||||
pub use icon::Button as IconButton;
|
||||
#[doc(inline)]
|
||||
pub use icon::icon;
|
||||
|
||||
mod image;
|
||||
#[doc(inline)]
|
||||
pub use image::image;
|
||||
#[doc(inline)]
|
||||
pub use image::Button as ImageButton;
|
||||
#[doc(inline)]
|
||||
pub use image::image;
|
||||
|
||||
mod style;
|
||||
#[doc(inline)]
|
||||
|
|
@ -36,7 +36,7 @@ pub use text::{destructive, standard, suggested, text};
|
|||
|
||||
mod widget;
|
||||
#[doc(inline)]
|
||||
pub use widget::{draw, focus, layout, mouse_interaction, Button};
|
||||
pub use widget::{Button, draw, focus, layout, mouse_interaction};
|
||||
|
||||
use iced_core::font::Weight;
|
||||
use iced_core::widget::Id;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
//! Change the apperance of a button.
|
||||
use iced_core::{border::Radius, Background, Color, Vector};
|
||||
use iced_core::{Background, Color, Vector, border::Radius};
|
||||
|
||||
use crate::theme::THEME;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
use super::{Builder, ButtonClass};
|
||||
use crate::widget::{icon, row, tooltip};
|
||||
use crate::{Apply, Element};
|
||||
use iced_core::{font::Weight, text::LineHeight, widget::Id, Alignment, Length, Padding};
|
||||
use iced_core::{Alignment, Length, Padding, font::Weight, text::LineHeight, widget::Id};
|
||||
use std::borrow::Cow;
|
||||
|
||||
pub type Button<'a, Message> = Builder<'a, Message, Text>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue