Commit f1225166 authored by Elvin Hu's avatar Elvin Hu Committed by Commit Bot

[iOS][WidgetKit] Add assets for the search widget

Bug: 1138715, 1141522, 1141524, 1141523
Change-Id: I6a41af31af14fa20a13ffe93ef99f6ba6fc44a51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488748
Commit-Queue: Elvin Hu <elvinhu@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Reviewed-by: default avatarJavier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821395}
parent 98022581
...@@ -36,6 +36,20 @@ compile_entitlements("entitlements") { ...@@ -36,6 +36,20 @@ compile_entitlements("entitlements") {
ios_appex_bundle("widget_kit_extension") { ios_appex_bundle("widget_kit_extension") {
sources = [] sources = []
deps = [
"resources:widget_actions_row_background_color",
"resources:widget_background_color",
"resources:widget_chrome_logo",
"resources:widget_dino_background",
"resources:widget_dino_background_placeholder",
"resources:widget_incognito_icon",
"resources:widget_qr_icon",
"resources:widget_search_bar_color",
"resources:widget_separator_color",
"resources:widget_text_color",
"resources:widget_voice_search_icon",
]
configs += [ "//build/config/compiler:enable_arc" ] configs += [ "//build/config/compiler:enable_arc" ]
frameworks = [ frameworks = [
......
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/asset_catalog.gni")
imageset("widget_chrome_logo") {
sources = [
"widget_chrome_logo.imageset/Contents.json",
"widget_chrome_logo.imageset/widget_chrome_logo.png",
"widget_chrome_logo.imageset/widget_chrome_logo@2x.png",
"widget_chrome_logo.imageset/widget_chrome_logo@3x.png",
]
}
imageset("widget_dino_background_placeholder") {
sources = [
"widget_dino_background_placeholder.imageset/Contents.json",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_dark.png",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_dark@2x.png",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_dark@3x.png",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_light.png",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_light@2x.png",
"widget_dino_background_placeholder.imageset/widget_dino_background_placeholder_light@3x.png",
]
}
imageset("widget_dino_background") {
sources = [
"widget_dino_background.imageset/Contents.json",
"widget_dino_background.imageset/widget_dino_background_dark.png",
"widget_dino_background.imageset/widget_dino_background_dark@2x.png",
"widget_dino_background.imageset/widget_dino_background_dark@3x.png",
"widget_dino_background.imageset/widget_dino_background_light.png",
"widget_dino_background.imageset/widget_dino_background_light@2x.png",
"widget_dino_background.imageset/widget_dino_background_light@3x.png",
]
}
imageset("widget_incognito_icon") {
sources = [
"widget_incognito_icon.imageset/Contents.json",
"widget_incognito_icon.imageset/widget_incognito_icon_dark.png",
"widget_incognito_icon.imageset/widget_incognito_icon_dark@2x.png",
"widget_incognito_icon.imageset/widget_incognito_icon_dark@3x.png",
"widget_incognito_icon.imageset/widget_incognito_icon_light.png",
"widget_incognito_icon.imageset/widget_incognito_icon_light@2x.png",
"widget_incognito_icon.imageset/widget_incognito_icon_light@3x.png",
]
}
imageset("widget_qr_icon") {
sources = [
"widget_qr_icon.imageset/Contents.json",
"widget_qr_icon.imageset/widget_qr_icon_dark.png",
"widget_qr_icon.imageset/widget_qr_icon_dark@2x.png",
"widget_qr_icon.imageset/widget_qr_icon_dark@3x.png",
"widget_qr_icon.imageset/widget_qr_icon_light.png",
"widget_qr_icon.imageset/widget_qr_icon_light@2x.png",
"widget_qr_icon.imageset/widget_qr_icon_light@3x.png",
]
}
imageset("widget_voice_search_icon") {
sources = [
"widget_voice_search_icon.imageset/Contents.json",
"widget_voice_search_icon.imageset/widget_voice_search_icon_dark.png",
"widget_voice_search_icon.imageset/widget_voice_search_icon_dark@2x.png",
"widget_voice_search_icon.imageset/widget_voice_search_icon_dark@3x.png",
"widget_voice_search_icon.imageset/widget_voice_search_icon_light.png",
"widget_voice_search_icon.imageset/widget_voice_search_icon_light@2x.png",
"widget_voice_search_icon.imageset/widget_voice_search_icon_light@3x.png",
]
}
colorset("widget_actions_row_background_color") {
sources = [ "widget_actions_row_background_color.colorset/Contents.json" ]
}
colorset("widget_search_bar_color") {
sources = [ "widget_search_bar_color.colorset/Contents.json" ]
}
colorset("widget_separator_color") {
sources = [ "widget_separator_color.colorset/Contents.json" ]
}
colorset("widget_text_color") {
sources = [ "widget_text_color.colorset/Contents.json" ]
}
colorset("widget_background_color") {
sources = [ "widget_background_color.colorset/Contents.json" ]
}
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.980",
"green" : "0.976",
"red" : "0.974"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.980",
"green" : "0.976",
"red" : "0.974"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.262",
"green" : "0.250",
"red" : "0.238"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.140",
"green" : "0.129",
"red" : "0.126"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_chrome_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_chrome_logo@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_chrome_logo@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_dino_background_light.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_dark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_dino_background_light@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_dark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_dino_background_light@3x.png",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_dark@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_dino_background_placeholder_light.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_placeholder_dark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_dino_background_placeholder_light@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_placeholder_dark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_dino_background_placeholder_light@3x.png",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_dino_background_placeholder_dark@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_incognito_icon_light.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_incognito_icon_dark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_incognito_icon_light@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_incognito_icon_dark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_incognito_icon_light@3x.png",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_incognito_icon_dark@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_qr_icon_light.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_qr_icon_dark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_qr_icon_light@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_qr_icon_dark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_qr_icon_light@3x.png",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_qr_icon_dark@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.957",
"green" : "0.953",
"red" : "0.946"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.957",
"green" : "0.953",
"red" : "0.946"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.262",
"green" : "0.250",
"red" : "0.238"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.877",
"green" : "0.863",
"red" : "0.856"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
},
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.877",
"green" : "0.863",
"red" : "0.856"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
},
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.262",
"green" : "0.250",
"red" : "0.238"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.928",
"green" : "0.918",
"red" : "0.911"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.928",
"green" : "0.918",
"red" : "0.911"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.406",
"green" : "0.387",
"red" : "0.376"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.406",
"green" : "0.387",
"red" : "0.376"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.406",
"green" : "0.387",
"red" : "0.376"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.774",
"green" : "0.756",
"red" : "0.744"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.000",
"green" : "0.000",
"red" : "0.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
},
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.000",
"green" : "0.000",
"red" : "0.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
},
{
"appearance" : "contrast",
"value" : "high"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "widget_voice_search_icon_light.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_voice_search_icon_dark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "widget_voice_search_icon_light@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_voice_search_icon_dark@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "widget_voice_search_icon_light@3x.png",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "widget_voice_search_icon_dark@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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