From a872ca1d6b04d7c19d873000f26b6078192b0910 Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Sun, 12 Jul 2026 00:24:34 +0200 Subject: [PATCH] improve code style --- Sources/phbar/Models/Theme/PHTheme.swift | 2 +- Sources/phbar/Models/Theme/PHThemeColor.swift | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/phbar/Models/Theme/PHTheme.swift b/Sources/phbar/Models/Theme/PHTheme.swift index b2bbb36..dfba179 100644 --- a/Sources/phbar/Models/Theme/PHTheme.swift +++ b/Sources/phbar/Models/Theme/PHTheme.swift @@ -31,7 +31,7 @@ extension PHTheme { } /// Load the bundled theme. - /// If the theme doesn't exist or fails to parse, the execution is interrupted. + /// If the file doesn't exist or fails to parse, the execution is interrupted. static private func loadFromBundle() throws -> PHTheme { guard let defaultConfig = Bundle.module.url( diff --git a/Sources/phbar/Models/Theme/PHThemeColor.swift b/Sources/phbar/Models/Theme/PHThemeColor.swift index ffb3715..1e1c90f 100644 --- a/Sources/phbar/Models/Theme/PHThemeColor.swift +++ b/Sources/phbar/Models/Theme/PHThemeColor.swift @@ -3,12 +3,12 @@ import SwiftUI struct PHThemeColor: Decodable, ShapeStyle { typealias Resolved = SwiftUI.Color - let color: String - let alpha: Double? + let color: String + let alpha: Double? - var uiColor: SwiftUI.Color { - SwiftUI.Color(hex: color, opacity: alpha) - } + var uiColor: SwiftUI.Color { + SwiftUI.Color(hex: color, opacity: alpha) + } var nsColor: NSColor? { guard let cgColor else { return nil }