chore: format for 2024 edition

This commit is contained in:
Michael Aaron Murphy 2025-03-21 13:33:07 +01:00
parent 8cf372c9b9
commit 0aa518984e
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
57 changed files with 196 additions and 199 deletions

View file

@ -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 {

View file

@ -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,

View file

@ -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,