From efc2a05db1a4a7b236943a590b11f808dc3c7ad0 Mon Sep 17 00:00:00 2001 From: sunxiaojian Date: Sat, 20 Feb 2021 11:14:13 +0800 Subject: [PATCH] chore: export Colors from Zeplin --- Mastodon/Generated/Assets.swift | 16 +++++++++++++++ .../Contents.json | 20 +++++++++++++++++++ .../Assets.xcassets/Colors/Icon/Contents.json | 9 +++++++++ .../Colors/Icon/photo.colorset/Contents.json | 20 +++++++++++++++++++ .../Colors/Icon/plus.colorset/Contents.json | 20 +++++++++++++++++++ .../Colors/Label/black.colorset/Contents.json | 20 +++++++++++++++++++ .../lightAlertYellow.colorset/Contents.json | 20 +++++++++++++++++++ .../lightBackground.colorset/Contents.json | 20 +++++++++++++++++++ .../lightBrandBlue.colorset/Contents.json | 20 +++++++++++++++++++ .../lightDangerRed.colorset/Contents.json | 20 +++++++++++++++++++ .../lightDarkGray.colorset/Contents.json | 20 +++++++++++++++++++ .../lightDisabled.colorset/Contents.json | 20 +++++++++++++++++++ .../lightInactive.colorset/Contents.json | 20 +++++++++++++++++++ .../lightSecondaryText.colorset/Contents.json | 20 +++++++++++++++++++ .../lightSuccessGreen.colorset/Contents.json | 20 +++++++++++++++++++ .../Colors/lightWhite.colorset/Contents.json | 20 +++++++++++++++++++ 16 files changed, 305 insertions(+) create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/Background/signUp.system.background.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/Icon/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/Icon/photo.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/Icon/plus.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/Label/black.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightAlertYellow.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightBackground.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightBrandBlue.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightDangerRed.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightDarkGray.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightDisabled.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightInactive.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightSecondaryText.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightSuccessGreen.colorset/Contents.json create mode 100644 Mastodon/Resources/Assets.xcassets/Colors/lightWhite.colorset/Contents.json diff --git a/Mastodon/Generated/Assets.swift b/Mastodon/Generated/Assets.swift index 8092d1a75..ba5404992 100644 --- a/Mastodon/Generated/Assets.swift +++ b/Mastodon/Generated/Assets.swift @@ -28,16 +28,32 @@ internal enum Asset { internal enum Colors { internal enum Background { internal static let secondarySystemBackground = ColorAsset(name: "Colors/Background/secondary.system.background") + internal static let signUpSystemBackground = ColorAsset(name: "Colors/Background/signUp.system.background") internal static let systemBackground = ColorAsset(name: "Colors/Background/system.background") internal static let tertiarySystemBackground = ColorAsset(name: "Colors/Background/tertiary.system.background") } internal enum Button { internal static let highlight = ColorAsset(name: "Colors/Button/highlight") } + internal enum Icon { + internal static let photo = ColorAsset(name: "Colors/Icon/photo") + internal static let plus = ColorAsset(name: "Colors/Icon/plus") + } internal enum Label { + internal static let black = ColorAsset(name: "Colors/Label/black") internal static let primary = ColorAsset(name: "Colors/Label/primary") internal static let secondary = ColorAsset(name: "Colors/Label/secondary") } + internal static let lightAlertYellow = ColorAsset(name: "Colors/lightAlertYellow") + internal static let lightBackground = ColorAsset(name: "Colors/lightBackground") + internal static let lightBrandBlue = ColorAsset(name: "Colors/lightBrandBlue") + internal static let lightDangerRed = ColorAsset(name: "Colors/lightDangerRed") + internal static let lightDarkGray = ColorAsset(name: "Colors/lightDarkGray") + internal static let lightDisabled = ColorAsset(name: "Colors/lightDisabled") + internal static let lightInactive = ColorAsset(name: "Colors/lightInactive") + internal static let lightSecondaryText = ColorAsset(name: "Colors/lightSecondaryText") + internal static let lightSuccessGreen = ColorAsset(name: "Colors/lightSuccessGreen") + internal static let lightWhite = ColorAsset(name: "Colors/lightWhite") internal static let systemOrange = ColorAsset(name: "Colors/system.orange") } internal enum ToolBar { diff --git a/Mastodon/Resources/Assets.xcassets/Colors/Background/signUp.system.background.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/Background/signUp.system.background.colorset/Contents.json new file mode 100644 index 000000000..838e44e44 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/Background/signUp.system.background.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "232", + "green" : "225", + "red" : "217" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/Icon/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/Icon/Contents.json new file mode 100644 index 000000000..6e965652d --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/Icon/Contents.json @@ -0,0 +1,9 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "provides-namespace" : true + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/Icon/photo.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/Icon/photo.colorset/Contents.json new file mode 100644 index 000000000..d4f558bfd --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/Icon/photo.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "0.300", + "blue" : "67", + "green" : "60", + "red" : "60" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/Icon/plus.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/Icon/plus.colorset/Contents.json new file mode 100644 index 000000000..f783ce00f --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/Icon/plus.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "89", + "green" : "199", + "red" : "25" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/Label/black.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/Label/black.colorset/Contents.json new file mode 100644 index 000000000..95a50e5d3 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/Label/black.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0", + "green" : "0", + "red" : "0" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightAlertYellow.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightAlertYellow.colorset/Contents.json new file mode 100644 index 000000000..29b7bba3d --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightAlertYellow.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.016", + "green" : "0.561", + "red" : "0.792" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightBackground.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightBackground.colorset/Contents.json new file mode 100644 index 000000000..0e4687fb4 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightBackground.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.910", + "green" : "0.882", + "red" : "0.851" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightBrandBlue.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightBrandBlue.colorset/Contents.json new file mode 100644 index 000000000..2e1ce5f3a --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightBrandBlue.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.851", + "green" : "0.565", + "red" : "0.169" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightDangerRed.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightDangerRed.colorset/Contents.json new file mode 100644 index 000000000..dabccc33e --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightDangerRed.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.353", + "green" : "0.251", + "red" : "0.875" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightDarkGray.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightDarkGray.colorset/Contents.json new file mode 100644 index 000000000..8d54c84c2 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightDarkGray.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.169", + "green" : "0.137", + "red" : "0.122" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightDisabled.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightDisabled.colorset/Contents.json new file mode 100644 index 000000000..78cde95fb --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightDisabled.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.784", + "green" : "0.682", + "red" : "0.608" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightInactive.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightInactive.colorset/Contents.json new file mode 100644 index 000000000..69dc63851 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightInactive.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.549", + "green" : "0.510", + "red" : "0.431" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightSecondaryText.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightSecondaryText.colorset/Contents.json new file mode 100644 index 000000000..5fb782c4f --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightSecondaryText.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "0.600", + "blue" : "0.263", + "green" : "0.235", + "red" : "0.235" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightSuccessGreen.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightSuccessGreen.colorset/Contents.json new file mode 100644 index 000000000..8716dcb74 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightSuccessGreen.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.604", + "green" : "0.741", + "red" : "0.475" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Mastodon/Resources/Assets.xcassets/Colors/lightWhite.colorset/Contents.json b/Mastodon/Resources/Assets.xcassets/Colors/lightWhite.colorset/Contents.json new file mode 100644 index 000000000..a5291a593 --- /dev/null +++ b/Mastodon/Resources/Assets.xcassets/Colors/lightWhite.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.996", + "green" : "1.000", + "red" : "0.996" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +}