mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 02:52:45 +02:00
Revert "Replace DesignKit with package from ElementX."
This reverts the following commits: ef5365ab240a1449e0490d2eb011dd69f594e27b 545b641e53a845b722f571b48ab408000048714b 702b7a696dd1a8319d6af907d4766a035cf30234 2398c1534dd1ca5b6329c888c50f55fb1b0ec23f
This commit is contained in:
@@ -14,33 +14,10 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Foundation
|
||||
import DesignKit
|
||||
import DesignTokens
|
||||
|
||||
protocol ThemeSwiftUI: ThemeSwiftUIType {
|
||||
var identifier: ThemeIdentifier { get }
|
||||
var isDark: Bool { get }
|
||||
}
|
||||
|
||||
/// Theme v2 for SwiftUI.
|
||||
@available(iOS 14.0, *)
|
||||
public protocol ThemeSwiftUIType {
|
||||
|
||||
/// Colors object
|
||||
var colors: ElementColors { get }
|
||||
|
||||
/// Fonts object
|
||||
var fonts: ElementFonts { get }
|
||||
|
||||
/// may contain more design components in future, like icons, audio files etc.
|
||||
}
|
||||
|
||||
// MARK: - Legacy Colors
|
||||
|
||||
public extension ElementColors {
|
||||
var legacyTile: Color {
|
||||
let dynamicColor = UIColor { $0.userInterfaceStyle == .light ? .elementLight.tile : .elementDark.tile }
|
||||
return Color(dynamicColor)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user