28 lines
561 B
Swift
28 lines
561 B
Swift
//
|
|
// Copyright 2020-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum ThemeIdentifier: String, RawRepresentable {
|
|
case light = "default"
|
|
case dark = "dark"
|
|
case black = "black"
|
|
|
|
init?(rawValue: String) {
|
|
switch rawValue {
|
|
case "default":
|
|
self = .light
|
|
case "dark":
|
|
self = .dark
|
|
case "black":
|
|
self = .black
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|