mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-11-27 00:00:37 +00:00
fed9c654ef
* Partially resolve color todo * Update localizations for quick connect steps. use bulleted list * Same change for tvos * Remove padding2 modifier * Localisation
40 lines
1.3 KiB
Swift
40 lines
1.3 KiB
Swift
//
|
|
// Swiftfin is subject to the terms of the Mozilla Public
|
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
//
|
|
// Copyright (c) 2024 Jellyfin & Jellyfin Contributors
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
extension Color {
|
|
|
|
static let jellyfinPurple = Color(red: 172 / 255, green: 92 / 255, blue: 195 / 255, opacity: 1)
|
|
|
|
var uiColor: UIColor {
|
|
UIColor(self)
|
|
}
|
|
|
|
var overlayColor: Color {
|
|
Color(uiColor: uiColor.overlayColor) // TODO: move from UIColor
|
|
}
|
|
|
|
// TODO: Correct and add colors
|
|
#if os(tvOS) // tvOS doesn't have these
|
|
static let systemFill = Color(UIColor.white)
|
|
static let secondarySystemFill = Color(UIColor.gray)
|
|
static let tertiarySystemFill = Color(UIColor.black)
|
|
static let lightGray = Color(UIColor.lightGray)
|
|
|
|
#else
|
|
static let systemBackground = Color(UIColor.systemBackground)
|
|
static let secondarySystemBackground = Color(UIColor.secondarySystemBackground)
|
|
static let tertiarySystemBackground = Color(UIColor.tertiarySystemBackground)
|
|
|
|
static let systemFill = Color(UIColor.systemFill)
|
|
static let secondarySystemFill = Color(UIColor.secondarySystemFill)
|
|
static let tertiarySystemFill = Color(UIColor.tertiarySystemFill)
|
|
#endif
|
|
}
|