Compare commits

...

23 Commits

Author SHA1 Message Date
wukko 1fe2601442 revision: bump revision to 10 2025-07-18 00:14:52 +06:00
wukko 69ec6832db helium/settings/privacy-page: update descriptions, clean up sections
- updated descriptions of security & site settings pages to reflect what they actually contain
- removed the "third party cookies" section, it's accessible via site settings. 3rd party cookies are blocked by default
2025-07-18 00:00:22 +06:00
wukko b7e051ff66 helium/ui/omnibox: fix IPH_SUGGESTION height & icon alignment 2025-07-17 22:21:09 +06:00
wukko 5e6679af3b extras: update onboarding 2025-07-17 22:02:16 +06:00
wukko 127c193c16 helium/core: refresh a patch that wasn't refreshed during string update 2025-07-17 21:29:24 +06:00
wukko 1430f2f69b helium/ui: fix status bubble padding & refactor
no more extra padding on right
2025-07-17 21:27:36 +06:00
wukko 593fd56dd9 helium/ui: remove third party cookies icon from location bar
also removed other unused icons

third party cookies are blocked in helium by default, so showing an icon for that every time it happens is unnecessary. the user can enable third party cookies in site settings -> cookies without leaving the page.
2025-07-17 21:26:39 +06:00
wukko 10a9c6387a helium/core: update helium pref toggle titles and descriptions 2025-07-17 20:46:17 +06:00
wukko f1b511b12c revision: bump to 9 2025-07-16 22:55:17 +06:00
wukko 5cd4d9e585 helium/ui: rename a bunch of patches for better clarity 2025-07-16 16:52:37 +06:00
wukko dfd4885224 helium/ui: update omnibox ui & align everything related 2025-07-16 16:37:31 +06:00
wukko 84e0fdbde7 helium/ui: make status bubble floating all the time
no more weird uneven window edges

