From c5a0f177777b4ee07db38af1fbfd3e6b61b5114b Mon Sep 17 00:00:00 2001 From: Joseph Woo Date: Thu, 19 Nov 2020 16:13:48 -0800 Subject: [PATCH] Jwoo/ios luminosity (#5089) * Updated luminosity * fixed luminosity issue on container styles * Updated contrast values Co-authored-by: RebeccaAnne --- .../CustomParsingTestUsingProgressBar.json | 6 +- .../ADCIOSVisualizer/resources/sample.json | 237 ++++++++++-------- .../AdaptiveCards/ACRDatePicker.xib | 13 +- 3 files changed, 143 insertions(+), 113 deletions(-) diff --git a/samples/v1.0/Tests/CustomParsingTestUsingProgressBar.json b/samples/v1.0/Tests/CustomParsingTestUsingProgressBar.json index 874c9fca78..ef1c94b896 100644 --- a/samples/v1.0/Tests/CustomParsingTestUsingProgressBar.json +++ b/samples/v1.0/Tests/CustomParsingTestUsingProgressBar.json @@ -18,9 +18,9 @@ "type": "ProgressBar", "payload": [ { - "red":187, - "green":160, - "blue":209, + "red":168, + "green":123, + "blue":180, "alpha":1, "progress":0.95, "thickness":1 diff --git a/source/ios/AdaptiveCards/ADCIOSVisualizer/resources/sample.json b/source/ios/AdaptiveCards/ADCIOSVisualizer/resources/sample.json index 6f6a89172d..a69e74fd3c 100644 --- a/source/ios/AdaptiveCards/ADCIOSVisualizer/resources/sample.json +++ b/source/ios/AdaptiveCards/ADCIOSVisualizer/resources/sample.json @@ -1,9 +1,21 @@ { + "spacing": { + "small": 3, + "default": 8, + "medium": 20, + "large": 30, + "extraLarge": 40, + "padding": 10 + }, + "separator": { + "lineThickness": 1, + "lineColor": "#EEEEEE" + }, "supportsInteractivity": true, "imageBaseUrl": "https://pbs.twimg.com/profile_images/3647943215/", "fontTypes": { "default": { - "fontFamily": "San Francisco", + "fontFamily": "'Segoe UI', 'sans-serif', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue'", "fontSizes": { "small": 12, "default": 14, @@ -18,7 +30,7 @@ } }, "monospace": { - "fontFamily": "Courier New", + "fontFamily": "'Courier New', Courier, monospace", "fontSizes": { "small": 12, "default": 14, @@ -33,179 +45,202 @@ } } }, - "imageSizes": { - "small": 40, - "medium": 80, - "large": 160 - }, "containerStyles": { "default": { + "backgroundColor": "#FFFFFF", "foregroundColors": { "default": { - "default": "#333333", - "subtle": "#EE333333" + "default": "#000000", + "subtle": "#6f6f6f" }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#0063B1", + "subtle": "#007AB0" + }, + "attention": { + "default": "#EC130E", + "subtle": "#DDEC130E" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#0B7814", + "subtle": "#DD028A02" + }, + "light": { + "default": "#646464", + "subtle": "#767676" }, "warning": { "default": "#B75C00", "subtle": "#DDB75C00" - }, - "attention": { - "default": "#FF0000", - "subtle": "#DDFF0000" } - }, - "backgroundColor": "#EAEAEA" + } }, "emphasis": { + "backgroundColor": "#EFEFEF", "foregroundColors": { "default": { - "default": "#333333", - "subtle": "#EE333333" + "default": "#000000", + "subtle": "#6f6f6f" }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#4A54F0", + "subtle": "#881F6BF1" + }, + "attention": { + "default": "#C42C07", + "subtle": "#DDE31B13" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#0B7814", + "subtle": "#DD0D860A" }, "warning": { - "default": "#B75C00", - "subtle": "#DDB75C00" + "default": "#935A10", + "subtle": "#DDBD5400" }, - "attention": { - "default": "#ED0000", - "subtle": "#DDED0000" + "light": { + "default": "#575757", + "subtle": "#DD737373" } - }, - "backgroundColor": "#08000000", - "borderColor": "#FF000000", - "borderThickness": 1 + } }, - "good": { + "accent": { + "backgroundColor": "#D7E7FA", "foregroundColors": { "default": { "default": "#333333", "subtle": "#EE333333" }, + "dark": { + "default": "#000000", + "subtle": "#66000000" + }, + "light": { + "default": "#646464", + "subtle": "#33646464" + }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#145FDD", + "subtle": "#88145FDD" + }, + "attention": { + "default": "#C42C07", + "subtle": "#DDC42C07" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#0B7814", + "subtle": "#DD0B7814" }, "warning": { - "default": "#B75C00", - "subtle": "#DDB75C00" - }, - "attention": { - "default": "#ED0000", - "subtle": "#DDED0000" + "default": "#935A10", + "subtle": "#DD935A10" } - }, - "backgroundColor": "#DD027502" + } }, - "warning": { + "good": { + "backgroundColor": "#CCFFCC", "foregroundColors": { "default": { "default": "#333333", "subtle": "#EE333333" }, + "dark": { + "default": "#000000", + "subtle": "#66000000" + }, + "light": { + "default": "#6E6E6E", + "subtle": "#336E6E6E" + }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#2168E4", + "subtle": "#882168E4" + }, + "attention": { + "default": "#CC3300", + "subtle": "#DDCC3300" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#0F8109", + "subtle": "#DD0F8109" }, "warning": { - "default": "#B75C00", - "subtle": "#DDB75C00" - }, - "attention": { - "default": "#ED0000", - "subtle": "#DDED0000" + "default": "#9A630D", + "subtle": "#DD9A630D" } - }, - "backgroundColor": "#DDB75C00" + } }, "attention": { + "backgroundColor": "#FFC5B2", "foregroundColors": { "default": { "default": "#333333", "subtle": "#EE333333" }, + "dark": { + "default": "#000000", + "subtle": "#66000000" + }, + "light": { + "default": "#5A5A5A", + "subtle": "#335A5A5A" + }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#0854C5", + "subtle": "#880854C5" + }, + "attention": { + "default": "#A92E0E", + "subtle": "#DDA92E0E" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#256824", + "subtle": "#DD256824" }, "warning": { - "default": "#B75C00", - "subtle": "#DDB75C00" - }, - "attention": { - "default": "#ED0000", - "subtle": "#DDED0000" + "default": "#775502", + "subtle": "#DD775502" } - }, - "backgroundColor": "#DDFF0000", - "borderColor": "#FF000000", - "borderThickness": 2 + } }, - "accent": { + "warning": { + "backgroundColor": "#FFE2B2", "foregroundColors": { "default": { "default": "#333333", "subtle": "#EE333333" }, + "dark": { + "default": "#000000", + "subtle": "#66000000" + }, + "light": { + "default": "#646464", + "subtle": "#33646464" + }, "accent": { - "default": "#2E89FC", - "subtle": "#882E89FC" + "default": "#0F60DC", + "subtle": "#880F60DC" + }, + "attention": { + "default": "#BF3505", + "subtle": "#DDBF3505" }, "good": { - "default": "#028A02", - "subtle": "#DD027502" + "default": "#207725", + "subtle": "#DD207725" }, "warning": { - "default": "#B75C00", - "subtle": "#DDB75C00" - }, - "attention": { - "default": "#ED0000", - "subtle": "#DDED0000" + "default": "#866107", + "subtle": "#DD866107" } - }, - "backgroundColor": "#882E89FC", - "borderThickness": 1 + } } }, - "spacing": { - "small": 3, - "default": 8, - "medium": 20, - "large": 30, - "extraLarge": 40, - "padding": 10 - }, - "separator": { - "lineThickness": 1, - "lineColor": "#FF000000" + "imageSizes": { + "small": 40, + "medium": 80, + "large": 160 }, "actions": { "maxActions": 5, @@ -224,8 +259,8 @@ "allowCustomStyle": true }, "imageSet": { - "imageSize": "Medium", - "maxImageHeight": 999 + "imageSize": "medium", + "maxImageHeight": 100 }, "factSet": { "title": { diff --git a/source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRDatePicker.xib b/source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRDatePicker.xib index 5907bbc183..c76130f63d 100644 --- a/source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRDatePicker.xib +++ b/source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRDatePicker.xib @@ -1,11 +1,9 @@ - - - - + + - + @@ -14,10 +12,7 @@ - - - - +