chore: format for 2024 edition
This commit is contained in:
parent
8cf372c9b9
commit
0aa518984e
57 changed files with 196 additions and 199 deletions
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::widget::dropdown;
|
||||
use crate::Theme;
|
||||
use crate::widget::dropdown;
|
||||
use iced::{Background, Color};
|
||||
|
||||
impl dropdown::menu::StyleSheet for Theme {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
//! Contains stylesheet implementations for widgets native to iced.
|
||||
|
||||
use crate::theme::{CosmicComponent, Theme, TRANSPARENT_COMPONENT};
|
||||
use crate::theme::{CosmicComponent, TRANSPARENT_COMPONENT, Theme};
|
||||
use cosmic_theme::composite::over;
|
||||
use iced::{
|
||||
overlay::menu,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
use crate::widget::segmented_button::{Appearance, ItemAppearance, StyleSheet};
|
||||
use crate::{theme::Theme, widget::segmented_button::ItemStatusAppearance};
|
||||
use cosmic_theme::{Component, Container};
|
||||
use iced_core::{border::Radius, Background};
|
||||
use iced_core::{Background, border::Radius};
|
||||
|
||||
#[derive(Default)]
|
||||
pub enum SegmentedButton {
|
||||
|
|
@ -165,7 +165,7 @@ impl StyleSheet for Theme {
|
|||
mod horizontal {
|
||||
use crate::widget::segmented_button::{ItemAppearance, ItemStatusAppearance};
|
||||
use cosmic_theme::Component;
|
||||
use iced_core::{border::Radius, Background};
|
||||
use iced_core::{Background, border::Radius};
|
||||
|
||||
pub fn selection_active(
|
||||
cosmic: &cosmic_theme::Theme,
|
||||
|
|
@ -252,7 +252,7 @@ pub fn hover(
|
|||
mod vertical {
|
||||
use crate::widget::segmented_button::{ItemAppearance, ItemStatusAppearance};
|
||||
use cosmic_theme::Component;
|
||||
use iced_core::{border::Radius, Background};
|
||||
use iced_core::{Background, border::Radius};
|
||||
|
||||
pub fn selection_active(
|
||||
cosmic: &cosmic_theme::Theme,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue