Commit 3d33f4f0 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS][Dark mode] Add omnibox popup dark mode colorsets

These colors are all used in the omnibox popup

Bug: 976662
Change-Id: I7b4ed329d069ae341c49a2715f5974cc9f67856b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1735370
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684013}
parent a761ea48
......@@ -4,6 +4,30 @@
import("//build/config/ios/asset_catalog.gni")
colorset("omnibox_suggestion_answer_icon_color") {
sources = [
"omnibox_suggestion_answer_icon_color.colorset/Contents.json",
]
}
colorset("omnibox_suggestion_answer_icon_dark_color") {
sources = [
"omnibox_suggestion_answer_icon_dark_color.colorset/Contents.json",
]
}
colorset("omnibox_suggestion_icon_color") {
sources = [
"omnibox_suggestion_icon_color.colorset/Contents.json",
]
}
colorset("omnibox_suggestion_icon_dark_color") {
sources = [
"omnibox_suggestion_icon_dark_color.colorset/Contents.json",
]
}
imageset("omnibox_popup_tab_match") {
sources = [
"omnibox_popup_tab_match.imageset/Contents.json",
......
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0xFF",
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF"
}
}
},
{
"idiom" : "universal",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0x16",
"alpha" : "1.000",
"blue" : "0xA6",
"green" : "0x4E"
}
}
}
]
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0x16",
"alpha" : "1.000",
"blue" : "0xA6",
"green" : "0x4E"
}
}
}
]
}
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0x80",
"alpha" : "1.000",
"blue" : "0x8A",
"green" : "0x86"
}
}
}
]
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0x80",
"alpha" : "1.000",
"blue" : "0x8A",
"green" : "0x86"
}
}
}
]
}
\ No newline at end of file
......@@ -35,6 +35,7 @@ extern NSString* const kRedColor;
// available in iOS 12, any views that should always be dark (e.g. incognito)
// need to use colorsets that always use the dark variant.
// TODO(crbug.com/981889): Clean up after iOS 12 support is dropped.
extern NSString* const kBackgroundDarkColor;
extern NSString* const kTableViewRowHighlightDarkColor;
extern NSString* const kTextPrimaryDarkColor;
......
......@@ -26,6 +26,7 @@ NSString* const kGreenColor = @"green_color";
NSString* const kRedColor = @"red_color";
// Temporary for iOS 12
NSString* const kBackgroundDarkColor = @"background_dark_color";
NSString* const kTableViewRowHighlightDarkColor =
@"table_view_row_highlight_dark_color";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment