18 lines
411 B
Swift
18 lines
411 B
Swift
//
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
public import SignalServiceKit
|
|
|
|
extension ThemedColor {
|
|
|
|
public var forCurrentTheme: UIColor {
|
|
return self.color(isDarkThemeEnabled: Theme.isDarkThemeEnabled)
|
|
}
|
|
|
|
public static func fixed(_ color: UIColor) -> ThemedColor {
|
|
return ThemedColor(light: color, dark: color)
|
|
}
|
|
}
|