Refactor damus color references

This commit is contained in:
William Casarin
2023-03-27 12:38:59 -04:00
parent e11147b217
commit eabf37e35c
17 changed files with 47 additions and 46 deletions

View File

@@ -8,8 +8,8 @@
import SwiftUI
let RECTANGLE_GRADIENT = LinearGradient(gradient: Gradient(colors: [
Color("DamusPurple"),
Color("DamusBlue")
DamusColors.purple,
DamusColors.blue
]), startPoint: .leading, endPoint: .trailing)
struct CustomPicker<SelectionValue: Hashable, Content: View>: View {
@@ -56,6 +56,6 @@ struct CustomPicker<SelectionValue: Hashable, Content: View>: View {
}
func textColor() -> Color {
colorScheme == .light ? Color("DamusBlack") : Color("DamusWhite")
colorScheme == .light ? DamusColors.black : DamusColors.white
}
}