From 18e313fbe4297cac672e741056a5148e8179c90b Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Sun, 18 Dec 2022 14:53:28 +0100 Subject: [PATCH] Set color for privacy-cells (#690) Also: Make light blurple the dark-mode-version of blurple --- .../Privacy/PrivacyTableViewController.swift | 1 + .../Brand/Blurple.colorset/Contents.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Mastodon/Scene/Onboarding/Privacy/PrivacyTableViewController.swift b/Mastodon/Scene/Onboarding/Privacy/PrivacyTableViewController.swift index 6c10ed23d..e0b6612e6 100644 --- a/Mastodon/Scene/Onboarding/Privacy/PrivacyTableViewController.swift +++ b/Mastodon/Scene/Onboarding/Privacy/PrivacyTableViewController.swift @@ -113,6 +113,7 @@ extension PrivacyTableViewController: UITableViewDataSource { let row = viewModel.rows[indexPath.row] var contentConfiguration = cell.defaultContentConfiguration() + contentConfiguration.textProperties.color = Asset.Colors.Brand.blurple.color contentConfiguration.text = row.title cell.contentConfiguration = contentConfiguration diff --git a/MastodonSDK/Sources/MastodonAsset/Assets.xcassets/Colors/Brand/Blurple.colorset/Contents.json b/MastodonSDK/Sources/MastodonAsset/Assets.xcassets/Colors/Brand/Blurple.colorset/Contents.json index a7c6e8e3e..b5fa84db1 100644 --- a/MastodonSDK/Sources/MastodonAsset/Assets.xcassets/Colors/Brand/Blurple.colorset/Contents.json +++ b/MastodonSDK/Sources/MastodonAsset/Assets.xcassets/Colors/Brand/Blurple.colorset/Contents.json @@ -11,6 +11,24 @@ } }, "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xFA", + "green" : "0x8A", + "red" : "0x85" + } + }, + "idiom" : "universal" } ], "info" : {