Fix consistency of import ordering
This commit is contained in:
parent
0e8c3fe30f
commit
2b8b3fd413
5 changed files with 8 additions and 10 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
//! Define the colors of a theme.
|
//! Define the colors of a theme.
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
use crate::{color, Color};
|
use crate::{color, Color};
|
||||||
|
|
||||||
use palette::color_difference::Wcag21RelativeContrast;
|
use palette::color_difference::Wcag21RelativeContrast;
|
||||||
use palette::rgb::Rgb;
|
use palette::rgb::Rgb;
|
||||||
use palette::{FromColor, Hsl, Mix};
|
use palette::{FromColor, Hsl, Mix};
|
||||||
|
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
/// A color palette.
|
/// A color palette.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
pub struct Palette {
|
pub struct Palette {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
use iced::Point;
|
use iced::Point;
|
||||||
|
|
||||||
use lyon_algorithms::measure::PathMeasurements;
|
use lyon_algorithms::measure::PathMeasurements;
|
||||||
use lyon_algorithms::path::{builder::NoAttributes, path::BuilderImpl, Path};
|
use lyon_algorithms::path::{builder::NoAttributes, path::BuilderImpl, Path};
|
||||||
|
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
pub static EMPHASIZED: LazyLock<Easing> = LazyLock::new(|| {
|
pub static EMPHASIZED: LazyLock<Easing> = LazyLock::new(|| {
|
||||||
Easing::builder()
|
Easing::builder()
|
||||||
.cubic_bezier_to([0.05, 0.0], [0.133333, 0.06], [0.166666, 0.4])
|
.cubic_bezier_to([0.05, 0.0], [0.133333, 0.06], [0.166666, 0.4])
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
use iced::widget::{
|
use iced::widget::{
|
||||||
button, column, container, horizontal_space, progress_bar, radio, row,
|
button, column, container, horizontal_space, progress_bar, radio, row,
|
||||||
scrollable, slider, text, vertical_space,
|
scrollable, slider, text, vertical_space,
|
||||||
};
|
};
|
||||||
use iced::{Border, Center, Color, Element, Fill, Task, Theme};
|
use iced::{Border, Center, Color, Element, Fill, Task, Theme};
|
||||||
|
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
static SCROLLABLE_ID: LazyLock<scrollable::Id> =
|
static SCROLLABLE_ID: LazyLock<scrollable::Id> =
|
||||||
LazyLock::new(scrollable::Id::unique);
|
LazyLock::new(scrollable::Id::unique);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
mod echo;
|
mod echo;
|
||||||
|
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
use iced::widget::{
|
use iced::widget::{
|
||||||
self, button, center, column, row, scrollable, text, text_input,
|
self, button, center, column, row, scrollable, text, text_input,
|
||||||
};
|
};
|
||||||
use iced::{color, Center, Element, Fill, Subscription, Task};
|
use iced::{color, Center, Element, Fill, Subscription, Task};
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
pub fn main() -> iced::Result {
|
pub fn main() -> iced::Result {
|
||||||
iced::application("WebSocket - Iced", WebSocket::update, WebSocket::view)
|
iced::application("WebSocket - Iced", WebSocket::update, WebSocket::view)
|
||||||
|
|
|
||||||
|
|
@ -1706,10 +1706,9 @@ where
|
||||||
+ 'a,
|
+ 'a,
|
||||||
Theme: text::Catalog + crate::svg::Catalog + 'a,
|
Theme: text::Catalog + crate::svg::Catalog + 'a,
|
||||||
{
|
{
|
||||||
use std::sync::LazyLock;
|
|
||||||
|
|
||||||
use crate::core::{Alignment, Font};
|
use crate::core::{Alignment, Font};
|
||||||
use crate::svg;
|
use crate::svg;
|
||||||
|
use std::sync::LazyLock;
|
||||||
|
|
||||||
static LOGO: LazyLock<svg::Handle> = LazyLock::new(|| {
|
static LOGO: LazyLock<svg::Handle> = LazyLock::new(|| {
|
||||||
svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg"))
|
svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue