From 55e883318d8582cbaea0cbfffb4e502dbac5e949 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 17 Nov 2020 23:46:03 -0500 Subject: [PATCH] Set an app accent color on macOS 11 --- Transmission.xcodeproj/project.pbxproj | 3 ++ .../Accent Color.colorset/Contents.json | 38 +++++++++++++++++++ macosx/Images/Images.xcassets/Contents.json | 6 +-- 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 macosx/Images/Images.xcassets/Accent Color.colorset/Contents.json diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index dcc88ad80..3e029c3ff 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -3047,6 +3047,7 @@ 0053D3DA0C86774200545606 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "Accent Color"; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; @@ -3193,6 +3194,7 @@ 4DF0C59D089918A300DD8943 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "Accent Color"; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; @@ -3273,6 +3275,7 @@ A250CFEB0CDA19680068B4B6 /* Release - Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = "Accent Color"; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; diff --git a/macosx/Images/Images.xcassets/Accent Color.colorset/Contents.json b/macosx/Images/Images.xcassets/Accent Color.colorset/Contents.json new file mode 100644 index 000000000..dc5a28c23 --- /dev/null +++ b/macosx/Images/Images.xcassets/Accent Color.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "19", + "green" : "36", + "red" : "224" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "display-p3", + "components" : { + "alpha" : "1.000", + "blue" : "20", + "green" : "37", + "red" : "234" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macosx/Images/Images.xcassets/Contents.json b/macosx/Images/Images.xcassets/Contents.json index da4a164c9..73c00596a 100644 --- a/macosx/Images/Images.xcassets/Contents.json +++ b/macosx/Images/Images.xcassets/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +}