diff --git a/ios/chrome/browser/ui/omnibox/popup/shared/popup_match_row_view.swift b/ios/chrome/browser/ui/omnibox/popup/shared/popup_match_row_view.swift index d752d0df49b768..9c6f094fd236e7 100644 --- a/ios/chrome/browser/ui/omnibox/popup/shared/popup_match_row_view.swift +++ b/ios/chrome/browser/ui/omnibox/popup/shared/popup_match_row_view.swift @@ -138,7 +138,7 @@ struct PopupMatchRowView: View { if isHighlighted { LinearGradient(gradient: Colors.highlightingGradient, startPoint: .top, endPoint: .bottom) } else if self.isPressed { - Color.tableRowViewHighlight + Color.updatedTertiaryBackground } button diff --git a/ios/chrome/common/ui/colors/Color+Chrome.swift b/ios/chrome/common/ui/colors/Color+Chrome.swift index 3799f6ef2dab0b..5d19f054fc1fcb 100644 --- a/ios/chrome/common/ui/colors/Color+Chrome.swift +++ b/ios/chrome/common/ui/colors/Color+Chrome.swift @@ -21,6 +21,11 @@ extension Color { return Color(kTertiaryBackgroundColor) } + /// The updated tertiary background color + public static var updatedTertiaryBackground: Color { + return Color(kUpdatedTertiaryBackgroundColor) + } + /// The primary grouped background color. public static var groupedPrimaryBackground: Color { return Color(kGroupedPrimaryBackgroundColor) diff --git a/ios/chrome/common/ui/colors/resources/BUILD.gn b/ios/chrome/common/ui/colors/resources/BUILD.gn index 9e43fc076eb07d..aac54c901ee2f3 100644 --- a/ios/chrome/common/ui/colors/resources/BUILD.gn +++ b/ios/chrome/common/ui/colors/resources/BUILD.gn @@ -51,6 +51,7 @@ group("resources") { ":textfield_placeholder_color", ":toolbar_button_color", ":toolbar_shadow_color", + ":updated_tertiary_background_color", ] } @@ -178,6 +179,10 @@ colorset("tertiary_background_color") { sources = [ "tertiary_background_color.colorset/Contents.json" ] } +colorset("updated_tertiary_background_color") { + sources = [ "updated_tertiary_background_color.colorset/Contents.json" ] +} + colorset("text_tertiary_color") { sources = [ "text_tertiary_color.colorset/Contents.json" ] } diff --git a/ios/chrome/common/ui/colors/resources/updated_tertiary_background_color.colorset/Contents.json b/ios/chrome/common/ui/colors/resources/updated_tertiary_background_color.colorset/Contents.json new file mode 100644 index 00000000000000..1aa353009d983f --- /dev/null +++ b/ios/chrome/common/ui/colors/resources/updated_tertiary_background_color.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "info": { + "version": 1, + "author": "xcode" + }, + "colors": [ + { + "idiom": "universal", + "color": { + "color-space": "display-p3", + "components": { + "alpha": "1.000", + "red": "0xDA", + "green": "0xDC", + "blue": "0xE0" + } + } + }, + { + "idiom": "universal", + "appearances": [ + { + "appearance": "luminosity", + "value": "dark" + } + ], + "color": { + "color-space": "display-p3", + "components": { + "alpha": "1.000", + "red": "0x46", + "green": "0x4A", + "blue": "0x4E" + } + } + } + ] +} diff --git a/ios/chrome/common/ui/colors/semantic_color_names.h b/ios/chrome/common/ui/colors/semantic_color_names.h index f613ddd3c78d21..d041316af75c45 100644 --- a/ios/chrome/common/ui/colors/semantic_color_names.h +++ b/ios/chrome/common/ui/colors/semantic_color_names.h @@ -35,6 +35,7 @@ extern NSString* const kSeparatorColor; extern NSString* const kSolidButtonTextColor; extern NSString* const kTableViewRowHighlightColor; extern NSString* const kTertiaryBackgroundColor; +extern NSString* const kUpdatedTertiaryBackgroundColor; extern NSString* const kTextPrimaryColor; extern NSString* const kTextSecondaryColor; extern NSString* const kTextTertiaryColor; diff --git a/ios/chrome/common/ui/colors/semantic_color_names.mm b/ios/chrome/common/ui/colors/semantic_color_names.mm index 3936979784a1e7..06d34ec53ca410 100644 --- a/ios/chrome/common/ui/colors/semantic_color_names.mm +++ b/ios/chrome/common/ui/colors/semantic_color_names.mm @@ -28,6 +28,8 @@ NSString* const kSolidButtonTextColor = @"solid_button_text_color"; NSString* const kTableViewRowHighlightColor = @"table_view_row_highlight_color"; NSString* const kTertiaryBackgroundColor = @"tertiary_background_color"; +NSString* const kUpdatedTertiaryBackgroundColor = + @"updated_tertiary_background_color"; NSString* const kTextPrimaryColor = @"text_primary_color"; NSString* const kTextSecondaryColor = @"text_secondary_color"; NSString* const kTextTertiaryColor = @"text_tertiary_color";