(not sure if this works on windows & linux ngl)
2025-07-16 16:36:09 +06:00
wukko 6e6809a053 helium/ui: remove tab group drag highlight
(again)
2025-07-16 16:35:25 +06:00
wukko 8c7b2012a9 revision: bump to 8 2025-07-13 23:27:58 +06:00
wukko fe261284a0 helium/ui/layout-constants: fix avatar chip insets 2025-07-13 23:09:07 +06:00
wukko 4439e6c91b helium/ui: fix avatar button bg colors in toolbar
normal state no longer has a background and guest state is way more bearable now
2025-07-13 23:08:38 +06:00
wukko 6e8168f3bc helium/ui: remove broken side panel separator
but keep the rounded corner :3
2025-07-13 21:03:19 +06:00
wukko 3f97be7852 helium/ui: reduce split view padding & align everything 2025-07-13 21:02:35 +06:00
wukko 8136fa3543 helium/ui: revamped top container ui 2025-07-13 19:46:44 +06:00
wukko e379f406e5 revision: bump to 7 2025-07-11 23:21:53 +06:00
wukko 7a02f2ac4b helium/settings: fix expression in translate patch 2025-07-11 22:09:38 +06:00
wukko 3a8dcfc49f helium/ui: new tab design
- tabs are now narrower and shorter
- split view tabs are wider to accommodate for two tabs in one component
- tabs are now attached to the toolbar
- close button now appears only on hover/focus
- fixed tab closing animation, close button no longer slides along with the rest of the tab
- new tab button no longer interferes with the tab separator
2025-07-11 21:59:26 +06:00
wukko 2f1884b2e5 helium/ui: transparent address bar and thinner toolbar 2025-07-11 21:42:18 +06:00
26 changed files with 610 additions and 134 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
output_path = ./components/resources/default_100_percent/search_engine_choice
[onboarding]
version = 202505202136
version = 202507171319
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 = 7719da3c819a1f52c5688d223ba190b268312de78934959c5a909c0018ebe384
sha256 = 63fd245da57884d1fde5e48a6ed56b6204170f082af35dd280ab3ccbab3da57e
output_path = ./components/helium_onboarding
+2 -2
View File
@@ -721,10 +721,10 @@
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE" desc="Toggle for enabling/disabling of downloading bangs">
+ Allow downloading the !bang list
+ Allow downloading the !bangs list
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
+ When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
+ Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs 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
@@ -140,10 +140,10 @@ TODO: guard services_page.html with is_mac
When enabled, Helium will fetch dictionary files used for spell checking when requested.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
+ Allow fetching browser updates
+ Allow automatic browser updates
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
+ When enabled, Helium will download and install browser updates whenever they are available.
+ Helium will automatically download and install browser updates as they become available. We recommend keeping this setting enabled to ensure you get the latest security patches and features.
+ </message>
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
Use your own instance of Helium services
@@ -216,7 +216,7 @@
+++ b/chrome/app/settings_strings.grdp
@@ -1852,6 +1852,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
When enabled, Helium will be able to connect to anonymous services for providing additional functionality, such as native !bangs or extension downloads.
When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE" desc="Toggle for enabling/disabling of downloading and proxying extensions">
+ Proxy extension downloads and updates
@@ -146,7 +146,7 @@
+++ b/chrome/app/settings_strings.grdp
@@ -1864,6 +1864,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE" desc="Toggle for enabling/disabling of downloading spellcheck files">
+ Allow downloading dictionary files for spell checking
+10 -6
View File
@@ -8,22 +8,22 @@
+ Helium services
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION" desc="Description of the controls available on the Helium services settings page">
+ Control Helium services and whether your browser is allowed to use them
+ Manage what Helium services are allowed in your browser
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE" desc="Global toggle for enabling/disabling of all Helium services">
+ Allow connecting to Helium services
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
+ When enabled, Helium will be able to connect to anonymous services for providing additional functionality, such as native !bangs or extension downloads.
+ When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features 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
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION" desc="Description of the text input for overriding the Helium services server">
+ You can host your own instance of Helium services and use it in your browser instead of the default services server. HTTPS only.
+ You can host your own instance of Helium services and use it in your browser instead of the default one. HTTPS only.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION_WARNING" desc="Warning section of description for overriding the Helium services server">
+ Do not use this field unless you know exactly what you're doing. Do not paste URLs from other people here, they're trying to steal your data. We are not responsible for any damages caused by using a custom server.
+ Do not use this field unless you know exactly what you are doing. Never paste URLs from other people here, they are trying to steal your data. We are not responsible for any damages caused by using a custom server and will not be able to help you.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_ARIA_LABEL" desc="ARIA label of the text input for overriding the Helium services server">
+ Custom origin URL for Helium services
@@ -129,7 +129,7 @@
"privacy_sandbox/privacy_sandbox_interest_item.ts",
--- /dev/null
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
@@ -0,0 +1,41 @@
@@ -0,0 +1,45 @@
+<style include="cr-shared-style settings-shared">
+ .label-wrapper {
+ padding: var(--cr-section-vertical-padding) 0;
@@ -153,7 +153,11 @@
+ <div class="flex">
+ <div class="flex label-wrapper">
+ <div class="label">$i18n{heliumOriginOverride}</div>
+ <div class="cr-secondary-text label">$i18n{heliumOriginOverrideDescription} <b>$i18n{heliumOriginOverrideDescriptionWarning}</b></div>
+ <div class="cr-secondary-text label">
+ $i18n{heliumOriginOverrideDescription}
+ <br><br>
+ <b>$i18n{heliumOriginOverrideDescriptionWarning}</b>
+ </div>
+ </div>
+ <cr-input
+ id="heliumOriginOverride"
+14 -3
View File
@@ -17,7 +17,7 @@
const int kHandleHeight = 24;
-const int kHandlePadding = 6;
-const int kHandleWidth = 4;
+const int kHandlePadding = 3;
+const int kHandlePadding = 4;
+const int kHandleWidth = 2;
} // namespace
@@ -38,13 +38,13 @@
static constexpr int kMinWebContentsWidth = 200;
static constexpr double kMinWebContentsWidthPercentage = 0.1;
- static constexpr int kContentCornerRadius = 6;
+ static constexpr int kContentCornerRadius = 5;
+ static constexpr int kContentCornerRadius = 8;
static constexpr int kContentOutlineCornerRadius = 8;
static constexpr int kContentOutlineThickness = 1;
- static constexpr int kSplitViewContentInset = 8;
- static constexpr int kSplitViewContentPadding = 4;
+ static constexpr int kSplitViewContentInset = 3;
+ static constexpr int kSplitViewContentPadding = 2;
+ static constexpr int kSplitViewContentPadding = 0;
// ContentsContainerView holds the ContentsWebView and the outlines and
// minitoolbar when in split view.
@@ -77,6 +77,17 @@
line-height: 20px;
--- a/chrome/browser/ui/views/frame/multi_contents_view.cc
+++ b/chrome/browser/ui/views/frame/multi_contents_view.cc
@@ -192,8 +192,8 @@ void MultiContentsView::Layout(PassKey)
gfx::Size(widths.end_width, available_space.height()));
float corner_radius = 0;
if (IsInSplitView()) {
- start_rect.Inset(gfx::Insets(kSplitViewContentInset).set_right(0));
- end_rect.Inset(gfx::Insets(kSplitViewContentInset).set_left(0));
+ start_rect.Inset(gfx::Insets(kSplitViewContentInset).set_right(0).set_top(0));
+ end_rect.Inset(gfx::Insets(kSplitViewContentInset).set_left(0).set_top(0));
corner_radius = kContentCornerRadius;
}
for (auto* contents_container_view : contents_container_views_) {
@@ -235,8 +235,6 @@ MultiContentsView::ContentsContainerView
SetLayoutManager(std::make_unique<views::DelegatingLayoutManager>(this));
contents_view_ = AddChildView(
@@ -0,0 +1,69 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1837,6 +1837,12 @@
users to manage security settings">
Security
</message>
+ <message name="IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL" desc="Description of the controls available on the permissions and site content settings page">
+ Manage site permissions and content settings (cookies, pop-ups, and more)
+ </message>
+ <message name="IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL" desc="Description of the controls available on the security settings page">
+ Connection security, DNS settings, certificate management, and other security settings
+ </message>
<message name="IDS_SETTINGS_SECURITY_DESCRIPTION" desc="Description of the controls available on the security settings page">
Safe Browsing (protection from dangerous sites) and other security settings
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1846,9 +1846,9 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
// TODO(crbug.com/40122957): This string is no longer used. Remove.
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
- {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
+ {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
{"securityPageTitle", IDS_SETTINGS_SECURITY},
- {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
+ {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL},
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -51,6 +51,7 @@
label="$i18n{clearBrowsingData}"
sub-label="$i18n{clearBrowsingDataDescription}"
on-click="onClearBrowsingDataClick_"></cr-link-row>
+ <template is="dom-if" if="[[false]]">
<cr-link-row id="thirdPartyCookiesLinkRow"
start-icon="privacy:cookie"
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
@@ -61,6 +62,7 @@
on-click="onCookiesClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
+ </template>
<template is="dom-if" if="[[enableIncognitoTrackingProtections_]]">
<cr-link-row id="incognitoTrackingProtectionsLinkRow" class="hr"
start-icon="settings:visibility-off"
@@ -85,16 +87,16 @@
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
</template>
- <cr-link-row id="securityLinkRow" start-icon="privacy:lock"
- class="hr" label="$i18n{securityPageTitle}"
- sub-label="$i18n{securityPageDescription}"
- on-click="onSecurityPageClick_"
- role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="permissionsLinkRow" start-icon="privacy:page-info"
class="hr" label="$i18n{siteSettings}"
sub-label="$i18n{permissionsPageDescription}"
on-click="onPermissionsPageClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
+ <cr-link-row id="securityLinkRow" start-icon="privacy:lock"
+ class="hr" label="$i18n{securityPageTitle}"
+ sub-label="$i18n{securityPageDescription}"
+ on-click="onSecurityPageClick_"
+ role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="heliumServicesLinkRow" start-icon="cr:chrome-product"
class="hr" label="$i18n{heliumServicesTitle}"
sub-label="$i18n{heliumServicesDescription}"
@@ -4,7 +4,7 @@
</settings-spell-check-page>
</settings-section>
</template>
+<if expr="_google_chrome">
+<if expr="False">
<settings-section page-title="$i18n{translatePageTitle}"
section="translate" nest-under-section="languages">
<settings-translate-page prefs="{{prefs}}"
@@ -1,21 +0,0 @@
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
@@ -60,8 +60,7 @@ SelectedKeywordView::GetKeywordLabelName
names.full_name =
l10n_util::GetStringUTF16(IDS_STARTER_PACK_PAGE_KEYWORD_TEXT);
} else {
- names.full_name = l10n_util::GetStringFUTF16(IDS_OMNIBOX_KEYWORD_TEXT_MD,
- names.short_name);
+ names.full_name = names.short_name;
}
}
return names;
@@ -194,7 +193,7 @@ const std::u16string& SelectedKeywordVie
int SelectedKeywordView::GetExtraInternalSpacing() const {
// Align the label text with the suggestion text.
- return 14;
+ return 3;
}
void SelectedKeywordView::SetLabelForCurrentWidth() {
+2 -3
View File
@@ -162,11 +162,10 @@
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/accessibility/ax_enums.mojom.h"
@@ -115,6 +116,15 @@ void SelectedKeywordView::SetCustomImage
if (template_url &&
@@ -118,6 +119,14 @@ void SelectedKeywordView::SetCustomImage
template_url->starter_pack_id() == TemplateURLStarterPackData::kGemini) {
vector_icon = &omnibox::kSparkIcon;
+
+ } else if (template_url && template_url->bang_id() > 0) {
+ switch (bang_manager_->GetCategoryForBang(template_url->bang_id())) {
+ case Bangs::BANG_CATEGORY_AI:
+4 -17
View File
@@ -37,7 +37,7 @@
return touch_ui ? 3 : 8;
case LOCATION_BAR_HEIGHT:
- return touch_ui ? 36 : 34;
+ return touch_ui ? 36 : 30;
+ return touch_ui ? 36 : 28;
case LOCATION_BAR_ICON_SIZE:
return touch_ui ? 20 : 16;
case LOCATION_BAR_LEADING_ICON_SIZE:
@@ -46,7 +46,7 @@
return touch_ui ? 24 : 16;
case TAB_HEIGHT:
- return 34 + GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP);
+ return 33;
+ return 31;
case TAB_STRIP_HEIGHT:
return GetLayoutConstant(TAB_HEIGHT) +
GetLayoutConstant(TAB_STRIP_PADDING);
@@ -92,19 +92,6 @@
case PAGE_INFO_ICON_SIZE:
return 20;
case DOWNLOAD_ICON_SIZE:
@@ -157,10 +152,10 @@ gfx::Insets GetLayoutInsets(LayoutInset
return gfx::Insets::VH(2, 2);
case LOCATION_BAR_PAGE_INFO_ICON_PADDING:
- return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 4);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 5);
case LOCATION_BAR_PAGE_ACTION_ICON_PADDING:
- return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 2);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 3);
case TOOLBAR_ACTION_VIEW: {
// TODO(afakhry): Unify all toolbar button sizes on all platforms.
@@ -169,7 +164,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
}
@@ -119,12 +106,12 @@
return GetLayoutInsets(TOOLBAR_BUTTON);
} else {
- return gfx::Insets::TLBR(7, 10, 7, 4);
+ return gfx::Insets::TLBR(5, 7, 5, 5);
+ return gfx::Insets::TLBR(4, 5, 4, 4);
}
case TOOLBAR_INTERIOR_MARGIN:
- return touch_ui ? gfx::Insets() : gfx::Insets::VH(6, 5);
+ return touch_ui ? gfx::Insets() : gfx::Insets::VH(3, 6);
+ return touch_ui ? gfx::Insets() : gfx::Insets::TLBR(0, 6, 3, 6);
case WEBUI_TAB_STRIP_TOOLBAR_INTERIOR_MARGIN:
return gfx::Insets::VH(4, 0);
@@ -100,7 +100,41 @@
auto location_icon_view =
std::make_unique<LocationIconView>(omnibox_chip_font_list, this, this);
@@ -490,7 +493,7 @@ bool LocationBarView::IsInitialized() co
@@ -391,22 +394,13 @@ void LocationBarView::Init() {
// first so that they appear on the left side of the icon container.
// TODO(crbug.com/40835681): Improve the ordering heuristics for page action
// icons and determine a way to handle simultaneous icon animations.
- if (base::FeatureList::IsEnabled(commerce::kProductSpecifications)) {
- params.types_enabled.push_back(
- PageActionIconType::kProductSpecifications);
- }
- params.types_enabled.push_back(PageActionIconType::kDiscounts);
- params.types_enabled.push_back(PageActionIconType::kPriceInsights);
- params.types_enabled.push_back(PageActionIconType::kPriceTracking);
if (optimization_guide::features::ShouldEnableOptimizationGuideIconView()) {
params.types_enabled.push_back(PageActionIconType::kOptimizationGuide);
}
params.types_enabled.push_back(PageActionIconType::kClickToCall);
params.types_enabled.push_back(PageActionIconType::kSmsRemoteFetcher);
- params.types_enabled.push_back(PageActionIconType::kAutofillAddress);
- params.types_enabled.push_back(PageActionIconType::kManagePasswords);
- params.types_enabled.push_back(PageActionIconType::kChangePassword);
+
if (!apps::features::ShouldShowLinkCapturingUX()) {
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
}
@@ -416,9 +410,6 @@ void LocationBarView::Init() {
params.types_enabled.push_back(PageActionIconType::kZoom);
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
- params.types_enabled.push_back(PageActionIconType::kCookieControls);
- params.types_enabled.push_back(
- PageActionIconType::kPaymentsOfferNotification);
params.types_enabled.push_back(PageActionIconType::kMemorySaver);
}
params.types_enabled.push_back(PageActionIconType::kSaveCard);
@@ -490,7 +481,7 @@ bool LocationBarView::IsInitialized() co
int LocationBarView::GetBorderRadius() const {
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
@@ -109,7 +143,7 @@
}
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
@@ -690,9 +693,9 @@ void LocationBarView::Layout(PassKey) {
@@ -690,9 +681,9 @@ void LocationBarView::Layout(PassKey) {
// TODO(manukh): Move constants to layout_constants.cc.
// The padding between the left edges of the location bar and the LHS icon,
// e.g. the page info icon, the google G icon, the selected suggestion icon.
@@ -121,7 +155,7 @@
// Apply indentation to align the omnibox input icon and the text with those
// of the suggestions in the popup. However, there are two exceptions where
@@ -711,22 +714,22 @@ void LocationBarView::Layout(PassKey) {
@@ -711,22 +702,22 @@ void LocationBarView::Layout(PassKey) {
!location_icon_view_->ShouldShowLabel() &&
!ShouldShowKeywordBubble();
if (should_indent) {
@@ -139,7 +173,7 @@
// Otherwise, if in keyword mode, adjust indentation to align the icon and
// the text with the suggestion icons & texts.
- icon_left += 9; /*icon_indent_keyword_mode*/
+ icon_left += 3; /*icon_indent_keyword_mode*/
+ icon_left += 0; /*icon_indent_keyword_mode*/
icon_left += omnibox_feature_configs::AdjustOmniboxIndent()
.Get()
.input_icon_indent_offset;
@@ -148,7 +182,7 @@
}
LocationBarLayout leading_decorations(LocationBarLayout::Position::kLeftEdge,
@@ -1183,7 +1186,7 @@ int LocationBarView::GetMinimumTrailingW
@@ -1183,7 +1174,7 @@ int LocationBarView::GetMinimumTrailingW
}
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
@@ -157,6 +191,18 @@
gfx::Rect bounds_without_endcaps(GetLocalBounds());
bounds_without_endcaps.Inset(gfx::Insets::VH(0, border_radius));
return bounds_without_endcaps;
@@ -1197,9 +1188,9 @@ void LocationBarView::RefreshBackground(
const bool high_contrast = GetNativeTheme()->UserHasContrastPreference();
const auto* const color_provider = GetColorProvider();
- SkColor normal = color_provider->GetColor(kColorLocationBarBackground);
+ SkColor normal = color_provider->GetColor(kColorOmniboxResultsBackground);
SkColor hovered =
- color_provider->GetColor(kColorLocationBarBackgroundHovered);
+ color_provider->GetColor(kColorOmniboxResultsBackgroundHovered);
background_color_ = gfx::Tween::ColorValueBetween(opacity, normal, hovered);
if (is_caret_visible) {
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -110,7 +110,7 @@ SkColor LocationIconView::GetForegroundC
@@ -9,17 +9,45 @@
#if !defined(USE_AURA)
@@ -232,8 +232,7 @@ RoundedOmniboxResultsFrame::RoundedOmnib
@@ -162,7 +162,9 @@ class TopBackgroundView : public views::
// not antialiased, since the goal is to completely cover the underlying
// pixels, and AA would let those on the edge partly bleed through.
SetBackground(location_bar_->CreateRoundRectBackground(
- SK_ColorTRANSPARENT, background_color, SkBlendMode::kSrc, false));
+ SK_ColorTRANSPARENT, background_color, SkBlendMode::kSrc,
+ /*antialias=*/false,
+ /*should_border_scale=*/true));
}
#if !defined(USE_AURA)
@@ -215,7 +217,7 @@ END_METADATA
// Insets used to position |contents_| within |contents_host_|.
gfx::Insets GetContentInsets() {
return gfx::Insets::TLBR(
- RoundedOmniboxResultsFrame::GetNonResultSectionHeight(), 0, 0, 0);
+ RoundedOmniboxResultsFrame::GetNonResultSectionHeight() - 4, 0, 0, 0);
}
} // namespace
@@ -232,8 +234,7 @@ RoundedOmniboxResultsFrame::RoundedOmnib
contents_host_->layer()->SetFillsBoundsOpaquely(false);
// Use rounded corners.
- const int corner_radius = views::LayoutProvider::Get()->GetCornerRadiusMetric(
- views::ShapeContextTokens::kOmniboxExpandedRadius);
+ const int corner_radius = 12.0f;
+ const int corner_radius = 12;
contents_host_->layer()->SetRoundedCornerRadius(
gfx::RoundedCornersF(corner_radius));
contents_host_->layer()->SetIsFastRoundedCorner(true);
@@ -284,10 +283,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
@@ -248,6 +249,7 @@ RoundedOmniboxResultsFrame::RoundedOmnib
views::BubbleBorder::Shadow::STANDARD_SHADOW);
border->set_rounded_corners(gfx::RoundedCornersF(corner_radius));
border->set_md_shadow_elevation(kElevation);
+ border->set_draw_border_stroke(true);
SetBorder(std::move(border));
AddChildViewRaw(contents_host_.get());
@@ -284,10 +286,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
// static
gfx::Insets RoundedOmniboxResultsFrame::GetLocationBarAlignmentInsets() {
@@ -28,21 +56,12 @@
return gfx::Insets::TLBR(6, 1, 5, 1);
}
- return gfx::Insets::VH(5, 6);
+ return gfx::Insets::VH(3, 10);
+ return gfx::Insets::VH(3, 8);
}
// static
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -103,7 +103,7 @@ class OmniboxResultViewButton : public v
BEGIN_METADATA(OmniboxResultViewButton)
END_METADATA
-constexpr float kIPHBackgroundBorderRadius = 8;
+constexpr float kIPHBackgroundBorderRadius = 6;
} // namespace
@@ -190,9 +190,6 @@ OmniboxResultView::OmniboxResultView(Omn
SetLayoutManager(std::make_unique<views::FillLayout>());
@@ -102,7 +121,7 @@
- }
-
- return gfx::Insets::TLBR(0, 0, 0, 16);
+ return gfx::Insets::TLBR(2, 6, 0, 6);
+ return gfx::Insets::TLBR(2, 4, 0, 4);
}
BEGIN_METADATA(OmniboxRowView)
@@ -118,12 +137,21 @@
// When a PEDAL suggestion has been split out to its own row, apply a square
// background with a distinctive color to the respective icon. Journeys
// suggestion rows should also receive the same treatment.
@@ -568,7 +567,7 @@ gfx::Size OmniboxMatchCellView::Calculat
}
} else if (layout_style_ == LayoutStyle::IPH_SUGGESTION) {
// IPH suggestions have extra height.
- height = kRowHeight + 4;
+ height = kRowHeight;
} else {
// The height for traditional 1-line matches.
height = kRowHeight;
@@ -584,7 +583,7 @@ int OmniboxMatchCellView::GetImageIndent
// align with any other UI; it's just arbitrarily chosen by UX. Hence, it's
// not derived from other matches' `indent` below.
if (layout_style_ == LayoutStyle::IPH_SUGGESTION) {
- return 2;
+ return 0;
+ return -3;
}
// The entity, answer, and icon images are horizontally centered within their
@@ -132,7 +160,7 @@
// c) Regardless of the state of those other features and their widths.
// This applies to both touch-UI and non-touch-UI.
- int indent = 16 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
+ int indent = 5 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
+ int indent = 3 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
indent += omnibox_feature_configs::AdjustOmniboxIndent()
.Get()
@@ -140,7 +168,7 @@
}
int OmniboxMatchCellView::GetTextIndent() const {
+ return 33;
+ return 30;
+
// Text indent is added to the `OmniboxMatchCellView::GetInsets()`. It is not
// added to the image position & size.
@@ -152,7 +180,7 @@
// The height of the standard 1-line match row. Multiline & IPH matches have
// larger heights.
- static constexpr int kRowHeight = 40;
+ static constexpr int kRowHeight = 30;
+ static constexpr int kRowHeight = 28;
// The width of icon, answer, and entity image bounds. These images are
// smaller than this bounds; they'll be centered within the bounds.
@@ -163,7 +191,7 @@
// (result set is empty or all results are hidden).
if (popup_height != 0) {
- constexpr int kExtraBottomPadding = 8;
+ constexpr int kExtraBottomPadding = 6;
+ constexpr int kExtraBottomPadding = 2;
popup_height += kExtraBottomPadding;
}
@@ -0,0 +1,38 @@
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
@@ -60,8 +60,7 @@ SelectedKeywordView::GetKeywordLabelName
names.full_name =
l10n_util::GetStringUTF16(IDS_STARTER_PACK_PAGE_KEYWORD_TEXT);
} else {
- names.full_name = l10n_util::GetStringFUTF16(IDS_OMNIBOX_KEYWORD_TEXT_MD,
- names.short_name);
+ names.full_name = names.short_name;
}
}
return names;
@@ -78,6 +77,8 @@ SelectedKeywordView::SelectedKeywordView
partial_label_.SetVisible(false);
label()->SetElideBehavior(gfx::FADE_TAIL);
+ SetExpandedLabelAdditionalInsets(views::Inset1D(2, 0));
+
// TODO(crbug.com/40890218): `IconLabelBubbleView::GetAccessibleNodeData`
// would set the name to explicitly empty when the name was missing.
// That function no longer exists. As a result we need to handle that here.
@@ -116,6 +117,7 @@ void SelectedKeywordView::SetCustomImage
if (template_url &&
template_url->starter_pack_id() == TemplateURLStarterPackData::kGemini) {
vector_icon = &omnibox::kSparkIcon;
+
} else if (history_embeddings::IsHistoryEmbeddingsEnabledForProfile(
profile_) &&
history_embeddings::GetFeatureParameters().omnibox_scoped &&
@@ -194,7 +196,7 @@ const std::u16string& SelectedKeywordVie
int SelectedKeywordView::GetExtraInternalSpacing() const {
// Align the label text with the suggestion text.
- return 14;
+ return 2;
}
void SelectedKeywordView::SetLabelForCurrentWidth() {
@@ -35,3 +35,30 @@
SetProperty(views::kMarginsKey,
gfx::Insets().set_left(resize_handle_left_margin));
} else {
--- a/chrome/browser/ui/views/side_panel/side_panel_rounded_corner.cc
+++ b/chrome/browser/ui/views/side_panel/side_panel_rounded_corner.cc
@@ -32,8 +32,7 @@ void SidePanelRoundedCorner::Layout(Pass
path.moveTo(0, 0);
path.lineTo(local_bounds.width(), 0);
path.lineTo(local_bounds.width(), local_bounds.height());
- path.lineTo(local_bounds.width() - views::Separator::kThickness,
- local_bounds.height());
+ path.lineTo(local_bounds.width(), local_bounds.height());
path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
SkPathDirection::kCCW, 0, views::Separator::kThickness);
path.lineTo(0, 0);
@@ -66,12 +65,12 @@ void SidePanelRoundedCorner::OnPaint(gfx
views::ShapeContextTokens::kSidePanelPageContentRadius);
const gfx::Rect local_bounds = GetLocalBounds();
SkPath path;
- if (is_right_aligned) {
+ if ((false)) {
path.moveTo(local_bounds.width() - views::Separator::kThickness,
local_bounds.height());
path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
SkPathDirection::kCCW, 0, views::Separator::kThickness);
- } else {
+ } else if ((false)) {
path.moveTo(local_bounds.width(), views::Separator::kThickness);
path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
SkPathDirection::kCCW, views::Separator::kThickness,
+149
View File
@@ -0,0 +1,149 @@
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -58,7 +58,7 @@
namespace {
// The roundedness of the edges of our bubble.
-constexpr int kBubbleCornerRadius = 4;
+constexpr int kBubbleCornerRadius = 6;
// How close the mouse can get to the infobubble before it starts sliding
// off-screen.
@@ -66,7 +66,10 @@ constexpr int kMousePadding = 20;
// The minimum horizontal space between the edges of the text and the edges of
// the status bubble, not including the outer shadow ring.
-constexpr int kTextHorizPadding = 5;
+constexpr int kTextHorizPadding = 8;
+constexpr int kTextVertPadding = 3;
+
+constexpr int kWindowMargin = 8;
// Delays before we start hiding or showing the bubble after we receive a
// show or hide request.
@@ -258,7 +261,7 @@ StatusView::~StatusView() {
}
gfx::Insets StatusView::GetInsets() const {
- return gfx::Insets::VH(kShadowThickness,
+ return gfx::Insets::VH(kShadowThickness + kTextVertPadding,
kShadowThickness + kTextHorizPadding);
}
@@ -450,47 +453,13 @@ void StatusView::OnPaint(gfx::Canvas* ca
float scale = canvas->UndoDeviceScaleFactor();
const float radius = kBubbleCornerRadius * scale;
- std::array<SkScalar, 8> rad{};
- auto round_corner = [&rad, radius](gfx::RRectF::Corner c) {
- int index = base::to_underlying(c);
- rad[2 * index] = radius;
- rad[2 * index + 1] = radius;
+ std::array<SkScalar, 8> rad = {
+ radius, radius, // Upper-left
+ radius, radius, // Upper-right
+ radius, radius, // Lower-right
+ radius, radius // Lower-left
};
- // Top Edges - if the bubble is in its bottom position (sticking downwards),
- // then we square the top edges. Otherwise, we square the edges based on the
- // position of the bubble within the window (the bubble is positioned in the
- // southeast corner in RTL and in the southwest corner in LTR).
- if (style_ != BubbleStyle::kBottom) {
- if (base::i18n::IsRTL() != (style_ == BubbleStyle::kStandardRight)) {
- // The text is RtL or the bubble is on the right side (but not both).
- round_corner(gfx::RRectF::Corner::kUpperLeft);
- } else {
- round_corner(gfx::RRectF::Corner::kUpperRight);
- }
- }
-
- // Bottom edges - Keep these squared off if the bubble is in its standard
- // position (sticking upward).
- if (style_ != BubbleStyle::kStandard &&
- style_ != BubbleStyle::kStandardRight) {
- round_corner(gfx::RRectF::Corner::kLowerRight);
- round_corner(gfx::RRectF::Corner::kLowerLeft);
- } else {
-#if BUILDFLAG(IS_MAC)
- // Mac's window has rounded corners, but the corner radius might be
- // different on different versions. Status bubble will use its own round
- // corner on Mac when there is no download shelf beneath.
- if (!status_bubble_->download_shelf_is_visible_) {
- if (base::i18n::IsRTL() != (style_ == BubbleStyle::kStandard)) {
- round_corner(gfx::RRectF::Corner::kLowerLeft);
- } else {
- round_corner(gfx::RRectF::Corner::kLowerRight);
- }
- }
-#endif
- }
-
// Snap to pixels to avoid shadow blurriness.
gfx::Size scaled_size = gfx::ScaleToRoundedSize(size(), scale);
@@ -499,20 +468,7 @@ void StatusView::OnPaint(gfx::Canvas* ca
// where the web content is visible.
const int shadow_thickness_pixels = std::floor(kShadowThickness * scale);
- // The shadow will overlap the window frame. Clip it off when the bubble is
- // docked. Otherwise when the bubble is floating preserve the full shadow so
- // the bubble looks complete.
- int clip_left =
- style_ == BubbleStyle::kStandard ? shadow_thickness_pixels : 0;
- int clip_right =
- style_ == BubbleStyle::kStandardRight ? shadow_thickness_pixels : 0;
- if (base::i18n::IsRTL()) {
- std::swap(clip_left, clip_right);
- }
-
- const int clip_bottom = clip_left || clip_right ? shadow_thickness_pixels : 0;
gfx::Rect clip_rect(scaled_size);
- clip_rect.Inset(gfx::Insets::TLBR(0, clip_left, clip_bottom, clip_right));
canvas->ClipRect(clip_rect);
gfx::RectF bubble_rect{gfx::SizeF(scaled_size)};
@@ -522,11 +478,7 @@ void StatusView::OnPaint(gfx::Canvas* ca
// bubble bounds by 1 DIP minus 1 pixel. Failing to do this results in drawing
// further and further outside the window as the scale increases.
const int inset = shadow_thickness_pixels - 1;
- bubble_rect.Inset(
- gfx::InsetsF()
- .set_left(style_ == BubbleStyle::kStandardRight ? 0 : inset)
- .set_right(style_ == BubbleStyle::kStandardRight ? inset : 0)
- .set_bottom(inset));
+ bubble_rect.Inset(gfx::InsetsF::VH(inset, inset));
// Align to pixel centers now that the layout is correct.
bubble_rect.Inset(0.5);
@@ -553,9 +505,6 @@ void StatusView::OnPaint(gfx::Canvas* ca
: kColorStatusBubbleBackgroundFrameInactive;
flags.setColor(color_provider->GetColor(id));
canvas->sk_canvas()->drawPath(fill_path, flags);
-
- flags.setColor(color_provider->GetColor(kColorStatusBubbleShadow));
- canvas->sk_canvas()->drawPath(stroke_path, flags);
}
DEFINE_ENUM_CONVERTERS(StatusView::BubbleState,
@@ -769,7 +718,9 @@ void StatusBubbleViews::Reposition() {
int overlap = kShadowThickness;
int height = GetPreferredHeight();
int base_view_height = base_view_->bounds().height();
- gfx::Point origin(-overlap, base_view_height - height + overlap);
+ gfx::Point origin(
+ -overlap + kWindowMargin, base_view_height - height - kWindowMargin + overlap
+ );
SetBounds(origin.x(), origin.y(), base_view_->bounds().width() / 3, height);
}
@@ -807,7 +758,7 @@ int StatusBubbleViews::GetWidthForURL(co
// Get the width of the elided url
int elided_url_width = gfx::GetStringWidth(url_string, GetFont());
// Add proper paddings
- return elided_url_width + (kShadowThickness + kTextHorizPadding) * 2 + 1;
+ return elided_url_width + (kShadowThickness + kTextHorizPadding) * 2;
}
void StatusBubbleViews::SetStatus(const std::u16string& status_text) {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/tabs/tab_style.cc
+++ b/chrome/browser/ui/tabs/tab_style.cc
@@ -18,13 +18,13 @@ namespace {
@@ -18,17 +18,20 @@ namespace {
// Thickness in DIPs of the separator painted on the left and right edges of
// the tab.
@@ -12,12 +12,29 @@
constexpr int kChromeRefreshSeparatorHeight = 16;
// The padding from the top of the tab to the content area.
-constexpr int kChromeRefreshTabVerticalPadding = 6;
+constexpr int kChromeRefreshTabVerticalPadding = 7;
constexpr int kChromeRefreshTabHorizontalPadding = 8;
constexpr int kChromeRefreshTabVerticalPadding = 6;
-constexpr int kChromeRefreshTabHorizontalPadding = 8;
+constexpr int kChromeRefreshTabHorizontalPadding = 7;
// The standard tab width is 232 DIP, excluding separators and overlap.
@@ -104,11 +104,11 @@ int TabStyle::GetMinimumInactiveWidth()
-constexpr int kTabWidth = 232;
+constexpr int kTabWidth = 200;
+
+// Split tabs need more space to be readable
+constexpr int kSplitTabWidth = 250;
} // namespace
@@ -42,7 +45,7 @@ int TabStyle::GetStandardWidth(const boo
if (is_split) {
// Split tabs appear as half width with one bottom extension. They also must
// include half the tab overlap as the tabs fill the space between them.
- return kTabWidth / 2 + GetBottomCornerRadius() + GetTabOverlap() / 2;
+ return kSplitTabWidth / 2 + GetBottomCornerRadius() + GetTabOverlap() / 2;
} else {
// The full width includes two extensions with the bottom corner radius.
return kTabWidth + 2 * GetBottomCornerRadius();
@@ -104,11 +107,11 @@ int TabStyle::GetMinimumInactiveWidth()
}
int TabStyle::GetTopCornerRadius() const {
@@ -31,42 +48,6 @@
}
int TabStyle::GetTabOverlap() const {
--- a/chrome/browser/ui/views/tabs/tab_group_highlight.cc
+++ b/chrome/browser/ui/views/tabs/tab_group_highlight.cc
@@ -47,33 +47,7 @@ void TabGroupHighlight::OnPaint(gfx::Can
}
SkPath TabGroupHighlight::GetPath() const {
- // This path imitates the shape of a tab (see GM2TabStyle::GetPath()). It
- // doesn't reuse the exact same GetPath() function because it doesn't need
- // much of the complexity there. Group highlights only appear on group drag,
- // which is a well-scoped interaction. A dragging group doesn't nestle in with
- // the tabs around it, so there are no special cases needed when determining
- // its shape.
- const int corner_radius = TabStyle::Get()->GetBottomCornerRadius();
- const int top = GetLayoutConstant(TAB_STRIP_PADDING);
-
SkPath path;
- path.moveTo(0, bounds().height());
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCCW, corner_radius,
- bounds().height() - corner_radius);
- path.lineTo(corner_radius, top + corner_radius);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCW, 2 * corner_radius, top);
- path.lineTo(bounds().width() - 2 * corner_radius, top);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCW, bounds().width() - corner_radius,
- top + corner_radius);
- path.lineTo(bounds().width() - corner_radius,
- bounds().height() - corner_radius);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCCW, bounds().width(), bounds().height());
- path.close();
-
return path;
}
--- a/chrome/browser/ui/views/tabs/tab_style_views.cc
+++ b/chrome/browser/ui/views/tabs/tab_style_views.cc
@@ -214,8 +214,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
@@ -91,3 +72,57 @@
float top_left_corner_radius = content_corner_radius;
float top_right_corner_radius = content_corner_radius;
float bottom_left_corner_radius = content_corner_radius;
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -1161,9 +1161,7 @@ void Tab::UpdateIconVisibility() {
// left that needs to be considered.
const int close_button_width = GetLayoutConstant(TAB_CLOSE_BUTTON_SIZE) +
GetLayoutConstant(TAB_AFTER_TITLE_PADDING);
- const bool large_enough_for_close_button =
- available_width >= (touch_ui ? kTouchMinimumContentsWidthForCloseButtons
- : kMinimumContentsWidthForCloseButtons);
+ const bool large_enough_for_close_button = mouse_hovered_;
if (IsActive()) {
#if BUILDFLAG(IS_CHROMEOS)
@@ -1209,6 +1207,10 @@ void Tab::UpdateIconVisibility() {
large_enough_for_close_button;
if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons"))
showing_close_button_ = false;
+
+ if (closing_) {
+ showing_close_button_ = false;
+ }
if (showing_close_button_) {
available_width -= close_button_width;
}
--- a/chrome/browser/ui/views/tabs/tab_group_highlight.cc
+++ b/chrome/browser/ui/views/tabs/tab_group_highlight.cc
@@ -53,27 +53,8 @@ SkPath TabGroupHighlight::GetPath() cons
// which is a well-scoped interaction. A dragging group doesn't nestle in with
// the tabs around it, so there are no special cases needed when determining
// its shape.
- const int corner_radius = TabStyle::Get()->GetBottomCornerRadius();
- const int top = GetLayoutConstant(TAB_STRIP_PADDING);
SkPath path;
- path.moveTo(0, bounds().height());
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCCW, corner_radius,
- bounds().height() - corner_radius);
- path.lineTo(corner_radius, top + corner_radius);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCW, 2 * corner_radius, top);
- path.lineTo(bounds().width() - 2 * corner_radius, top);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCW, bounds().width() - corner_radius,
- top + corner_radius);
- path.lineTo(bounds().width() - corner_radius,
- bounds().height() - corner_radius);
- path.arcTo(corner_radius, corner_radius, 0, SkPath::kSmall_ArcSize,
- SkPathDirection::kCCW, bounds().width(), bounds().height());
- path.close();
-
return path;
}
@@ -0,0 +1,30 @@
--- a/chrome/browser/ui/views/profiles/avatar_toolbar_button_delegate.cc
+++ b/chrome/browser/ui/views/profiles/avatar_toolbar_button_delegate.cc
@@ -1753,7 +1753,7 @@ AvatarToolbarButtonDelegate::GetTextAndC
break;
}
case ButtonState::kNormal:
- color = color_provider->GetColor(kColorAvatarButtonHighlightNormal);
+ color = std::nullopt;
break;
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
case ButtonState::kHistorySyncOptin: {
@@ -1989,7 +1989,6 @@ ui::ImageModel AvatarToolbarButtonDelega
bool AvatarToolbarButtonDelegate::ShouldPaintBorder() const {
switch (state_manager_->GetButtonActiveState()) {
case ButtonState::kGuestSession:
- return true;
case ButtonState::kShowIdentityName:
case ButtonState::kNormal:
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
--- a/chrome/browser/profiles/profile_avatar_icon_util.cc
+++ b/chrome/browser/profiles/profile_avatar_icon_util.cc
@@ -436,7 +436,7 @@ ui::ImageModel GetGuestAvatar(int size)
if (base::FeatureList::IsEnabled(switches::kEnableImprovedGuestProfileMenu)) {
// Guest profiles generally use the default theme, no need to go through the
// `ThemeService`.
- color_id = ui::kColorSysPrimary;
+ color_id = ui::kColorMenuIcon;
vector_icon = &kAccountBoxIcon;
}
return ui::ImageModel::FromVectorIcon(*vector_icon, color_id, size);
@@ -31,3 +31,25 @@
SkPath path;
path.addRoundRect(gfx::RectToSkRect(rect), radii, radii);
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -1036,7 +1036,7 @@ void ToolbarView::LayoutCommon() {
views::ManualLayoutUtil(layout_manager_)
.SetViewHidden(toolbar_divider_, !extensions_container_->GetVisible());
const SkColor toolbar_extension_separator_color =
- GetColorProvider()->GetColor(kColorToolbarExtensionSeparatorEnabled);
+ GetColorProvider()->GetColor(kColorTabDividerFrameActive);
toolbar_divider_->SetBackground(views::CreateRoundedRectBackground(
toolbar_extension_separator_color,
GetLayoutConstant(TOOLBAR_DIVIDER_CORNER_RADIUS)));
--- a/chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/pinned_toolbar_actions_container.cc
@@ -269,7 +269,7 @@ void PinnedToolbarActionsContainer::Upda
void PinnedToolbarActionsContainer::OnThemeChanged() {
const SkColor toolbar_divider_color =
- GetColorProvider()->GetColor(kColorToolbarExtensionSeparatorEnabled);
+ GetColorProvider()->GetColor(kColorTabDividerFrameActive);
toolbar_divider_->SetBackground(views::CreateRoundedRectBackground(
toolbar_divider_color, GetLayoutConstant(TOOLBAR_DIVIDER_CORNER_RADIUS)));
ToolbarIconContainerView::OnThemeChanged();
+48
View File
@@ -0,0 +1,48 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -561,15 +561,7 @@ class ContentsSeparator : public views::
METADATA_HEADER(ContentsSeparator, views::View)
public:
- ContentsSeparator() {
- SetBackground(
- views::CreateSolidBackground(kColorToolbarContentAreaSeparator));
-
- // BrowserViewLayout will respect either the height or width of this,
- // depending on orientation, not simultaneously both.
- SetPreferredSize(
- gfx::Size(views::Separator::kThickness, views::Separator::kThickness));
- }
+ ContentsSeparator() {}
};
BEGIN_METADATA(ContentsSeparator)
@@ -833,8 +825,7 @@ class BrowserViewLayoutDelegateImpl : pu
// will enable BrowserViewLayout to hide the contents separator on its own
// using the same logic used by normal BrowserViews.
// The separator should not be shown when in split view.
- return !browser_view_->browser()->app_controller() &&
- !browser_view_->IsInSplitView();
+ return false;
}
bool IsInSplitView() const override { return browser_view_->IsInSplitView(); }
--- a/chrome/browser/ui/views/frame/top_container_background.cc
+++ b/chrome/browser/ui/views/frame/top_container_background.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
+#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/tabs/tab_strip.h"
#include "chrome/grit/theme_resources.h"
@@ -68,6 +69,7 @@ void TopContainerBackground::PaintBackgr
const BrowserView* browser_view) {
bool painted = PaintThemeCustomImage(canvas, view, browser_view);
if (!painted) {
- canvas->DrawColor(view->GetColorProvider()->GetColor(kColorToolbar));
+ canvas->DrawColor(browser_view->frame()->GetFrameView()->GetFrameColor(
+ BrowserFrameActiveState::kUseCurrent));
}
}
+13 -9
View File
@@ -158,6 +158,7 @@ helium/settings/about-page-tweaks.patch
helium/settings/remove-translate-section.patch
helium/settings/remove-safety-hub-entry-points.patch
helium/settings/reenable-update-status.patch
helium/settings/privacy-page-tweaks.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -167,25 +168,25 @@ helium/ui/update-cr-components.patch
helium/ui/always-use-better-ntp.patch
helium/ui/clean-new-tab-page.patch
helium/ui/remove-toolbar-corners.patch
helium/ui/location-bar-style.patch
helium/ui/location-bar.patch
helium/ui/layout-constants.patch
helium/ui/tab-style.patch
helium/ui/tabs.patch
helium/ui/tab-strip-controls.patch
helium/ui/toolbar-style.patch
helium/ui/omnibox-style.patch
helium/ui/toolbar.patch
helium/ui/omnibox.patch
helium/ui/app-menu-style.patch
helium/ui/fix-customize-side-panel.patch
helium/ui/adjust-immersive-padding.patch
helium/ui/adjust-side-panel-padding.patch
helium/ui/narrow-layout-provider.patch
helium/ui/immersive-padding.patch
helium/ui/side-panel.patch
helium/ui/layout-provider.patch
helium/ui/app-menu-model.patch
helium/ui/remove-dead-toolbar-actions.patch
helium/ui/remove-dead-profile-actions.patch
helium/ui/clean-up-installed-extension-bubble.patch
helium/ui/adjust-selected-keyword-view.patch
helium/ui/selected-keyword-view.patch
helium/ui/bookmark-button-bg-fix.patch
helium/ui/restyle-ntp-tiles.patch
helium/ui/restyle-sidepanels.patch
helium/ui/side-panel-webui.patch
helium/ui/helium-logo-icons.patch
helium/ui/settings-page-icons.patch
helium/ui/square-ntp-monograms.patch
@@ -205,3 +206,6 @@ helium/ui/reduce-text-button-height.patch
helium/ui/fix-omnibox-tabs-icon.patch
helium/ui/smaller-window-grab-handle.patch
helium/ui/fix-pwa-toolbar.patch
helium/ui/top-container.patch
helium/ui/toolbar-avatar-button.patch
helium/ui/status-bubble.patch
+1 -1
View File
@@ -1 +1 @@
6
10