diff --git a/Widgets/Assets.xcassets/DeprecatedColors/AccentColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/AccentColor.colorset/Contents.json deleted file mode 100644 index de95d5b40b..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "0.561", - "red" : "0.404" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetAddFavoriteMessageColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetAddFavoriteMessageColor.colorset/Contents.json deleted file mode 100644 index 15bc03d1e6..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetAddFavoriteMessageColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.533", - "green" : "0.533", - "red" : "0.533" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.800", - "green" : "0.800", - "red" : "0.800" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackground.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackground.colorset/Contents.json deleted file mode 100644 index eb87897008..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackground.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackgroundColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackgroundColor.colorset/Contents.json deleted file mode 100644 index 6da1cac80b..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetBackgroundColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "display-p3", - "components" : { - "alpha" : "1.000", - "blue" : "0xFF", - "green" : "0xFF", - "red" : "0xFF" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "display-p3", - "components" : { - "alpha" : "1.000", - "blue" : "0.067", - "green" : "0.067", - "red" : "0.067" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoriteLetterColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoriteLetterColor.colorset/Contents.json deleted file mode 100644 index 97650a1a6e..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoriteLetterColor.colorset/Contents.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoritesBackgroundColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoritesBackgroundColor.colorset/Contents.json deleted file mode 100644 index 5ae8b4dfdb..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetFavoritesBackgroundColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.980", - "green" : "0.980", - "red" : "0.980" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.133", - "green" : "0.133", - "red" : "0.133" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/Assets.xcassets/DeprecatedColors/WidgetSearchFieldTextColor.colorset/Contents.json b/Widgets/Assets.xcassets/DeprecatedColors/WidgetSearchFieldTextColor.colorset/Contents.json deleted file mode 100644 index b9f68fe621..0000000000 --- a/Widgets/Assets.xcassets/DeprecatedColors/WidgetSearchFieldTextColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.533", - "green" : "0.533", - "red" : "0.533" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Widgets/ColorExtension.swift b/Widgets/ColorExtension.swift index c464779c57..6496260e62 100644 --- a/Widgets/ColorExtension.swift +++ b/Widgets/ColorExtension.swift @@ -21,13 +21,7 @@ import SwiftUI extension Color { - static let widgetBackground = Color("WidgetBackgroundColor") - static let widgetFavoritesBackground = Color("WidgetFavoritesBackgroundColor") static let widgetSearchFieldBackground = Color("WidgetSearchFieldBackgroundColor") - static let widgetSearchFieldText = Color("WidgetSearchFieldTextColor") - static let widgetFavoriteLetter = Color("WidgetFavoriteLetterColor") - static let widgetAddFavoriteCTA = Color(.cornflowerBlue) - static let widgetAddFavoriteMessage = Color("WidgetAddFavoriteMessageColor") static func forDomain(_ domain: String) -> Color { return Color(UIColor.forDomain(domain))