mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6771b17612 | |||
| c9845885f6 | |||
| 16ab1cf6fb | |||
| f8269d2587 | |||
| 5ec769b511 | |||
| aaffd20cda | |||
| 38e39f466b | |||
| e625432f33 | |||
| e19261507e | |||
| 92ebfbe654 | |||
| e68b57dfe6 | |||
| 45bb2e7044 | |||
| 1c903792d3 | |||
| f72d8b763b | |||
| d0c67ff7a3 | |||
| 22c8e702bb | |||
| fe05e0c361 | |||
| 2a3b46b1d8 | |||
| c62576f910 | |||
| 9247351f2a | |||
| 3cf2a3b65c | |||
| 82e76623df |
@@ -59,12 +59,15 @@ runs:
|
||||
|
||||
mkdir -p build/{src,download_cache}
|
||||
|
||||
# fetch soures, expect that patches apply cleanly (or die)
|
||||
run_upstream utils/downloads.py retrieve \
|
||||
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache
|
||||
for file in "$HELIUM_DIR/downloads.ini" "$PLATFORM_DIR/downloads.ini"; do
|
||||
if ! [ -f "$file" ]; then continue; fi
|
||||
|
||||
run_upstream utils/downloads.py unpack \
|
||||
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache build/src
|
||||
run_upstream utils/downloads.py retrieve \
|
||||
-i "$file" -c build/download_cache
|
||||
|
||||
run_upstream utils/downloads.py unpack \
|
||||
-i "$file" -c build/download_cache build/src
|
||||
done
|
||||
|
||||
run_upstream utils/patches.py apply \
|
||||
--no-fuzz build/src "$HELIUM_DIR/patches"
|
||||
|
||||
@@ -1 +1 @@
|
||||
140.0.7339.80
|
||||
140.0.7339.132
|
||||
|
||||
@@ -11,8 +11,8 @@ set -gx QUILT_PATCHES "$REPO_ROOT/patches"
|
||||
set -gx QUILT_PUSH_ARGS "--color=auto"
|
||||
set -gx QUILT_DIFF_OPTS "--show-c-function"
|
||||
set -gx QUILT_PATCH_OPTS "--unified --reject-format=unified"
|
||||
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto --sort"
|
||||
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --sort --strip-trailing-whitespace"
|
||||
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto"
|
||||
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --strip-trailing-whitespace"
|
||||
set -gx QUILT_COLORS "diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
|
||||
set -gx QUILT_SERIES_ARGS "--color=auto"
|
||||
set -gx QUILT_PATCHES_ARGS "--color=auto"
|
||||
|
||||
@@ -17,8 +17,8 @@ export QUILT_PATCHES="$REPO_ROOT/patches"
|
||||
export QUILT_PUSH_ARGS="--color=auto"
|
||||
export QUILT_DIFF_OPTS="--show-c-function"
|
||||
export QUILT_PATCH_OPTS="--unified --reject-format=unified"
|
||||
export QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto --sort"
|
||||
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index --sort --strip-trailing-whitespace"
|
||||
export QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
|
||||
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index --strip-trailing-whitespace"
|
||||
export QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
|
||||
export QUILT_SERIES_ARGS="--color=auto"
|
||||
export QUILT_PATCHES_ARGS="--color=auto"
|
||||
|
||||
@@ -850,6 +850,7 @@ chrome/browser/ash/wallpaper_handlers/google_photos_wallpaper_handlers_unittest.
|
||||
chrome/browser/ash/wallpaper_handlers/sea_pen_fetcher.cc
|
||||
chrome/browser/ash/wallpaper_handlers/wallpaper_handlers.cc
|
||||
chrome/browser/autocomplete/autocomplete_browsertest.cc
|
||||
chrome/browser/autocomplete/chrome_aim_eligibility_service_browsertest.cc
|
||||
chrome/browser/autocomplete/chrome_autocomplete_provider_client_browsertest.cc
|
||||
chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier_unittest.cc
|
||||
chrome/browser/autocomplete/search_provider_unittest.cc
|
||||
|
||||
+4
-2
@@ -1,3 +1,5 @@
|
||||
# Everything that's downloaded after cloning Chromium goes here.
|
||||
# It will not work from main downloads.ini
|
||||
[search_engines_data]
|
||||
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
|
||||
download_filename = nonfree-search-engines-data.tar.gz
|
||||
@@ -5,8 +7,8 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202509081820
|
||||
version = 202509121547
|
||||
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
|
||||
download_filename = onboarding-page-%(version)s.tar.gz
|
||||
sha256 = 4eb5fba49c3ef63af2d9a163cfbff1ccc081e0713034587656aed277544cf35d
|
||||
sha256 = 4b44ba5d434f1925bc45ed2eb966d8d00398513bf56ff3598ea39335a6d9af9c
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
@@ -237,7 +237,7 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/chrome_browser_interface_binders_webui.cc
|
||||
+++ b/chrome/browser/chrome_browser_interface_binders_webui.cc
|
||||
@@ -802,8 +802,6 @@ void PopulateChromeWebUIFrameBinders(
|
||||
@@ -803,8 +803,6 @@ void PopulateChromeWebUIFrameBinders(
|
||||
::mojom::app_service_internals::AppServiceInternalsPageHandler,
|
||||
AppServiceInternalsUI>(map);
|
||||
|
||||
@@ -952,7 +952,7 @@
|
||||
"//services/service_manager/public/cpp",
|
||||
"//services/strings",
|
||||
"//services/test/echo/public/mojom",
|
||||
@@ -8441,7 +8436,6 @@ test("unit_tests") {
|
||||
@@ -8444,7 +8439,6 @@ test("unit_tests") {
|
||||
#
|
||||
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
||||
deps += [
|
||||
@@ -960,7 +960,7 @@
|
||||
"//chrome:packed_resources_integrity_header",
|
||||
"//chrome/browser/apps:icon_standardizer",
|
||||
"//chrome/browser/apps/app_service",
|
||||
@@ -8474,7 +8468,6 @@ test("unit_tests") {
|
||||
@@ -8477,7 +8471,6 @@ test("unit_tests") {
|
||||
"//chrome/browser/profile_resetter:fake_profile_resetter",
|
||||
"//chrome/browser/resource_coordinator:tab_manager_features",
|
||||
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
|
||||
|
||||
@@ -1830,7 +1830,7 @@
|
||||
"//components/safe_browsing/content/browser:safe_browsing_service",
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
"//components/safe_browsing/content/browser/password_protection:test_support",
|
||||
@@ -7112,7 +7111,6 @@ test("unit_tests") {
|
||||
@@ -7114,7 +7113,6 @@ test("unit_tests") {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing:buildflags",
|
||||
"//components/safe_browsing/content/browser",
|
||||
|
||||
@@ -3934,7 +3934,7 @@
|
||||
#include "components/signin/public/base/signin_switches.h"
|
||||
#include "components/signin/public/identity_manager/identity_manager.h"
|
||||
#include "components/signin/public/identity_manager/tribool.h"
|
||||
@@ -350,8 +349,7 @@ void ManagedUserProfileNoticeUI::Initial
|
||||
@@ -351,8 +350,7 @@ void ManagedUserProfileNoticeUI::Initial
|
||||
// Change the text so that the "(Recommended)" label is not shown when the
|
||||
// admin has set merging data as the default option.
|
||||
bool profile_separation_data_migration_settings_optout =
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "components/translate/core/browser/translate_download_manager.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
#include "components/translate/core/browser/translate_prefs.h"
|
||||
@@ -2179,6 +2180,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2183,6 +2184,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
}
|
||||
|
||||
if (CanTranslate(/*menu_logging=*/true)) {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/format_macros.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -568,6 +569,15 @@ AutocompleteController::AutocompleteCont
|
||||
@@ -570,6 +571,15 @@ AutocompleteController::AutocompleteCont
|
||||
steady_state_omnibox_position_(
|
||||
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
|
||||
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
// already owned by the TemplateURLService.
|
||||
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
|
||||
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
|
||||
@@ -27,23 +27,27 @@ KeywordEditorController::KeywordEditorCo
|
||||
@@ -28,23 +28,27 @@ KeywordEditorController::KeywordEditorCo
|
||||
|
||||
KeywordEditorController::~KeywordEditorController() = default;
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
DCHECK(!url.empty());
|
||||
const std::optional<size_t> index =
|
||||
table_model_->IndexOfTemplateURL(template_url);
|
||||
@@ -55,11 +59,13 @@ void KeywordEditorController::ModifyTemp
|
||||
@@ -56,11 +60,13 @@ void KeywordEditorController::ModifyTemp
|
||||
|
||||
// Don't do anything if the entry didn't change.
|
||||
if ((template_url->short_name() == title) &&
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
--- a/components/omnibox/browser/featured_search_provider.cc
|
||||
+++ b/components/omnibox/browser/featured_search_provider.cc
|
||||
@@ -290,20 +290,10 @@ void FeaturedSearchProvider::AddFeatured
|
||||
@@ -290,21 +290,10 @@ void FeaturedSearchProvider::AddFeatured
|
||||
for (TemplateURL* turl : turls) {
|
||||
if (turl->starter_pack_id() > 0 &&
|
||||
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
|
||||
@@ -47,6 +47,7 @@
|
||||
- // Skip @aimode if feature disabled.
|
||||
- if (turl->starter_pack_id() == template_url_starter_pack_data::kAiMode &&
|
||||
- (!omnibox_feature_configs::Toolbelt::Get().enabled ||
|
||||
- !client_->GetAimEligibilityService() ||
|
||||
- !client_->GetAimEligibilityService()->IsAimEligible())) {
|
||||
+ // Disable all Google AI starter pack options
|
||||
+ if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini ||
|
||||
|
||||
@@ -138,7 +138,7 @@ TODO: guard services_page.html with is_mac
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1951,6 +1951,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
|
||||
When enabled, Helium will fetch dictionary files used for spell checking when requested.
|
||||
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
|
||||
+ Allow automatic browser updates
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -2153,7 +2153,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2157,7 +2157,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
@@ -8,7 +8,7 @@
|
||||
if (IsRegionSearchEnabled()) {
|
||||
AppendRegionSearchItem();
|
||||
}
|
||||
@@ -2282,8 +2281,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
@@ -2286,8 +2285,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadingModeItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -18,7 +18,7 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3550,10 +3548,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -3554,10 +3552,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
|
||||
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
|
||||
@@ -31,7 +31,7 @@
|
||||
if (is_checked) {
|
||||
menu_model_.AddCheckItemWithStringId(
|
||||
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
|
||||
@@ -3930,6 +3930,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
@@ -3934,6 +3934,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
|
||||
@@ -32,6 +32,24 @@
|
||||
|
||||
html_source->AddLocalizedString(
|
||||
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
|
||||
--- a/components/regional_capabilities/regional_capabilities_service.cc
|
||||
+++ b/components/regional_capabilities/regional_capabilities_service.cc
|
||||
@@ -164,6 +164,7 @@ std::pair<CountryId, LoadedCountrySource
|
||||
}
|
||||
|
||||
const ProgramSettings* CountryIdToProgram(CountryId country_id) {
|
||||
+ return &kWaffleSettings;
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// TODO(crbug.com/423883216): Update logic to support Android.
|
||||
if (IsInProgramRegion(Program::kTaiyaki, country_id)) {
|
||||
@@ -258,6 +259,7 @@ bool RegionalCapabilitiesService::IsInSe
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::IsInEeaCountry() {
|
||||
+ return true;
|
||||
// Feature behaviour was directly based on the current country, as a
|
||||
// decentralised way to express a concept we are now framing as "program
|
||||
// settings". Here we check for the program reference directly as command line
|
||||
--- a/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
@@ -55,7 +55,7 @@ void ShufflePrepopulatedEngines(std::vec
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
+ Allow downloading dictionary files for spell checking
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
|
||||
+ When enabled, Helium will fetch dictionary files used for spell checking when requested.
|
||||
+ Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
|
||||
Use your own instance of Helium services
|
||||
|
||||
@@ -1,14 +1,68 @@
|
||||
--- a/components/policy/core/common/helium_opinionated_policy_provider.cc
|
||||
+++ b/components/policy/core/common/helium_opinionated_policy_provider.cc
|
||||
@@ -25,6 +25,11 @@ void HopProvider::RefreshPolicies(Policy
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "components/policy/core/common/policy_bundle.h"
|
||||
#include "components/policy/core/common/policy_types.h"
|
||||
#include "components/policy/policy_constants.h"
|
||||
+#include "components/helium_services/extension_ids.h"
|
||||
|
||||
namespace policy {
|
||||
void Set(PolicyMap& map, const std::string& name, PolicyLevel level, base::Value value) {
|
||||
@@ -25,6 +26,11 @@ void HopProvider::RefreshPolicies(Policy
|
||||
Set(policy_map, policy::key::kPasswordManagerEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
Set(policy_map, policy::key::kPasswordManagerPasskeysEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
|
||||
+ base::Value::List preinstalled_extensions;
|
||||
+ preinstalled_extensions.Append("cjpalhdlnbpafiamejdnhcphjbkeiagm"); // uBlock Origin
|
||||
+ preinstalled_extensions.Append(kUBlockOriginId); // uBlock Origin
|
||||
+ Set(policy_map, key::kExtensionInstallForcelist, POLICY_LEVEL_RECOMMENDED,
|
||||
+ base::Value(std::move(preinstalled_extensions)));
|
||||
+
|
||||
UpdatePolicy(std::move(bundle));
|
||||
}
|
||||
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/extension_ids.h
|
||||
@@ -0,0 +1,11 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+#ifndef COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
|
||||
+#define COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
|
||||
+
|
||||
+inline constexpr char kUBlockOriginId[] =
|
||||
+ "cjpalhdlnbpafiamejdnhcphjbkeiagm";
|
||||
+
|
||||
+#endif /* COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_ */
|
||||
--- a/extensions/browser/extension_prefs.cc
|
||||
+++ b/extensions/browser/extension_prefs.cc
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "build/build_config.h"
|
||||
#include "components/content_settings/core/common/content_settings.h"
|
||||
#include "components/crx_file/id_util.h"
|
||||
+#include "components/helium_services/extension_ids.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "components/supervised_user/core/common/buildflags.h"
|
||||
@@ -707,11 +708,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
|
||||
std::string_view pref_key,
|
||||
bool* out_value) const {
|
||||
const base::Value::Dict* ext = GetExtensionPref(extension_id);
|
||||
- if (!ext) {
|
||||
- return false;
|
||||
+ std::optional<bool> value;
|
||||
+
|
||||
+ if (ext) {
|
||||
+ value = ext->FindBoolByDottedPath(pref_key);
|
||||
+ }
|
||||
+
|
||||
+ if (!value.has_value()
|
||||
+ && extension_id == kUBlockOriginId
|
||||
+ && pref_key == kPrefIncognitoEnabled) {
|
||||
+ value = true;
|
||||
}
|
||||
|
||||
- std::optional<bool> value = ext->FindBoolByDottedPath(pref_key);
|
||||
if (!value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -240,7 +240,7 @@
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT" desc="Name of the control which resets a browser setting back to the default value">
|
||||
Reset to default
|
||||
</message>
|
||||
- <if expr="not is_linux">
|
||||
+ <if expr="True">
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
|
||||
Reset to default theme
|
||||
</message>
|
||||
@@ -269,6 +269,9 @@
|
||||
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
|
||||
Automatically pin new tab groups created on any device to the bookmarks bar
|
||||
|
||||
@@ -36,3 +36,22 @@
|
||||
</settings-safety-hub-module>
|
||||
</template>
|
||||
<div class="cr-row first">
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
@@ -22,16 +22,6 @@
|
||||
</settings-section>
|
||||
</template>
|
||||
|
||||
- <template is="dom-if" if="[[showPage_(pageVisibility_.safetyHub)]]">
|
||||
- <template is="dom-if" if="[[renderView_(
|
||||
- routes_.PRIVACY, currentRoute, inSearchMode)]]">
|
||||
- <settings-section slot="view" id="safetyHubEntryPoint"
|
||||
- page-title="$i18n{safetyHub}">
|
||||
- <settings-safety-hub-entry-point></settings-safety-hub-entry-point>
|
||||
- </settings-section>
|
||||
- </template>
|
||||
- </template>
|
||||
-
|
||||
<template is="dom-if" if="[[renderOldView_(currentRoute, inSearchMode)]]">
|
||||
<!-- TODO(crbug.com/424223101): Remove <settings-basic-page> once all UIs
|
||||
have been migrated to standalone views. -->
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "third_party/omnibox_proto/types.pb.h"
|
||||
|
||||
class ClipboardProvider;
|
||||
@@ -551,6 +552,8 @@ class AutocompleteController : public Au
|
||||
@@ -553,6 +554,8 @@ class AutocompleteController : public Au
|
||||
// A list of all providers.
|
||||
Providers providers_;
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
raw_ptr<HistoryQuickProvider> history_quick_provider_;
|
||||
--- a/components/omnibox/browser/autocomplete_controller.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.cc
|
||||
@@ -92,6 +92,7 @@
|
||||
@@ -94,6 +94,7 @@
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
#include "components/search_engines/search_engine_type.h"
|
||||
#include "components/search_engines/template_url.h"
|
||||
@@ -59,7 +59,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -1914,7 +1915,21 @@ void AutocompleteController::UpdateKeywo
|
||||
@@ -1916,7 +1917,21 @@ void AutocompleteController::UpdateKeywo
|
||||
// - For contextual search matches, the description indicates the
|
||||
// alternative UX because they're opened in the side panel.
|
||||
i->description = template_url->AdjustedShortNameForLocaleDirection();
|
||||
|
||||
@@ -0,0 +1,422 @@
|
||||
--- a/ui/color/ref_color_mixer.cc
|
||||
+++ b/ui/color/ref_color_mixer.cc
|
||||
@@ -25,107 +25,107 @@ namespace ui {
|
||||
void AddBaselinePalette(ColorProvider* provider) {
|
||||
ColorMixer& mixer = provider->AddMixer();
|
||||
mixer[kColorRefPrimary0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefPrimary10] = {SkColorSetRGB(0x04, 0x1E, 0x49)};
|
||||
- mixer[kColorRefPrimary20] = {SkColorSetRGB(0x06, 0x2E, 0x6F)};
|
||||
- mixer[kColorRefPrimary25] = {SkColorSetRGB(0x07, 0x38, 0x88)};
|
||||
- mixer[kColorRefPrimary30] = {SkColorSetRGB(0x08, 0x42, 0xA0)};
|
||||
- mixer[kColorRefPrimary40] = {SkColorSetRGB(0x0B, 0x57, 0xD0)};
|
||||
- mixer[kColorRefPrimary50] = {SkColorSetRGB(0x1B, 0x6E, 0xF3)};
|
||||
- mixer[kColorRefPrimary60] = {SkColorSetRGB(0x4C, 0x8D, 0xF6)};
|
||||
- mixer[kColorRefPrimary70] = {SkColorSetRGB(0x7C, 0xAC, 0xF8)};
|
||||
- mixer[kColorRefPrimary80] = {SkColorSetRGB(0xA8, 0xC7, 0xFA)};
|
||||
- mixer[kColorRefPrimary90] = {SkColorSetRGB(0xD3, 0xE3, 0xFD)};
|
||||
- mixer[kColorRefPrimary95] = {SkColorSetRGB(0xEC, 0xF3, 0xFE)};
|
||||
- mixer[kColorRefPrimary99] = {SkColorSetRGB(0xFA, 0xFB, 0xFF)};
|
||||
+ mixer[kColorRefPrimary10] = {SkColorSetRGB(0x00, 0x12, 0x56)};
|
||||
+ mixer[kColorRefPrimary20] = {SkColorSetRGB(0x00, 0x23, 0x89)};
|
||||
+ mixer[kColorRefPrimary25] = {SkColorSetRGB(0x02, 0x2C, 0xA3)};
|
||||
+ mixer[kColorRefPrimary30] = {SkColorSetRGB(0x1A, 0x39, 0xAE)};
|
||||
+ mixer[kColorRefPrimary40] = {SkColorSetRGB(0x39, 0x54, 0xC6)};
|
||||
+ mixer[kColorRefPrimary50] = {SkColorSetRGB(0x54, 0x6E, 0xE1)};
|
||||
+ mixer[kColorRefPrimary60] = {SkColorSetRGB(0x6F, 0x88, 0xFD)};
|
||||
+ mixer[kColorRefPrimary70] = {SkColorSetRGB(0x94, 0xA6, 0xFF)};
|
||||
+ mixer[kColorRefPrimary80] = {SkColorSetRGB(0xB9, 0xC3, 0xFF)};
|
||||
+ mixer[kColorRefPrimary90] = {SkColorSetRGB(0xDD, 0xE1, 0xFF)};
|
||||
+ mixer[kColorRefPrimary95] = {SkColorSetRGB(0xF0, 0xEF, 0xFF)};
|
||||
+ mixer[kColorRefPrimary99] = {SkColorSetRGB(0xFE, 0xFB, 0xFF)};
|
||||
mixer[kColorRefPrimary100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
|
||||
mixer[kColorRefSecondary0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefSecondary10] = {SkColorSetRGB(0x00, 0x1D, 0x35)};
|
||||
- mixer[kColorRefSecondary12] = {SkColorSetRGB(0x00, 0x22, 0x38)};
|
||||
- mixer[kColorRefSecondary15] = {SkColorSetRGB(0x00, 0x28, 0x45)};
|
||||
- mixer[kColorRefSecondary20] = {SkColorSetRGB(0x00, 0x33, 0x55)};
|
||||
- mixer[kColorRefSecondary25] = {SkColorSetRGB(0x00, 0x3f, 0x66)};
|
||||
- mixer[kColorRefSecondary30] = {SkColorSetRGB(0x00, 0x4A, 0x77)};
|
||||
- mixer[kColorRefSecondary35] = {SkColorSetRGB(0x00, 0x57, 0x89)};
|
||||
- mixer[kColorRefSecondary40] = {SkColorSetRGB(0x00, 0x63, 0x9B)};
|
||||
- mixer[kColorRefSecondary50] = {SkColorSetRGB(0x04, 0x7D, 0xB7)};
|
||||
- mixer[kColorRefSecondary60] = {SkColorSetRGB(0x39, 0x98, 0xD3)};
|
||||
- mixer[kColorRefSecondary70] = {SkColorSetRGB(0x5A, 0xB3, 0xF0)};
|
||||
- mixer[kColorRefSecondary80] = {SkColorSetRGB(0x7F, 0xCF, 0xFF)};
|
||||
- mixer[kColorRefSecondary90] = {SkColorSetRGB(0xC2, 0xE7, 0xFF)};
|
||||
- mixer[kColorRefSecondary95] = {SkColorSetRGB(0xDF, 0xF3, 0xFF)};
|
||||
- mixer[kColorRefSecondary99] = {SkColorSetRGB(0xF7, 0xFC, 0xFF)};
|
||||
+ mixer[kColorRefSecondary10] = {SkColorSetRGB(0x17, 0x1B, 0x2C)};
|
||||
+ mixer[kColorRefSecondary12] = {SkColorSetRGB(0x1B, 0x1F, 0x30)};
|
||||
+ mixer[kColorRefSecondary15] = {SkColorSetRGB(0x21, 0x25, 0x37)};
|
||||
+ mixer[kColorRefSecondary20] = {SkColorSetRGB(0x2C, 0x2F, 0x42)};
|
||||
+ mixer[kColorRefSecondary25] = {SkColorSetRGB(0x37, 0x3A, 0x4D)};
|
||||
+ mixer[kColorRefSecondary30] = {SkColorSetRGB(0x42, 0x46, 0x59)};
|
||||
+ mixer[kColorRefSecondary35] = {SkColorSetRGB(0x4E, 0x51, 0x65)};
|
||||
+ mixer[kColorRefSecondary40] = {SkColorSetRGB(0x5A, 0x5D, 0x72)};
|
||||
+ mixer[kColorRefSecondary50] = {SkColorSetRGB(0x73, 0x76, 0x8B)};
|
||||
+ mixer[kColorRefSecondary60] = {SkColorSetRGB(0x8D, 0x8F, 0xA6)};
|
||||
+ mixer[kColorRefSecondary70] = {SkColorSetRGB(0xA7, 0xAA, 0xC1)};
|
||||
+ mixer[kColorRefSecondary80] = {SkColorSetRGB(0xC3, 0xC5, 0xDD)};
|
||||
+ mixer[kColorRefSecondary90] = {SkColorSetRGB(0xDF, 0xE1, 0xF9)};
|
||||
+ mixer[kColorRefSecondary95] = {SkColorSetRGB(0xF0, 0xEF, 0xFF)};
|
||||
+ mixer[kColorRefSecondary99] = {SkColorSetRGB(0xFE, 0xFB, 0xFF)};
|
||||
mixer[kColorRefSecondary100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
|
||||
mixer[kColorRefTertiary0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefTertiary10] = {SkColorSetRGB(0x07, 0x27, 0x11)};
|
||||
- mixer[kColorRefTertiary20] = {SkColorSetRGB(0x0A, 0x38, 0x18)};
|
||||
- mixer[kColorRefTertiary30] = {SkColorSetRGB(0x0F, 0x52, 0x23)};
|
||||
- mixer[kColorRefTertiary40] = {SkColorSetRGB(0x14, 0x6C, 0x2E)};
|
||||
- mixer[kColorRefTertiary50] = {SkColorSetRGB(0x19, 0x86, 0x39)};
|
||||
- mixer[kColorRefTertiary60] = {SkColorSetRGB(0x1E, 0xA4, 0x46)};
|
||||
- mixer[kColorRefTertiary70] = {SkColorSetRGB(0x37, 0xBE, 0x5F)};
|
||||
- mixer[kColorRefTertiary80] = {SkColorSetRGB(0x6D, 0xD5, 0x8C)};
|
||||
- mixer[kColorRefTertiary90] = {SkColorSetRGB(0xC4, 0xEE, 0xD0)};
|
||||
- mixer[kColorRefTertiary95] = {SkColorSetRGB(0xE7, 0xF8, 0xED)};
|
||||
- mixer[kColorRefTertiary99] = {SkColorSetRGB(0xF2, 0xFF, 0xEE)};
|
||||
+ mixer[kColorRefTertiary10] = {SkColorSetRGB(0x13, 0x1A, 0x33)};
|
||||
+ mixer[kColorRefTertiary20] = {SkColorSetRGB(0x28, 0x2F, 0x49)};
|
||||
+ mixer[kColorRefTertiary30] = {SkColorSetRGB(0x3E, 0x46, 0x61)};
|
||||
+ mixer[kColorRefTertiary40] = {SkColorSetRGB(0x56, 0x5D, 0x7A)};
|
||||
+ mixer[kColorRefTertiary50] = {SkColorSetRGB(0x6F, 0x76, 0x94)};
|
||||
+ mixer[kColorRefTertiary60] = {SkColorSetRGB(0x88, 0x8F, 0xAE)};
|
||||
+ mixer[kColorRefTertiary70] = {SkColorSetRGB(0xA3, 0xAA, 0xCA)};
|
||||
+ mixer[kColorRefTertiary80] = {SkColorSetRGB(0xBE, 0xC5, 0xE6)};
|
||||
+ mixer[kColorRefTertiary90] = {SkColorSetRGB(0xDC, 0xE1, 0xFF)};
|
||||
+ mixer[kColorRefTertiary95] = {SkColorSetRGB(0xEF, 0xF0, 0xFF)};
|
||||
+ mixer[kColorRefTertiary99] = {SkColorSetRGB(0xFE, 0xFB, 0xFF)};
|
||||
mixer[kColorRefTertiary100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
|
||||
mixer[kColorRefError0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefError10] = {SkColorSetRGB(0x41, 0x0E, 0x0B)};
|
||||
- mixer[kColorRefError20] = {SkColorSetRGB(0x60, 0x14, 0x10)};
|
||||
- mixer[kColorRefError30] = {SkColorSetRGB(0x8C, 0x1D, 0x18)};
|
||||
- mixer[kColorRefError40] = {SkColorSetRGB(0xB3, 0x26, 0x1E)};
|
||||
- mixer[kColorRefError50] = {SkColorSetRGB(0xDC, 0x36, 0x2E)};
|
||||
- mixer[kColorRefError60] = {SkColorSetRGB(0xE4, 0x69, 0x62)};
|
||||
- mixer[kColorRefError70] = {SkColorSetRGB(0xEC, 0x92, 0x8E)};
|
||||
- mixer[kColorRefError80] = {SkColorSetRGB(0xF2, 0xB8, 0xB5)};
|
||||
- mixer[kColorRefError90] = {SkColorSetRGB(0xF9, 0xDE, 0xDC)};
|
||||
- mixer[kColorRefError95] = {SkColorSetRGB(0xFC, 0xEE, 0xEE)};
|
||||
- mixer[kColorRefError99] = {SkColorSetRGB(0xFF, 0xFB, 0xF9)};
|
||||
+ mixer[kColorRefError10] = {SkColorSetRGB(0x41, 0x00, 0x02)};
|
||||
+ mixer[kColorRefError20] = {SkColorSetRGB(0x69, 0x00, 0x05)};
|
||||
+ mixer[kColorRefError30] = {SkColorSetRGB(0x93, 0x00, 0x0A)};
|
||||
+ mixer[kColorRefError40] = {SkColorSetRGB(0xBA, 0x1A, 0x1A)};
|
||||
+ mixer[kColorRefError50] = {SkColorSetRGB(0xDE, 0x37, 0x30)};
|
||||
+ mixer[kColorRefError60] = {SkColorSetRGB(0xFF, 0x54, 0x49)};
|
||||
+ mixer[kColorRefError70] = {SkColorSetRGB(0xFF, 0x89, 0x7D)};
|
||||
+ mixer[kColorRefError80] = {SkColorSetRGB(0xFF, 0xB4, 0xAB)};
|
||||
+ mixer[kColorRefError90] = {SkColorSetRGB(0xFF, 0xDA, 0xD6)};
|
||||
+ mixer[kColorRefError95] = {SkColorSetRGB(0xFF, 0xED, 0xEA)};
|
||||
+ mixer[kColorRefError99] = {SkColorSetRGB(0xFF, 0xFB, 0xFF)};
|
||||
mixer[kColorRefError100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
|
||||
mixer[kColorRefNeutral0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefNeutral4] = {SkColorSetRGB(0x0E, 0x0E, 0x0F)};
|
||||
- mixer[kColorRefNeutral6] = {SkColorSetRGB(0x13, 0x13, 0x14)};
|
||||
- mixer[kColorRefNeutral8] = {SkColorSetRGB(0x16, 0x18, 0x18)};
|
||||
- mixer[kColorRefNeutral10] = {SkColorSetRGB(0x1F, 0x1F, 0x1F)};
|
||||
- mixer[kColorRefNeutral12] = {SkColorSetRGB(0x1F, 0x20, 0x20)};
|
||||
- mixer[kColorRefNeutral15] = {SkColorSetRGB(0x28, 0x28, 0x28)};
|
||||
- mixer[kColorRefNeutral17] = {SkColorSetRGB(0x2A, 0x2A, 0x2A)};
|
||||
- mixer[kColorRefNeutral20] = {SkColorSetRGB(0x30, 0x30, 0x30)};
|
||||
- mixer[kColorRefNeutral22] = {SkColorSetRGB(0x34, 0x35, 0x35)};
|
||||
- mixer[kColorRefNeutral24] = {SkColorSetRGB(0x39, 0x39, 0x39)};
|
||||
- mixer[kColorRefNeutral25] = {SkColorSetRGB(0x3c, 0x3c, 0x3c)};
|
||||
- mixer[kColorRefNeutral30] = {SkColorSetRGB(0x47, 0x47, 0x47)};
|
||||
- mixer[kColorRefNeutral40] = {SkColorSetRGB(0x5E, 0x5E, 0x5E)};
|
||||
- mixer[kColorRefNeutral50] = {SkColorSetRGB(0x75, 0x75, 0x75)};
|
||||
- mixer[kColorRefNeutral60] = {SkColorSetRGB(0x8F, 0x8F, 0x8F)};
|
||||
- mixer[kColorRefNeutral70] = {SkColorSetRGB(0xAB, 0xAB, 0xAB)};
|
||||
- mixer[kColorRefNeutral80] = {SkColorSetRGB(0xC7, 0xC7, 0xC7)};
|
||||
- mixer[kColorRefNeutral87] = {SkColorSetRGB(0xDA, 0xDA, 0xDA)};
|
||||
- mixer[kColorRefNeutral90] = {SkColorSetRGB(0xE3, 0xE3, 0xE3)};
|
||||
- mixer[kColorRefNeutral92] = {SkColorSetRGB(0xE9, 0xE8, 0xE8)};
|
||||
- mixer[kColorRefNeutral94] = {SkColorSetRGB(0xEF, 0xED, 0xED)};
|
||||
- mixer[kColorRefNeutral95] = {SkColorSetRGB(0xF2, 0xF2, 0xF2)};
|
||||
- mixer[kColorRefNeutral96] = {SkColorSetRGB(0xF4, 0xF3, 0xF2)};
|
||||
- mixer[kColorRefNeutral98] = {SkColorSetRGB(0xFA, 0xF9, 0xF8)};
|
||||
- mixer[kColorRefNeutral99] = {SkColorSetRGB(0xFD, 0xFC, 0xFB)};
|
||||
+ mixer[kColorRefNeutral4] = {SkColorSetRGB(0x0C, 0x0E, 0x14)};
|
||||
+ mixer[kColorRefNeutral6] = {SkColorSetRGB(0x11, 0x13, 0x19)};
|
||||
+ mixer[kColorRefNeutral8] = {SkColorSetRGB(0x15, 0x17, 0x1E)};
|
||||
+ mixer[kColorRefNeutral10] = {SkColorSetRGB(0x19, 0x1B, 0x22)};
|
||||
+ mixer[kColorRefNeutral12] = {SkColorSetRGB(0x1D, 0x1F, 0x26)};
|
||||
+ mixer[kColorRefNeutral15] = {SkColorSetRGB(0x24, 0x26, 0x2C)};
|
||||
+ mixer[kColorRefNeutral17] = {SkColorSetRGB(0x28, 0x2A, 0x30)};
|
||||
+ mixer[kColorRefNeutral20] = {SkColorSetRGB(0x2E, 0x30, 0x37)};
|
||||
+ mixer[kColorRefNeutral22] = {SkColorSetRGB(0x33, 0x35, 0x3B)};
|
||||
+ mixer[kColorRefNeutral24] = {SkColorSetRGB(0x37, 0x39, 0x40)};
|
||||
+ mixer[kColorRefNeutral25] = {SkColorSetRGB(0x39, 0x3B, 0x42)};
|
||||
+ mixer[kColorRefNeutral30] = {SkColorSetRGB(0x45, 0x46, 0x4D)};
|
||||
+ mixer[kColorRefNeutral40] = {SkColorSetRGB(0x5D, 0x5E, 0x65)};
|
||||
+ mixer[kColorRefNeutral50] = {SkColorSetRGB(0x75, 0x77, 0x7E)};
|
||||
+ mixer[kColorRefNeutral60] = {SkColorSetRGB(0x8F, 0x90, 0x98)};
|
||||
+ mixer[kColorRefNeutral70] = {SkColorSetRGB(0xAA, 0xAB, 0xB3)};
|
||||
+ mixer[kColorRefNeutral80] = {SkColorSetRGB(0xC5, 0xC6, 0xCE)};
|
||||
+ mixer[kColorRefNeutral87] = {SkColorSetRGB(0xD9, 0xD9, 0xE2)};
|
||||
+ mixer[kColorRefNeutral90] = {SkColorSetRGB(0xE2, 0xE2, 0xEA)};
|
||||
+ mixer[kColorRefNeutral92] = {SkColorSetRGB(0xE7, 0xE7, 0xF0)};
|
||||
+ mixer[kColorRefNeutral94] = {SkColorSetRGB(0xED, 0xED, 0xF6)};
|
||||
+ mixer[kColorRefNeutral95] = {SkColorSetRGB(0xF0, 0xF0, 0xF9)};
|
||||
+ mixer[kColorRefNeutral96] = {SkColorSetRGB(0xF3, 0xF3, 0xFC)};
|
||||
+ mixer[kColorRefNeutral98] = {SkColorSetRGB(0xFA, 0xF8, 0xFF)};
|
||||
+ mixer[kColorRefNeutral99] = {SkColorSetRGB(0xFE, 0xFB, 0xFF)};
|
||||
mixer[kColorRefNeutral100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
|
||||
mixer[kColorRefNeutralVariant0] = {SkColorSetRGB(0x00, 0x00, 0x00)};
|
||||
- mixer[kColorRefNeutralVariant10] = {SkColorSetRGB(0x19, 0x1D, 0x1C)};
|
||||
- mixer[kColorRefNeutralVariant15] = {SkColorSetRGB(0x23, 0x27, 0x26)};
|
||||
- mixer[kColorRefNeutralVariant20] = {SkColorSetRGB(0x2D, 0x31, 0x2F)};
|
||||
- mixer[kColorRefNeutralVariant30] = {SkColorSetRGB(0x44, 0x47, 0x46)};
|
||||
- mixer[kColorRefNeutralVariant40] = {SkColorSetRGB(0x5C, 0x5F, 0x5E)};
|
||||
- mixer[kColorRefNeutralVariant50] = {SkColorSetRGB(0x74, 0x77, 0x75)};
|
||||
- mixer[kColorRefNeutralVariant60] = {SkColorSetRGB(0x8E, 0x91, 0x8F)};
|
||||
- mixer[kColorRefNeutralVariant70] = {SkColorSetRGB(0xA9, 0xAC, 0xAA)};
|
||||
- mixer[kColorRefNeutralVariant80] = {SkColorSetRGB(0xC4, 0xC7, 0xC5)};
|
||||
- mixer[kColorRefNeutralVariant90] = {SkColorSetRGB(0xE1, 0xE3, 0xE1)};
|
||||
- mixer[kColorRefNeutralVariant95] = {SkColorSetRGB(0xEF, 0xF2, 0xEF)};
|
||||
- mixer[kColorRefNeutralVariant99] = {SkColorSetRGB(0xFA, 0xFD, 0xFB)};
|
||||
+ mixer[kColorRefNeutralVariant10] = {SkColorSetRGB(0x13, 0x1A, 0x33)};
|
||||
+ mixer[kColorRefNeutralVariant15] = {SkColorSetRGB(0x1D, 0x25, 0x3E)};
|
||||
+ mixer[kColorRefNeutralVariant20] = {SkColorSetRGB(0x28, 0x2F, 0x49)};
|
||||
+ mixer[kColorRefNeutralVariant30] = {SkColorSetRGB(0x3E, 0x46, 0x61)};
|
||||
+ mixer[kColorRefNeutralVariant40] = {SkColorSetRGB(0x56, 0x5D, 0x7A)};
|
||||
+ mixer[kColorRefNeutralVariant50] = {SkColorSetRGB(0x6F, 0x76, 0x94)};
|
||||
+ mixer[kColorRefNeutralVariant60] = {SkColorSetRGB(0x88, 0x8F, 0xAE)};
|
||||
+ mixer[kColorRefNeutralVariant70] = {SkColorSetRGB(0xA3, 0xAA, 0xCA)};
|
||||
+ mixer[kColorRefNeutralVariant80] = {SkColorSetRGB(0xBE, 0xC5, 0xE6)};
|
||||
+ mixer[kColorRefNeutralVariant90] = {SkColorSetRGB(0xDC, 0xE1, 0xFF)};
|
||||
+ mixer[kColorRefNeutralVariant95] = {SkColorSetRGB(0xEF, 0xF0, 0xFF)};
|
||||
+ mixer[kColorRefNeutralVariant99] = {SkColorSetRGB(0xFE, 0xFB, 0xFF)};
|
||||
mixer[kColorRefNeutralVariant100] = {SkColorSetRGB(0xFF, 0xFF, 0xFF)};
|
||||
}
|
||||
|
||||
--- a/ui/color/sys_color_mixer.cc
|
||||
+++ b/ui/color/sys_color_mixer.cc
|
||||
@@ -80,11 +80,11 @@ void AddGrayscaleSysColorOverrides(Color
|
||||
mixer[kColorSysOnSurfacePrimary] = {dark_mode ? kColorRefNeutral90
|
||||
: kColorRefNeutral10};
|
||||
mixer[kColorSysDivider] = {dark_mode ? kColorRefNeutral40
|
||||
- : kColorRefNeutral90};
|
||||
+ : kColorRefNeutral92};
|
||||
|
||||
// Chrome surfaces.
|
||||
mixer[kColorSysHeader] = {dark_mode ? kColorRefNeutral12
|
||||
- : kColorRefNeutral90};
|
||||
+ : kColorRefNeutral92};
|
||||
mixer[kColorSysHeaderInactive] = {
|
||||
dark_mode ? AlphaBlend({kColorSysHeader}, {kColorRefNeutral25}, 0x99)
|
||||
: AlphaBlend({kColorSysHeader}, {kColorRefNeutral98}, 0x48)};
|
||||
--- a/ui/gfx/color_palette.h
|
||||
+++ b/ui/gfx/color_palette.h
|
||||
@@ -15,16 +15,16 @@ constexpr SkColor kPlaceholderColor = SK
|
||||
|
||||
// The number refers to the shade of darkness. Each color in the MD
|
||||
// palette ranges from 050-900.
|
||||
-constexpr SkColor kGoogleBlue050 = SkColorSetRGB(0xE8, 0xF0, 0xFE);
|
||||
-constexpr SkColor kGoogleBlue100 = SkColorSetRGB(0xD2, 0xE3, 0xFC);
|
||||
-constexpr SkColor kGoogleBlue200 = SkColorSetRGB(0xAE, 0xCB, 0xFA);
|
||||
-constexpr SkColor kGoogleBlue300 = SkColorSetRGB(0x8A, 0xB4, 0xF8);
|
||||
-constexpr SkColor kGoogleBlue400 = SkColorSetRGB(0x66, 0x9D, 0xF6);
|
||||
-constexpr SkColor kGoogleBlue500 = SkColorSetRGB(0x42, 0x85, 0xF4);
|
||||
-constexpr SkColor kGoogleBlue600 = SkColorSetRGB(0x1A, 0x73, 0xE8);
|
||||
-constexpr SkColor kGoogleBlue700 = SkColorSetRGB(0x19, 0x67, 0xD2);
|
||||
-constexpr SkColor kGoogleBlue800 = SkColorSetRGB(0x18, 0x5A, 0xBC);
|
||||
-constexpr SkColor kGoogleBlue900 = SkColorSetRGB(0x17, 0x4E, 0xA6);
|
||||
+constexpr SkColor kGoogleBlue050 = SkColorSetRGB(0xEF, 0xF5, 0xFF);
|
||||
+constexpr SkColor kGoogleBlue100 = SkColorSetRGB(0xE3, 0xED, 0xFF);
|
||||
+constexpr SkColor kGoogleBlue200 = SkColorSetRGB(0xCE, 0xDD, 0xFF);
|
||||
+constexpr SkColor kGoogleBlue300 = SkColorSetRGB(0xB4, 0xC9, 0xFF);
|
||||
+constexpr SkColor kGoogleBlue400 = SkColorSetRGB(0x97, 0xB1, 0xFF);
|
||||
+constexpr SkColor kGoogleBlue500 = SkColorSetRGB(0x7A, 0x97, 0xFB);
|
||||
+constexpr SkColor kGoogleBlue600 = SkColorSetRGB(0x5E, 0x7A, 0xE8);
|
||||
+constexpr SkColor kGoogleBlue700 = SkColorSetRGB(0x43, 0x5B, 0xCD);
|
||||
+constexpr SkColor kGoogleBlue800 = SkColorSetRGB(0x2C, 0x3D, 0xA9);
|
||||
+constexpr SkColor kGoogleBlue900 = SkColorSetRGB(0x18, 0x20, 0x7C);
|
||||
|
||||
constexpr SkColor kGoogleRed050 = SkColorSetRGB(0xFC, 0xE8, 0xE6);
|
||||
constexpr SkColor kGoogleRed100 = SkColorSetRGB(0xFA, 0xD2, 0xCF);
|
||||
--- a/ui/webui/resources/cr_elements/cr_shared_vars.css
|
||||
+++ b/ui/webui/resources/cr_elements/cr_shared_vars.css
|
||||
@@ -9,25 +9,26 @@
|
||||
|
||||
/* Common css variables for Material Design WebUI */
|
||||
html {
|
||||
- --google-blue-50-rgb: 232, 240, 254; /* #e8f0fe */
|
||||
+ --helium-blue: #4c66d9;
|
||||
+ --google-blue-50-rgb: 239, 245, 255; /* #eff5ff */
|
||||
--google-blue-50: rgb(var(--google-blue-50-rgb));
|
||||
- --google-blue-100-rgb: 210, 227, 252; /* #d2e3fc */
|
||||
+ --google-blue-100-rgb: 227, 237, 255; /* #e3edff */
|
||||
--google-blue-100: rgb(var(--google-blue-100-rgb));
|
||||
- --google-blue-200-rgb: 174, 203, 250; /* #aecbfa */
|
||||
+ --google-blue-200-rgb: 206, 221, 255; /* #ceddff */
|
||||
--google-blue-200: rgb(var(--google-blue-200-rgb));
|
||||
- --google-blue-300-rgb: 138, 180, 248; /* #8ab4f8 */
|
||||
+ --google-blue-300-rgb: 180, 201, 255; /* #b4c9ff */
|
||||
--google-blue-300: rgb(var(--google-blue-300-rgb));
|
||||
- --google-blue-400-rgb: 102, 157, 246; /* #669df6 */
|
||||
+ --google-blue-400-rgb: 151, 177, 255; /* #97b1ff */
|
||||
--google-blue-400: rgb(var(--google-blue-400-rgb));
|
||||
- --google-blue-500-rgb: 66, 133, 244; /* #4285f4 */
|
||||
+ --google-blue-500-rgb: 122, 151, 251; /* #7a97fb */
|
||||
--google-blue-500: rgb(var(--google-blue-500-rgb));
|
||||
- --google-blue-600-rgb: 26, 115, 232; /* #1a73e8 */
|
||||
+ --google-blue-600-rgb: 94, 122, 232; /* #5e7ae8 */
|
||||
--google-blue-600: rgb(var(--google-blue-600-rgb));
|
||||
- --google-blue-700-rgb: 25, 103, 210; /* #1967d2 */
|
||||
+ --google-blue-700-rgb: 67, 91, 205; /* #435bcd */
|
||||
--google-blue-700: rgb(var(--google-blue-700-rgb));
|
||||
- --google-blue-800-rgb: 24, 90, 188; /* #185abc */
|
||||
+ --google-blue-800-rgb: 44, 61, 169; /* #2c3da9 */
|
||||
--google-blue-800: rgb(var(--google-blue-800-rgb));
|
||||
- --google-blue-900-rgb: 23, 78, 166; /* #174ea6 */
|
||||
+ --google-blue-900-rgb: 24, 32, 124; /* #18207c */
|
||||
--google-blue-900: rgb(var(--google-blue-900-rgb));
|
||||
|
||||
--google-green-50-rgb: 230, 244, 234; /* #e6f4ea */
|
||||
@@ -236,14 +237,14 @@ html {
|
||||
the color pipeline. */
|
||||
--cr-fallback-color-outline: rgb(116, 119, 117);
|
||||
|
||||
- --cr-fallback-color-primary: rgb(11, 87, 208);
|
||||
+ --cr-fallback-color-primary: var(--helium-blue);
|
||||
--cr-fallback-color-on-primary: rgb(255, 255, 255);
|
||||
|
||||
- --cr-fallback-color-primary-container: rgb(211, 227, 253);
|
||||
- --cr-fallback-color-on-primary-container: rgb(4, 30, 73);
|
||||
+ --cr-fallback-color-primary-container: var(--google-blue-200);
|
||||
+ --cr-fallback-color-on-primary-container: var(--google-blue-900);
|
||||
|
||||
- --cr-fallback-color-secondary-container: rgb(194, 231, 255);
|
||||
- --cr-fallback-color-on-secondary-container: rgb(0, 29, 53);
|
||||
+ --cr-fallback-color-secondary-container: var(--google-blue-300);
|
||||
+ --cr-fallback-color-on-secondary-container: var(--google-blue-900);
|
||||
|
||||
--cr-fallback-color-neutral-container: rgb(242, 242, 242);
|
||||
--cr-fallback-color-neutral-outline: rgb(199, 199, 199);
|
||||
@@ -260,18 +261,18 @@ html {
|
||||
|
||||
--cr-fallback-color-on-surface-subtle: rgb(71, 71, 71);
|
||||
|
||||
- --cr-fallback-color-inverse-primary: rgb(168, 199, 250);
|
||||
+ --cr-fallback-color-inverse-primary: var(--google-blue-400);
|
||||
--cr-fallback-color-inverse-surface: rgb(48, 48, 48);
|
||||
--cr-fallback-color-inverse-on-surface: rgb(242, 242, 242);
|
||||
|
||||
- --cr-fallback-color-tonal-container: rgb(211, 227, 253);
|
||||
- --cr-fallback-color-on-tonal-container: rgb(4, 30, 73);
|
||||
+ --cr-fallback-color-tonal-container: var(--google-blue-200);
|
||||
+ --cr-fallback-color-on-tonal-container: var(--google-blue-900);
|
||||
|
||||
- --cr-fallback-color-tonal-outline: rgb(168, 199, 250);
|
||||
+ --cr-fallback-color-tonal-outline: var(--google-blue-400);
|
||||
|
||||
--cr-fallback-color-error: rgb(179, 38, 30);
|
||||
|
||||
- --cr-fallback-color-divider: rgb(211, 227, 253);
|
||||
+ --cr-fallback-color-divider: var(--google-blue-200);
|
||||
|
||||
--cr-fallback-color-state-hover-on-prominent_: rgba(253, 252, 251, .1);
|
||||
|
||||
@@ -284,7 +285,7 @@ html {
|
||||
--cr-fallback-color-state-ripple-primary_: rgba(
|
||||
var(--cr-fallback-color-state-ripple-primary-rgb_), 0.32);
|
||||
|
||||
- --cr-fallback-color-base-container: rgb(236, 239, 247);
|
||||
+ --cr-fallback-color-base-container: var(--google-grey-100);
|
||||
|
||||
--cr-fallback-color-disabled-background: rgba(
|
||||
var(--cr-fallback-color-on-surface-rgb), .12);
|
||||
@@ -339,12 +340,12 @@ html {
|
||||
html {
|
||||
/* Colors */
|
||||
--cr-fallback-color-outline: rgb(142, 145, 143);
|
||||
- --cr-fallback-color-primary: rgb(168, 199, 250);
|
||||
- --cr-fallback-color-on-primary: rgb(6, 46, 111);
|
||||
- --cr-fallback-color-primary-container: rgb(8, 66, 160);
|
||||
- --cr-fallback-color-on-primary-container: rgb(211, 227, 253);
|
||||
- --cr-fallback-color-secondary-container: rgb(0, 74, 119);
|
||||
- --cr-fallback-color-on-secondary-container: rgb(194, 231, 255);
|
||||
+ --cr-fallback-color-primary: var(--google-blue-400);
|
||||
+ --cr-fallback-color-on-primary: var(--google-blue-900);
|
||||
+ --cr-fallback-color-primary-container: var(--helium-blue);
|
||||
+ --cr-fallback-color-on-primary-container: var(--google-blue-100);
|
||||
+ --cr-fallback-color-secondary-container: var(--google-blue-800);
|
||||
+ --cr-fallback-color-on-secondary-container: var(--google-blue-500);
|
||||
--cr-fallback-color-neutral-container: rgb(40, 40, 40);
|
||||
--cr-fallback-color-neutral-outline: rgb(117, 117, 117);
|
||||
--cr-fallback-color-surface: rgb(31, 31, 31);
|
||||
@@ -352,24 +353,24 @@ html {
|
||||
--cr-fallback-color-surface2: rgb(45, 47, 49);
|
||||
--cr-fallback-color-surface3: rgb(51, 52, 56);
|
||||
--cr-fallback-color-on-surface-rgb: 227, 227, 227;
|
||||
- --cr-fallback-color-surface-variant: rgb(68, 71, 70);
|
||||
- --cr-fallback-color-on-surface-variant: rgb(196, 199, 197);
|
||||
+ --cr-fallback-color-surface-variant: rgb(68, 68, 68);
|
||||
+ --cr-fallback-color-on-surface-variant: rgb(196, 199, 196);
|
||||
--cr-fallback-color-on-surface-subtle: rgb(199, 199, 199);
|
||||
- --cr-fallback-color-inverse-primary: rgb(11, 87, 208);
|
||||
+ --cr-fallback-color-inverse-primary: var(--helium-blue);
|
||||
--cr-fallback-color-inverse-surface: rgb(227, 227, 227);
|
||||
--cr-fallback-color-inverse-on-surface: rgb(31, 31, 31);
|
||||
- --cr-fallback-color-tonal-container: rgb(0, 74, 119);
|
||||
- --cr-fallback-color-on-tonal-container: rgb(194, 231, 255);
|
||||
- --cr-fallback-color-tonal-outline: rgb(4, 125, 183);
|
||||
+ --cr-fallback-color-tonal-container: var(--google-blue-800);
|
||||
+ --cr-fallback-color-on-tonal-container: var(--google-blue-300);
|
||||
+ --cr-fallback-color-tonal-outline: var(--google-blue-500);
|
||||
--cr-fallback-color-error: rgb(242, 184, 181);
|
||||
--cr-fallback-color-divider: rgb(94, 94, 94);
|
||||
--cr-fallback-color-state-hover-on-prominent_: rgba(31, 31, 31, .06);
|
||||
- --cr-fallback-color-state-on-subtle-rgb_: 253, 252, 251;
|
||||
+ --cr-fallback-color-state-on-subtle-rgb_: var(--google-blue-50-rgb);
|
||||
--cr-fallback-color-state-hover-on-subtle_: rgba(
|
||||
var(--cr-fallback-color-state-on-subtle-rgb_), .10);
|
||||
--cr-fallback-color-state-ripple-neutral-on-subtle_: rgba(
|
||||
var(--cr-fallback-color-state-on-subtle-rgb_), .16);
|
||||
- --cr-fallback-color-state-ripple-primary-rgb_: 76, 141, 246;
|
||||
+ --cr-fallback-color-state-ripple-primary-rgb_: var(--google-blue-500-rgb);
|
||||
--cr-fallback-color-base-container: rgba(40, 40, 40, 1);
|
||||
}
|
||||
}
|
||||
--- a/ui/webui/resources/cr_components/theme_color_picker/color_utils.ts
|
||||
+++ b/ui/webui/resources/cr_components/theme_color_picker/color_utils.ts
|
||||
@@ -29,26 +29,26 @@ export const DARK_DEFAULT_COLOR: Color =
|
||||
};
|
||||
|
||||
export const LIGHT_BASELINE_BLUE_COLOR: Color = {
|
||||
- background: {value: 0xff0b57d0},
|
||||
- foreground: {value: 0xffd3e3fd},
|
||||
+ background: {value: 0xff4c66d9},
|
||||
+ foreground: {value: 0xffdde1ff},
|
||||
base: {value: 0xffc7c7c7},
|
||||
};
|
||||
|
||||
export const DARK_BASELINE_BLUE_COLOR: Color = {
|
||||
- background: {value: 0xffa8c7fa},
|
||||
- foreground: {value: 0xff0842a0},
|
||||
+ background: {value: 0xffb9c3ff},
|
||||
+ foreground: {value: 0xff314380},
|
||||
base: {value: 0xff757575},
|
||||
};
|
||||
|
||||
export const LIGHT_BASELINE_GREY_COLOR: Color = {
|
||||
- background: {value: 0xff0b57d0},
|
||||
- foreground: {value: 0xffe3e3e3},
|
||||
+ background: {value: 0xff4c66d9},
|
||||
+ foreground: {value: 0xffe2e2eD},
|
||||
base: {value: 0xffc7c7c7},
|
||||
};
|
||||
|
||||
export const DARK_BASELINE_GREY_COLOR: Color = {
|
||||
- background: {value: 0xffa8c7fa},
|
||||
- foreground: {value: 0xff474747},
|
||||
+ background: {value: 0xffb9c3ff},
|
||||
+ foreground: {value: 0xff484d5c},
|
||||
base: {value: 0xff757575},
|
||||
};
|
||||
|
||||
@@ -221,3 +221,4 @@ helium/ui/top-container.patch
|
||||
helium/ui/status-bubble.patch
|
||||
helium/ui/clean-incognito-guest-ntp.patch
|
||||
helium/ui/enable-fluent-scrollbar.patch
|
||||
helium/ui/helium-color-scheme.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2
|
||||
6
|
||||
|
||||
Reference in New Issue
Block a user