Compare commits

...

25 Commits

Author SHA1 Message Date
wukko 327c2eccfc revision: bump to 7 2025-05-17 19:44:37 +06:00
jj a256e3a4e5 helium/bangs: support omnipositional bangs (#16) 2025-05-17 19:42:51 +06:00
wukko f753602e4e helium/ui: fix sidepanel headers 2025-05-17 19:19:46 +06:00
wukko f45035b8c9 helium/ui/cr-components: thinner segmented button 2025-05-17 18:04:45 +06:00
wukko 7310a65592 helium/ui: restyle the "customize chrome" sidepanel 2025-05-17 18:04:25 +06:00
wukko 03b64f23a4 helium/omnibox: make omnibox rows thinner, fix alignment
& also make omnibox_suggestion_button_row_view prettier
2025-05-17 14:51:24 +06:00
wukko 29cf8f0ad3 helium/ui: re-align location bar keyword search 2025-05-17 14:50:49 +06:00
wukko bf61a1a5c0 helium/ui: make toolbar & tab strip thinner 2025-05-17 14:50:23 +06:00
wukko 60f45b2ba5 helium/ui: clean up profile customization dialog
it's seen when you make a new profile
2025-05-17 11:57:23 +06:00
wukko 159473844a helium/copy-page-url-shortcut: fix copy url accelerator
alt -> shift
(oops)
2025-05-17 10:58:08 +06:00
wukko 1e4188bbca merge: update to ungoogled-chromium 136.0.7103.113 2025-05-15 20:23:34 +06:00
networkException 1a4952eb9e Update to Chromium 136.0.7103.113 2025-05-14 20:06:15 +02:00
wukko 2ce4603ecf revision: bump to 5
gawd damn
2025-05-12 22:21:07 +06:00
wukko 6cce6332c7 extras: update onboarding 2025-05-12 22:20:56 +06:00
wukko 8f89dcfa97 revision: bump to 4 2025-05-12 18:32:00 +06:00
wukko 830b7bcc4b helium/ui: disable tab group editor footer 2025-05-12 17:31:37 +06:00
wukko 06da4cfcdc helium/ui: clean up the profile picker
- removed google bg elements
- fixed bottom button alignment
- removed the chrome logo spin easter egg
2025-05-12 17:04:49 +06:00
wukko f34f4e8bd2 helium/settings: remove about page easter egg
no more spinny helium logo
2025-05-12 17:04:11 +06:00
wukko 27d17fa340 resources/branding: add product_logo.svg 2025-05-12 16:51:27 +06:00
wukko fc37b27f9a utils/name_substitution: don't add to tarball if it doesn't exist 2025-05-12 10:25:21 +06:00
jj a290073661 util: rewrite name substitution script in python 2025-05-11 22:03:52 +00:00
wukko 0814b98d6b revision: bump to 3 2025-05-12 00:10:44 +06:00
wukko b6eaed2233 helium/ui: reduce bookmarks bar padding 2025-05-12 00:07:59 +06:00
wukko d13d58652f helium/ui: remove devtools annoyances
- remove feedback button from recorder panel
- remove what's new panel entirely because it's useless & invasive (auto opened by default)
- remove empty help submenu
2025-05-11 22:44:34 +06:00
wukko fde4fe86b6 helium/ui: remove the autofill link from updated profiles menu 2025-05-11 22:43:16 +06:00
25 changed files with 824 additions and 173 deletions
+1 -1
View File
@@ -1 +1 @@
136.0.7103.92
136.0.7103.113
+1 -1
View File
@@ -43,7 +43,7 @@ mkdir -p build/download_cache
```sh
./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c build/domsubcache.tar.gz build/src
./utils/name_substitution.sh" sub build/src
python3 ./utils/name_substitution.py" --sub -t build/src
```
5. Build GN. If you are using `depot_tools` to checkout Chromium or you already have a GN binary, you should skip this step.
+2 -2
View File
@@ -5,8 +5,8 @@ sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
output_path = ./components/resources/default_100_percent/search_engine_choice
[onboarding]
version = 202505031903
version = 202505121619
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 = a8f2ba7665b98191ef343f0134fadea4d73c5954bbc4d2413d10c8fb5e9f8f4c
sha256 = 48e0a8e4a9ecbfd28e0ba3366c9f4d1035878e4f9085751571510be73d85994d
output_path = ./components/helium_onboarding
@@ -423,7 +423,7 @@ by default.
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -14,169 +14,169 @@ const char kChromeSource[] = "ChromiumBr
@@ -14,173 +14,173 @@ const char kChromeSource[] = "ChromiumBr
const char kUnexpectedServiceResponse[] = "UnexpectedServiceResponse";
// OAuth scopes.
@@ -579,6 +579,11 @@ by default.
- "https://www.googleapis.com/auth/experimentsandconfigs";
+ "trk:209:https://www.googleapis.com/auth/experimentsandconfigs";
// OAuth2 scope for access for DriveFS to use client-side notifications.
const char kClientChannelOAuth2Scope[] =
- "https://www.googleapis.com/auth/client_channel";
+ "trk:210:https://www.googleapis.com/auth/client_channel";
// The scope required for an access token in order to query ItemSuggest.
const char kDriveReadOnlyOAuth2Scope[] =
- "https://www.googleapis.com/auth/drive.readonly";
@@ -524,6 +524,54 @@
return FeaturedKeywordMode::kPrefix;
return FeaturedKeywordMode::kFalse;
}
@@ -913,6 +913,7 @@ std::u16string AutocompleteInput::Autoco
const std::u16string& input,
bool trim_leading_whitespace,
std::u16string* remaining_input) {
+ std::u16string_view input_view = input;
// Find end of first token. The AutocompleteController has trimmed leading
// whitespace, so we need not skip over that.
const size_t first_white(input.find_first_of(base::kWhitespaceUTF16));
@@ -921,6 +922,39 @@ std::u16string AutocompleteInput::Autoco
return input; // Only one token provided.
}
+ const size_t first_exclamation(input.find_first_of('!'));
+ if (first_exclamation != std::u16string::npos && first_exclamation != 0) {
+ bool might_be_bang = input_view.substr(first_exclamation - 1)
+ .find_first_of(base::kWhitespaceUTF16) == 0;
+
+ if (might_be_bang) {
+ auto remaining_str = std::u16string(input_view.substr(0, first_exclamation));
+ std::u16string_view bang = input_view.substr(first_exclamation);
+
+ const size_t space_after(
+ input_view.find_first_of(base::kWhitespaceUTF16, first_exclamation)
+ );
+
+ if (space_after != std::string::npos) {
+ bang = bang.substr(0, space_after - first_exclamation);
+ remaining_str += input_view.substr(space_after + 1);
+ } else if (remaining_str.size() > 0) {
+ remaining_str.erase(remaining_str.size() - 1);
+ }
+
+ if (remaining_input != nullptr) {
+ if (trim_leading_whitespace) {
+ size_t offset = remaining_str.find_first_not_of(base::kWhitespaceUTF16);
+ remaining_str.erase(0, offset);
+ }
+
+ *remaining_input = std::move(remaining_str);
+ }
+
+ return std::u16string(bang);
+ }
+ }
+
// Set |remaining_input| to everything after the first token.
if (remaining_input != nullptr) {
const size_t remaining_start =
--- a/components/search_engines/template_url_data.cc
+++ b/components/search_engines/template_url_data.cc
@@ -27,7 +27,7 @@ namespace {
@@ -695,3 +743,16 @@
} // namespace prefs
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -2928,9 +2928,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
return false;
size_t keyword_length = new_text.length() - 1;
- return is_keyword_hint_ && (keyword_.length() == keyword_length) &&
+ return is_keyword_hint_ &&
IsSpaceCharForAcceptingKeyword(new_text[keyword_length]) &&
- !new_text.compare(0, keyword_length, keyword_, 0, keyword_length) &&
AcceptKeyword(OmniboxEventProto::SPACE_AT_END);
}
@@ -27,7 +27,7 @@
{IDC_DEV_TOOLS, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_I},
{IDC_DEV_TOOLS_CONSOLE, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_J},
- {IDC_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_COPY_URL, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_COPY_URL, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN, ui::VKEY_C},
{IDC_FIND, ui::EF_COMMAND_DOWN, ui::VKEY_F},
{IDC_NEW_INCOGNITO_WINDOW, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
ui::VKEY_N},
@@ -0,0 +1,11 @@
--- a/chrome/browser/resources/settings/about_page/about_page.html
+++ b/chrome/browser/resources/settings/about_page/about_page.html
@@ -47,7 +47,7 @@
</style>
<settings-section page-title="$i18n{aboutPageTitle}" section="about">
<div class="cr-row two-line first">
- <img id="product-logo" on-click="onProductLogoClick_"
+ <img id="product-logo"
srcset="chrome://theme/current-channel-logo@1x 1x,
chrome://theme/current-channel-logo@2x 2x"
alt="$i18n{aboutProductLogoAlt}"
@@ -0,0 +1,40 @@
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -172,7 +172,7 @@ using PermanentFolderType = BookmarkPare
bool animations_enabled = true;
// Thickness of the separator (|) in dips (density-independent pixels).
-constexpr int kBookmarkBarSeparatorThickness = 2;
+constexpr int kBookmarkBarSeparatorThickness = 1;
gfx::ImageSkia* GetImageSkiaNamed(int id) {
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
@@ -350,8 +350,8 @@ class BookmarkBarView::ButtonSeparatorVi
public:
ButtonSeparatorView() {
- const int leading_padding = 8;
- const int trailing_padding = 8;
+ const int leading_padding = 3;
+ const int trailing_padding = 3;
separator_thickness_ = kBookmarkBarSeparatorThickness;
const gfx::Insets border_insets =
gfx::Insets::TLBR(0, leading_padding, 0, trailing_padding);
@@ -697,7 +697,7 @@ void BookmarkBarView::Layout(PassKey) {
}
int x = GetLeadingMargin();
- static constexpr int kBookmarkBarTrailingMargin = 8;
+ static constexpr int kBookmarkBarTrailingMargin = 6;
int width = View::width() - x - kBookmarkBarTrailingMargin;
const int button_height = GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT);
@@ -818,7 +818,7 @@ void BookmarkBarView::Layout(PassKey) {
// the bookmark buttons.
if (saved_tab_group_bar_width > 0) {
// Possibly update the paddings of the separator
- constexpr int kSeparatorPadding = 8;
+ constexpr int kSeparatorPadding = 6;
const int left_padding = saved_tab_group_bar_->IsOverflowButtonVisible()
? 0
: kSeparatorPadding;
@@ -0,0 +1,10 @@
--- a/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
+++ b/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
@@ -754,6 +754,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
}
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
+ return false;
PrefService* pref_service = browser_->profile()->GetPrefs();
return (CanSaveGroups() && pref_service &&
saved_tab_group_prefs::GetLearnMoreFooterShownCount(pref_service) <
+16 -7
View File
@@ -1,5 +1,14 @@
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -29,7 +29,7 @@ int GetLayoutConstant(LayoutConstant con
case BOOKMARK_BAR_HEIGHT: {
// The fixed margin ensures the bookmark buttons appear centered relative
// to the white space above and below.
- const int bookmark_bar_attached_vertical_margin = 6;
+ const int bookmark_bar_attached_vertical_margin = 3;
return GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT) +
bookmark_bar_attached_vertical_margin;
}
@@ -52,7 +52,7 @@ int GetLayoutConstant(LayoutConstant con
case LOCATION_BAR_CHILD_INTERIOR_PADDING:
return 3;
@@ -28,7 +37,7 @@
return touch_ui ? 3 : 8;
case LOCATION_BAR_HEIGHT:
- return touch_ui ? 36 : 34;
+ return touch_ui ? 36 : 32;
+ return touch_ui ? 36 : 30;
case LOCATION_BAR_ICON_SIZE:
return touch_ui ? 20 : 16;
case LOCATION_BAR_LEADING_ICON_SIZE:
@@ -37,13 +46,13 @@
return touch_ui ? 24 : 16;
case TAB_HEIGHT:
- return 34 + GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP);
+ return 34;
+ return 33;
case TAB_STRIP_HEIGHT:
return GetLayoutConstant(TAB_HEIGHT) +
GetLayoutConstant(TAB_STRIP_PADDING);
case TAB_STRIP_PADDING:
- return 6;
+ return 4;
+ return 3;
case TAB_SEPARATOR_HEIGHT:
return touch_ui ? 24 : 20;
case TAB_PRE_TITLE_PADDING:
@@ -60,7 +69,7 @@
+ return 0;
case TOOLBAR_BUTTON_HEIGHT:
- return touch_ui ? 48 : 34;
+ return touch_ui ? 48 : 32;
+ return touch_ui ? 48 : 28;
case TOOLBAR_DIVIDER_CORNER_RADIUS:
return 1;
case TOOLBAR_DIVIDER_HEIGHT:
@@ -86,11 +95,11 @@
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, 6);
+ 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, 4);
+ 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.
@@ -99,7 +108,7 @@
case TOOLBAR_BUTTON:
- return gfx::Insets(touch_ui ? 12 : 7);
+ return gfx::Insets(touch_ui ? 12 : 5);
+ return gfx::Insets(touch_ui ? 12 : 4);
case BROWSER_APP_MENU_CHIP_PADDING:
if (touch_ui) {
+2 -2
View File
@@ -128,8 +128,8 @@
// Indentation to match the suggestion icons & texts when in keyword mode.
- int icon_keyword_indent = 9;
- int text_keyword_indent = -9;
+ int icon_keyword_indent = 4;
+ int text_keyword_indent = -2;
+ int icon_keyword_indent = 3;
+ int text_keyword_indent = 0;
// Indentation add padding when the permission chip is visible and replacing
// the LHS icon.
int text_overriding_permission_chip_indent = 0;
+33 -8
View File
@@ -19,8 +19,12 @@
contents_host_->layer()->SetRoundedCornerRadius(
gfx::RoundedCornersF(corner_radius));
contents_host_->layer()->SetIsFastRoundedCorner(true);
@@ -287,7 +286,7 @@ gfx::Insets RoundedOmniboxResultsFrame::
if (ui::TouchUiController::Get()->touch_ui()) {
@@ -284,10 +283,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
// static
gfx::Insets RoundedOmniboxResultsFrame::GetLocationBarAlignmentInsets() {
- if (ui::TouchUiController::Get()->touch_ui()) {
+ if ((false)) {
return gfx::Insets::TLBR(6, 1, 5, 1);
}
- return gfx::Insets::VH(5, 6);
@@ -54,7 +58,7 @@
OmniboxPopupSelection::FOCUSED_BUTTON_REMOVE_SUGGESTION)));
remove_suggestion_button_->SetProperty(views::kMarginsKey,
- gfx::Insets::TLBR(0, 0, 0, 16));
+ gfx::Insets::TLBR(0, 0, 0, 8));
+ gfx::Insets::TLBR(0, 0, 0, 4));
views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
auto* const remove_focus_ring =
views::FocusRing::Get(remove_suggestion_button_);
@@ -128,13 +132,13 @@
// 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 = 6.5f + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
+ int indent = 5 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
return indent;
}
int OmniboxMatchCellView::GetTextIndent() const {
+ return 35;
+ return 33;
// Text indent is added to the `OmniboxMatchCellView::GetInsets()`. It is not
// added to the image position & size.
@@ -145,7 +149,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 = 32;
+ static constexpr int kRowHeight = 30;
// The width of icon, answer, and entity image bounds. These images are
// smaller than this bounds; they'll be centered within the bounds.
@@ -162,7 +166,28 @@
--- a/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
@@ -152,6 +152,7 @@ class OmniboxSuggestionRowButton : publi
@@ -70,7 +70,7 @@ class OmniboxSuggestionRowChip : public
views::DISTANCE_RELATED_BUTTON_HORIZONTAL)));
SetImageLabelSpacing(5);
- SetCustomPadding(gfx::Insets::VH(0, 7));
+ SetCustomPadding(gfx::Insets::VH(0, 6));
SetCornerRadius(100); // Large number to ensure 100% rounded.
views::InkDrop::Get(this)->GetInkDrop()->SetShowHighlightOnHover(false);
@@ -137,9 +137,8 @@ class OmniboxSuggestionRowButton : publi
ui::EF_MIDDLE_MOUSE_BUTTON);
views::InstallPillHighlightPathGenerator(this);
- SetImageLabelSpacing(8);
- SetCustomPadding(ChromeLayoutProvider::Get()->GetInsetsMetric(
- INSETS_OMNIBOX_PILL_BUTTON));
+ SetImageLabelSpacing(6);
+ SetCustomPadding(gfx::Insets::VH(3, 8));
SetCornerRadius(GetLayoutConstant(TOOLBAR_CORNER_RADIUS));
auto* const ink_drop = views::InkDrop::Get(this);
@@ -152,6 +151,7 @@ class OmniboxSuggestionRowButton : publi
CHECK(v);
return v->GetVisible() && v->popup_view_->GetSelection() == v->selection_;
}));
@@ -170,7 +195,7 @@
focus_ring->SetColorId(kColorOmniboxResultsFocusIndicator);
GetViewAccessibility().SetRole(ax::mojom::Role::kListBoxOption);
@@ -235,7 +236,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
@@ -235,7 +235,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
OmniboxPopupViewViews* popup_view,
int model_index)
: popup_view_(popup_view), model_index_(model_index) {
@@ -0,0 +1,35 @@
--- a/chrome/browser/resources/signin/profile_customization/profile_customization_app.css
+++ b/chrome/browser/resources/signin/profile_customization/profile_customization_app.css
@@ -30,9 +30,8 @@
}
.in-dialog-design #header {
- background: center 18px no-repeat
- url(./images/profile_customization_illustration.svg);
- height: 170px;
+ background: none;
+ height: 130px;
}
#avatarContainer {
@@ -47,7 +46,7 @@
.in-dialog-design #avatarContainer {
--avatar-size: 76px;
- top: 91px;
+ top: 60px;
}
#avatar {
@@ -233,11 +232,6 @@ cr-profile-avatar-selector {
border: 1px solid var(--google-grey-500);
}
- .in-dialog-design #header {
- background-image:
- url(./images/profile_customization_illustration_dark.svg);
- }
-
#nameInput {
--cr-input-placeholder-color: rgba(var(--google-grey-200-rgb), .5);
}
@@ -0,0 +1,51 @@
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_app.html.ts
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_app.html.ts
@@ -8,8 +8,6 @@ import type {ProfilePickerAppElement} fr
export function getHtml(this: ProfilePickerAppElement) {
return html`<!--_html_template_start_-->
-<img id="banner-right" alt="">
-<img id="banner-left" alt="">
<cr-view-manager id="viewManager">
<profile-picker-main-view id="mainView" slot="view">
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
@@ -146,11 +146,6 @@ cr-icon[icon='profiles:add'] {
--iron-icon-stroke-color: var(--google-grey-700);
}
-#browseAsGuestButton {
- margin-inline-start: var(--footer-spacing);
- padding: 8px 16px;
-}
-
#browseAsGuestButton > cr-icon {
margin-inline-end: 0;
--iron-icon-height: 24px;
@@ -161,10 +156,10 @@ cr-checkbox {
--cr-checkbox-label-color: var(--cr-secondary-text-color);
--cr-checkbox-label-padding-start: 8px;
justify-content: flex-end;
- margin-inline-end: var(--footer-spacing);
- margin-inline-start: auto;
- padding-inline-end: 5px;
- padding-inline-start: 5px;
+}
+
+.footer {
+ justify-content: space-evenly;
}
#button-sign-in {
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
@@ -20,7 +20,7 @@ ${function() {
<div class="flex-container">
<div class="title-container">
<div id="images-container">
- <img id="product-logo" @click="${this.onProductLogoClick_}"
+ <img id="product-logo"
src="product_logo.svg" role="presentation">
<img id="glic-logo" ?hidden="${!isGlicVersion()}" role="presentation">
</div>
@@ -9,6 +9,14 @@
BuildSyncInfo();
BuildAutofillButtons();
}
@@ -901,6 +901,7 @@ void ProfileMenuView::BuildIdentityWithC
}
void ProfileMenuView::BuildAutofillSettingsButton() {
+ return;
CHECK(!browser()->profile()->IsGuestSession());
AddFeatureButton(
l10n_util::GetStringUTF16(IDS_PROFILE_MENU_AUTOFILL_SETTINGS_BUTTON),
--- a/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
+++ b/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
@@ -690,8 +690,6 @@ void ProfileMenuViewBase::SetProfileIden
@@ -0,0 +1,37 @@
--- a/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
+++ b/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
@@ -1449,9 +1449,11 @@ export class RecorderController extends
}
></devtools-button>
<div class="feedback">
+ <!--
<x-link class="x-link" href=${
FEEDBACK_URL
} jslog=${VisualLogging.link('feedback').track({click: true})}>${i18nString(UIStrings.sendFeedback)}</x-link>
+ -->
</div>
<div class="separator"></div>
<devtools-shortcut-dialog
--- a/third_party/devtools-frontend/src/front_end/entrypoints/devtools_app/devtools_app.ts
+++ b/third_party/devtools-frontend/src/front_end/entrypoints/devtools_app/devtools_app.ts
@@ -26,7 +26,6 @@ import '../../panels/web_audio/web_audio
import '../../panels/webauthn/webauthn-meta.js';
import '../../panels/layer_viewer/layer_viewer-meta.js';
import '../../panels/recorder/recorder-meta.js';
-import '../../panels/whats_new/whats_new-meta.js';
import * as Root from '../../core/root/root.js';
import * as Main from '../main/main.js';
--- a/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
+++ b/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
@@ -959,8 +959,10 @@ export class MainMenuItem implements UI.
}, {jslogContext: id});
}
+ /*
const helpSubMenu = contextMenu.footerSection().appendSubMenuItem(i18nString(UIStrings.help), false, 'help');
helpSubMenu.appendItemsAtLocation('mainMenuHelp');
+ */
}
}
@@ -1,48 +0,0 @@
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
@@ -14,11 +14,6 @@ export function getHtml(this: ToolbarEle
back-button-title="$i18n{backButton}">
<h2 slot="heading">$i18n{toolbarHeader}</h2>
</sp-heading>
- <div id="miniToolbarBackground">
- <svg id="miniToolbar" src="icons/mini_toolbar.svg">
- <use href="icons/mini_toolbar.svg#miniToolbar"></use>
- </svg>
- </div>
<div class="intro-text">$i18n{chooseToolbarIconsLabel}</div>
<cr-button id="resetToDefaultButton" class="floating-button"
@click="${this.onResetToDefaultClicked_}"
--- a/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
@@ -13,15 +13,6 @@ export function getHtml(this: ThemeSnaps
${this.themeType_ === CustomizeThemeType.CUSTOM_THEME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CUSTOM_THEME}">
- <div class="image-background" id="customThemeImageBackground"
- @click="${this.onThemeSnapshotClick_}">
- <img class="image" id="customThemeImage" is="cr-auto-img"
- .autoSrc="${this.theme_!.backgroundImage!.snapshotUrl.url}"
- draggable="false"
- aria-labelledby="customThemeTitle">
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="customThemeTitle" class="theme-title">
${this.theme_!.backgroundImage!.title}
</div>
@@ -30,15 +21,6 @@ ${this.themeType_ === CustomizeThemeType
${this.themeType_ === CustomizeThemeType.CLASSIC_CHROME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CLASSIC_CHROME}">
- <div class="image-background image" id="classicChromeBackground"
- @click="${this.onThemeSnapshotClick_}">
- <svg id="miniNewTabPage" aria-labelledby="classicChromeThemeTitle"
- viewBox="0 0 240 126" preserveAspectRatio="xMidYMid meet">
- <use href="icons/mini_new_tab_page.svg#miniNewTabPage"></use>
- </svg>
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="classicChromeThemeTitle" class="theme-title">
$i18n{classicChrome}
</div>
+321
View File
@@ -0,0 +1,321 @@
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
@@ -8,31 +8,15 @@ import type {ToolbarElement} from './too
export function getHtml(this: ToolbarElement) {
return html`<!--_html_template_start_-->
-<div class="sp-card">
- <sp-heading id="heading" @back-button-click="${this.onBackClick_}"
+<div class="sp-card" id="pinningSelectionCard">
+ <sp-heading id="heading" class="separator" @back-button-click="${this.onBackClick_}"
back-button-aria-label="$i18n{backButton}"
back-button-title="$i18n{backButton}">
<h2 slot="heading">$i18n{toolbarHeader}</h2>
</sp-heading>
- <div id="miniToolbarBackground">
- <svg id="miniToolbar" src="icons/mini_toolbar.svg">
- <use href="icons/mini_toolbar.svg#miniToolbar"></use>
- </svg>
- </div>
- <div class="intro-text">$i18n{chooseToolbarIconsLabel}</div>
- <cr-button id="resetToDefaultButton" class="floating-button"
- @click="${this.onResetToDefaultClicked_}"
- ?disabled="${this.resetToDefaultDisabled_}">
- <div id="resetToDefaultIcon" class="cr-icon" slot="prefix-icon"></div>
- $i18n{resetToDefaultButtonLabel}
- </cr-button>
-</div>
-<hr class="sp-cards-separator">
-<div class="sp-card" id="pinningSelectionCard">
${
this.categories_.map(
(category, categoryIndex) => html`
- <h3 class="choose-icons-row category-title">${category.displayName}</h3>
${
this.actions_.map(
(action) => action.category === category.id ?
@@ -76,6 +60,13 @@ export function getHtml(this: ToolbarEle
html`<hr class="sp-hr">` :
''}
`)}
+ <hr class="sp-hr">
+ <cr-button id="resetToDefaultButton"
+ @click="${this.onResetToDefaultClicked_}"
+ ?disabled="${this.resetToDefaultDisabled_}">
+ <div id="resetToDefaultIcon" class="cr-icon" slot="prefix-icon"></div>
+ $i18n{resetToDefaultButtonLabel}
+ </cr-button>
</div>
<hr class="sp-cards-separator">
<div class="sp-card" id="tipCard">
--- a/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
@@ -13,15 +13,6 @@ export function getHtml(this: ThemeSnaps
${this.themeType_ === CustomizeThemeType.CUSTOM_THEME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CUSTOM_THEME}">
- <div class="image-background" id="customThemeImageBackground"
- @click="${this.onThemeSnapshotClick_}">
- <img class="image" id="customThemeImage" is="cr-auto-img"
- .autoSrc="${this.theme_!.backgroundImage!.snapshotUrl.url}"
- draggable="false"
- aria-labelledby="customThemeTitle">
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="customThemeTitle" class="theme-title">
${this.theme_!.backgroundImage!.title}
</div>
@@ -30,15 +21,6 @@ ${this.themeType_ === CustomizeThemeType
${this.themeType_ === CustomizeThemeType.CLASSIC_CHROME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CLASSIC_CHROME}">
- <div class="image-background image" id="classicChromeBackground"
- @click="${this.onThemeSnapshotClick_}">
- <svg id="miniNewTabPage" aria-labelledby="classicChromeThemeTitle"
- viewBox="0 0 240 126" preserveAspectRatio="xMidYMid meet">
- <use href="icons/mini_new_tab_page.svg#miniNewTabPage"></use>
- </svg>
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="classicChromeThemeTitle" class="theme-title">
$i18n{classicChrome}
</div>
--- a/chrome/browser/resources/side_panel/customize_chrome/app.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.css
@@ -23,10 +23,6 @@
display: block;
}
-sp-heading {
- margin: 8px 16px;
-}
-
.sp-card {
font-size: 12px;
font-weight: 500;
@@ -38,7 +34,7 @@ sp-heading {
border: none;
color: var(--cr-primary-text-color);
display: flex;
- height: 52px;
+ height: 48px;
justify-content: space-between;
padding: 8px 16px;
}
--- a/chrome/browser/resources/side_panel/customize_chrome/app.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.html.ts
@@ -14,7 +14,7 @@ export function getHtml(this: AppElement
selected="${this.page_}" attr-for-selected="page-name">
<div page-name="overview" id="overviewPage">
<div id="appearance" class="section sp-card">
- <sp-heading hide-back-button>
+ <sp-heading hide-back-button class="separator">
<h2 slot="heading">$i18n{appearanceHeader}</h2>
</sp-heading>
<customize-chrome-appearance @edit-theme-click="${this.onEditThemeClick_}"
@@ -35,9 +35,6 @@ export function getHtml(this: AppElement
</cr-button>
${this.isSourceTabFirstPartyNtp_ ? html`<hr class="sp-cards-separator">
<div id="shortcuts" class="section sp-card">
- <sp-heading hide-back-button>
- <h2 slot="heading">$i18n{shortcutsHeader}</h2>
- </sp-heading>
<customize-chrome-shortcuts></customize-chrome-shortcuts>
</div>`: ''}
${(this.modulesEnabled_ && this.isSourceTabFirstPartyNtp_) ? html`
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.css
@@ -25,7 +25,8 @@
}
#editThemeButton {
- flex-grow: 1;
+ width: calc(100% - 32px);
+ margin: 12px 16px 8px 16px;
}
#wallpaperSearchButton {
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.html.ts
@@ -11,7 +11,7 @@ export function getHtml(this: Appearance
return html`<!--_html_template_start_-->
<customize-chrome-theme-snapshot id="themeSnapshot"
@edit-theme-click="${this.onEditThemeClicked_}"
- ?hidden="${!this.showThemeSnapshot_}">
+ ?hidden="${true}">
</customize-chrome-theme-snapshot>
<customize-chrome-hover-button id="thirdPartyThemeLinkButton"
class="link-out-button theme-button"
@@ -42,13 +42,7 @@ ${(!this.isSourceTabFirstPartyNtp_ && !!
this.ntpManagedByName_)}">
</customize-chrome-hover-button>
`: ''}
-<div id="editButtonsContainer" ?hidden="${!this.showEditTheme_}">
- <cr-button id="editThemeButton" @click="${this.onEditThemeClicked_}"
- class="floating-button">
- <div id="editThemeIcon" class="cr-icon edit-theme-icon" slot="prefix-icon"
- ?hidden="${this.wallpaperSearchButtonEnabled_}"></div>
- ${this.editThemeButtonText_}
- </cr-button>
+<div id="editButtonsContainer" ?hidden="${true}">
${this.wallpaperSearchButtonEnabled_ ? html`
<cr-button id="wallpaperSearchButton"
@click="${this.onWallpaperSearchClicked_}" class="floating-button">
@@ -58,11 +52,15 @@ ${(!this.isSourceTabFirstPartyNtp_ && !!
</cr-button>
` : ''}
</div>
-<hr class="sp-hr" ?hidden="${!this.showEditTheme_}">
<customize-color-scheme-mode></customize-color-scheme-mode>
<cr-theme-color-picker id="chromeColors" ?hidden="${!this.showColorPicker_}">
</cr-theme-color-picker>
-<hr class="sp-hr" ?hidden="${!this.showBottomDivider_}">
+<hr class="sp-hr">
+ <cr-button id="editThemeButton" @click="${this.onEditThemeClicked_}">
+ <div id="editThemeIcon" class="cr-icon edit-theme-icon" slot="prefix-icon"
+ ?hidden="${this.wallpaperSearchButtonEnabled_}"></div>
+ ${this.editThemeButtonText_}
+ </cr-button>
<div id="followThemeToggle" class="sp-card-content"
?hidden="${!this.showDeviceThemeToggle_}">
<div id="followThemeToggleTitle">$i18n{followThemeToggle}</div>
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.css
@@ -21,15 +21,11 @@
#pinningSelectionCard {
/* Remove horizontal padding for highlight */
- padding: 16px 0px 0px 0px;
- max-width: calc(360px - 2 * var(--sp-body-padding));
+ padding: 8px 0;
+ max-width: calc(360px - 2 * 8px);
overflow: hidden;
}
-.sp-card sp-heading {
- padding: 0;
-}
-
.choose-icons-row-container {
align-items: center;
display: flex;
@@ -49,7 +45,7 @@
.sp-hr {
width: auto;
- margin: 8px 16px;
+ margin: 6px 16px;
}
.choose-icons-row {
@@ -87,8 +83,8 @@
}
#resetToDefaultButton {
- margin: 0 0 8px 0;
- width: 100%;
+ margin: 8px 16px;
+ width: calc(100% - 32px);
}
#resetToDefaultIcon {
@@ -105,7 +101,7 @@
color: var(--cr-secondary-text-color);
font-weight: 400;
text-align: center;
- padding: 0 0 16px;
+ padding: 8px 0 16px 0;
}
#tipCard {
--- a/chrome/browser/resources/side_panel/customize_chrome/shortcuts.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/shortcuts.css
@@ -29,10 +29,9 @@ cr-radio-group {
.option {
display: flex;
- align-items: flex-start;
+ align-items: center;
gap: 16px;
padding: var(--sp-card-padding);
- padding-inline-start: 32px;
}
.option:hover {
--- a/chrome/browser/resources/side_panel/shared/sp_shared_style_lit.css
+++ b/chrome/browser/resources/side_panel/shared/sp_shared_style_lit.css
@@ -10,7 +10,7 @@
.sp-card {
background: var(--color-side-panel-card-background);
- border-radius: 12px;
+ border-radius: 6px;
display: block;
margin: 0 var(--sp-body-padding);
padding: var(--sp-card-block-padding) 0;
@@ -21,6 +21,15 @@
padding: 0 var(--sp-card-inline-padding);
}
+.sp-card sp-heading.separator {
+ margin-bottom: 8px;
+}
+
+.option {
+ align-items: center;
+ padding-inline-start: 0;
+}
+
.sp-scroller {
display: block;
overflow-x: hidden;
@@ -77,7 +86,7 @@
.sp-cards-separator {
border: 0;
flex-shrink: 0;
- height: 8px;
+ height: 6px;
margin: 0;
width: 100%;
}
--- a/chrome/browser/resources/side_panel/shared/sp_shared_vars.css
+++ b/chrome/browser/resources/side_panel/shared/sp_shared_vars.css
@@ -8,7 +8,7 @@
* #css_wrapper_metadata_end */
html {
- --sp-body-padding: 8px;
+ --sp-body-padding: 6px;
--sp-card-block-padding: 8px;
--sp-card-inline-padding: 16px;
--sp-card-padding: var(--sp-card-block-padding) var(--sp-card-inline-padding);
--- a/chrome/browser/resources/side_panel/shared/sp_heading.css
+++ b/chrome/browser/resources/side_panel/shared/sp_heading.css
@@ -15,12 +15,8 @@
align-items: center;
display: flex;
flex-shrink: 0;
- gap: 4px;
- height: 36px;
-}
-
-:host([compact]) {
- height: 36px;
+ gap: 12px;
+ height: 28px;
}
#backButton,
--- a/chrome/browser/resources/side_panel/customize_chrome/themes.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/themes.html.ts
@@ -9,7 +9,7 @@ import type {ThemesElement} from './them
export function getHtml(this: ThemesElement) {
return html`<!--_html_template_start_-->
<div class="sp-card">
- <sp-heading id="heading" @back-button-click="${this.onBackClick_}"
+ <sp-heading id="heading" class="separator" @back-button-click="${this.onBackClick_}"
back-button-aria-label="$i18n{backButton}"
back-button-title="$i18n{backButton}">
<h2 slot="heading">${this.header_}</h2>
@@ -256,3 +256,34 @@
min-width: 288px;
opacity: 0;
padding: 0 16px;
--- a/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button.css
+++ b/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button.css
@@ -9,15 +9,17 @@
* #css_wrapper_metadata_end */
:host {
- --segmented-button-height: 44px;
+ --segmented-button-height: 38px;
--segmented-button-width: 100%;
--segmented-button-padding: 2px;
+ --segmented-button-radius: 10px;
+ --segmented-button-child-radius: 8px;
}
cr-radio-group {
- border: 1px var(--color-segmented-button-border,
+ outline: 1px var(--color-segmented-button-border,
var(--cr-fallback-color-tonal-outline)) solid;
- border-radius: var(--segmented-button-height);
+ border-radius: var(--segmented-button-radius);
box-sizing: border-box;
display: grid;
grid-auto-columns: 1fr;
@@ -25,6 +27,7 @@ cr-radio-group {
height: var(--segmented-button-height);
padding: var(--segmented-button-padding);
width: var(--segmented-button-width);
+ gap: var(--segmented-button-padding);
}
:host ::slotted(*) {
+7 -1
View File
@@ -147,6 +147,7 @@ helium/settings/remove-autofill.patch
helium/settings/fix-page-names.patch
helium/settings/disable-safety-hub-page.patch
helium/settings/remove-results-help-link.patch
helium/settings/remove-about-page-easter-egg.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -174,7 +175,7 @@ helium/ui/clean-up-installed-extension-bubble.patch
helium/ui/adjust-selected-keyword-view.patch
helium/ui/bookmark-button-bg-fix.patch
helium/ui/restyle-ntp-tiles.patch
helium/ui/remove-preview-from-sidepanels.patch
helium/ui/restyle-sidepanels.patch
helium/ui/helium-logo-icons.patch
helium/ui/settings-page-icons.patch
helium/ui/square-ntp-monograms.patch
@@ -183,3 +184,8 @@ helium/ui/improve-toast.patch
helium/ui/square-interstitial-buttons.patch
helium/ui/remove-reading-list-from-app-menu.patch
helium/ui/center-window-on-launch.patch
helium/ui/remove-devtools-annoyances.patch
helium/ui/bookmarks-bar-padding.patch
helium/ui/profile-picker-cleanup.patch
helium/ui/disable-tab-group-editor-footer.patch
helium/ui/profile-customization-cleanup.patch
+15
View File
@@ -0,0 +1,15 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_179_610)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M256 79.7288C256 76.6897 256.001 73.6504 255.983 70.611C255.967 68.0507 255.938 65.491 255.868 62.932C255.718 57.3544 255.389 51.7289 254.397 46.2134C253.391 40.6184 251.748 35.4111 249.159 30.3275C246.614 25.3309 243.29 20.7586 239.323 16.7947C235.357 12.8307 230.784 9.50832 225.785 6.96479C220.696 4.37529 215.483 2.73304 209.882 1.72737C204.366 0.736929 198.739 0.408542 193.161 0.257863C190.601 0.188582 188.04 0.159378 185.478 0.143533C182.437 0.124893 179.396 0.126446 176.355 0.126446L141.048 0H114.64L79.9568 0.126446C76.91 0.126446 73.8632 0.124893 70.8164 0.143533C68.2496 0.159378 65.684 0.188582 63.1181 0.257863C57.5275 0.408542 51.8878 0.73724 46.3586 1.72893C40.75 2.73428 35.5294 4.37591 30.4336 6.96355C25.4246 9.50738 20.8412 12.8301 16.867 16.7947C12.8934 20.7583 9.56265 25.3296 7.01292 30.3253C4.4169 35.4114 2.77093 40.6218 1.76247 46.2199C0.769548 51.7333 0.44054 57.3568 0.289241 62.932C0.22027 65.4913 0.190445 68.051 0.174911 70.611C0.156271 73.6507 0 77.4264 0 80.4657L0.000932032 114.668L0 141.359L0.157824 176.288C0.157824 179.331 0.156581 182.375 0.174911 185.418C0.190445 187.982 0.22027 190.545 0.289551 193.108C0.44054 198.693 0.770169 204.326 1.76403 209.849C2.77217 215.451 4.41783 220.666 7.01168 225.756C9.56172 230.76 12.8931 235.338 16.867 239.308C20.8409 243.277 25.423 246.604 30.4312 249.151C35.53 251.744 40.7531 253.389 46.3652 254.396C51.8918 255.388 57.5297 255.717 63.1181 255.867C65.684 255.937 68.2499 255.966 70.8167 255.982C73.8635 256 76.91 255.999 79.9568 255.999L114.953 256H141.427L176.355 255.999C179.396 255.999 182.437 256 185.478 255.982C188.04 255.966 190.601 255.937 193.161 255.867C198.741 255.716 204.37 255.387 209.889 254.394C215.486 253.388 220.697 251.744 225.783 249.152C230.782 246.605 235.357 243.278 239.323 239.308C243.289 235.339 246.613 230.761 249.158 225.759C251.749 220.666 253.392 215.449 254.398 209.843C255.389 204.322 255.718 198.69 255.869 193.108C255.938 190.545 255.967 187.982 255.983 185.418C256.002 182.375 256 179.331 256 176.288C256 176.288 255.998 141.975 255.998 141.359V114.64C255.998 114.185 256 79.7288 256 79.7288" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M256 79.7288C256 76.6897 256.001 73.6504 255.983 70.611C255.967 68.0507 255.938 65.491 255.868 62.932C255.718 57.3544 255.389 51.7289 254.397 46.2134C253.391 40.6184 251.748 35.4111 249.159 30.3275C246.614 25.3309 243.29 20.7586 239.323 16.7947C235.357 12.8307 230.784 9.50832 225.785 6.96479C220.696 4.37529 215.483 2.73304 209.882 1.72737C204.366 0.736929 198.739 0.408542 193.161 0.257863C190.601 0.188582 188.04 0.159378 185.478 0.143533C182.437 0.124893 179.396 0.126446 176.355 0.126446L141.048 0H114.64L79.9568 0.126446C76.91 0.126446 73.8632 0.124893 70.8164 0.143533C68.2496 0.159378 65.684 0.188582 63.1181 0.257863C57.5275 0.408542 51.8878 0.73724 46.3586 1.72893C40.75 2.73428 35.5294 4.37591 30.4336 6.96355C25.4246 9.50738 20.8412 12.8301 16.867 16.7947C12.8934 20.7583 9.56265 25.3296 7.01292 30.3253C4.4169 35.4114 2.77093 40.6218 1.76247 46.2199C0.769548 51.7333 0.44054 57.3568 0.289241 62.932C0.22027 65.4913 0.190445 68.051 0.174911 70.611C0.156271 73.6507 0 77.4264 0 80.4657L0.000932032 114.668L0 141.359L0.157824 176.288C0.157824 179.331 0.156581 182.375 0.174911 185.418C0.190445 187.982 0.22027 190.545 0.289551 193.108C0.44054 198.693 0.770169 204.326 1.76403 209.849C2.77217 215.451 4.41783 220.666 7.01168 225.756C9.56172 230.76 12.8931 235.338 16.867 239.308C20.8409 243.277 25.423 246.604 30.4312 249.151C35.53 251.744 40.7531 253.389 46.3652 254.396C51.8918 255.388 57.5297 255.717 63.1181 255.867C65.684 255.937 68.2499 255.966 70.8167 255.982C73.8635 256 76.91 255.999 79.9568 255.999L114.953 256H141.427L176.355 255.999C179.396 255.999 182.437 256 185.478 255.982C188.04 255.966 190.601 255.937 193.161 255.867C198.741 255.716 204.37 255.387 209.889 254.394C215.486 253.388 220.697 251.744 225.783 249.152C230.782 246.605 235.357 243.278 239.323 239.308C243.289 235.339 246.613 230.761 249.158 225.759C251.749 220.666 253.392 215.449 254.398 209.843C255.389 204.322 255.718 198.69 255.869 193.108C255.938 190.545 255.967 187.982 255.983 185.418C256.002 182.375 256 179.331 256 176.288C256 176.288 255.998 141.975 255.998 141.359V114.64C255.998 114.185 256 79.7288 256 79.7288" fill="#5566B1"/>
<path d="M122.494 51.4321C122.494 48.6035 124.787 46.3105 127.615 46.3105C130.444 46.3105 132.737 48.6035 132.737 51.4321V203.797C132.737 206.625 130.444 208.918 127.615 208.918C124.787 208.918 122.494 206.625 122.494 203.797V51.4321Z" fill="white"/>
<path d="M56.1722 63.3416C54.1722 61.3415 54.1722 58.0987 56.1722 56.0987C58.1723 54.0986 61.4151 54.0986 63.4151 56.0987L199.899 192.582C201.899 194.582 201.899 197.825 199.899 199.825C197.899 201.825 194.656 201.825 192.656 199.825L56.1722 63.3416Z" fill="white"/>
<path d="M192.655 56.0982C194.655 54.0981 197.898 54.0981 199.898 56.0982C201.898 58.0983 201.898 61.341 199.898 63.3411L63.4148 199.825C61.4147 201.825 58.172 201.825 56.1719 199.825C54.1718 197.824 54.1718 194.582 56.1719 192.582L192.655 56.0982Z" fill="white"/>
<path d="M204.182 122.876C207.01 122.876 209.303 125.169 209.303 127.998C209.303 130.826 207.01 133.119 204.182 133.119L51.8168 133.119C48.9883 133.119 46.6953 130.826 46.6953 127.998C46.6953 125.169 48.9883 122.876 51.8168 122.876H204.182Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_179_610">
<rect width="256" height="256" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

+2
View File
@@ -53,3 +53,5 @@ branding/product_icon/256x256.png chrome/app/theme/chromium/linux/product_logo_2
branding/product_icon/16x16.png chrome/app/theme/default_100_percent/chromium/linux/product_logo_16.png
branding/product_icon/32x32.png chrome/app/theme/default_100_percent/chromium/linux/product_logo_32.png
branding/product_logo.svg chrome/app/theme/chromium/product_logo.svg
+1 -1
View File
@@ -1 +1 @@
2
7
+132
View File
@@ -0,0 +1,132 @@
#!/usr/bin/env python3
# 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.
from pathlib import Path
import argparse
import tarfile
import asyncio
import os
import re
REPLACEMENT_REGEXES_STR = [
# stuff we don't want to replace
(r'(\w+) Root Program', r'\1_unreplace Root Program'),
(r'(\w+) Web( S|s)tore', r'\1_unreplace Web Store'),
(r'(\w+) Remote Desktop', r'\1_unreplace Remote Desktop'),
(r'("BEGIN_LINK_CHROMIUM")(.*?Chromium)(.*?<ph name="END_LINK_CHROMIUM")', r'\1\2_unreplace\3'),
# main replacement(s)
(r'(?:Google )?Chrom(e|ium)(?!\w)', r'Helium'),
# post-replacement cleanup
(r'((?:Google )?Chrom(e|ium))_unreplace', r'\1'),
(r'_unreplace', r'')
]
REPLACEMENT_REGEXES = list(
map(
lambda line: (re.compile(line[0]), line[1]),
REPLACEMENT_REGEXES_STR
)
)
def replace(str):
for regex, replacement in REPLACEMENT_REGEXES:
str = re.sub(regex, replacement, str)
return str
def replacement_sanity():
before_after = [
('Chrome Root Program', 'Chrome Root Program'),
('Chrome Web Store', 'Chrome Web Store'),
('Chromium Web Store', 'Chromium Web Store'),
('Chrome Remote Desktop', 'Chrome Remote Desktop'),
('Google Chrome', 'Helium'),
('Chrome Google Chrome Chrome Chromium', 'Helium Helium Helium Helium'),
('Chrome', 'Helium'),
('Chromium', 'Helium'),
]
for a, b in before_after:
assert(replace(a) == b)
def parse_args():
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('--sub', action='store_true')
group.add_argument('--unsub', action='store_true')
parser.add_argument('--backup-path', metavar='<tarball-path>', type=Path)
parser.add_argument('-t', metavar='source_tree', type=Path, required=True)
args = parser.parse_args()
if args.unsub and not args.backup_path:
raise Exception("backup_path is missing, but unsub was specified")
return args
def get_substitutable_files(tree):
out = tree / 'out'
for root, _, files in os.walk(tree):
root = Path(root)
if out in root.parents:
continue
yield from map(
lambda filename: root / filename,
filter(
lambda filename: not filename.startswith('.') and (
filename.endswith('.xtb') or filename.endswith('.grd') or filename.endswith('.grdp')
),
files
)
)
async def substitute_file(tree, path, tarball = None):
arcname = str(path.relative_to(tree))
text = None
with open(path, 'r') as f:
text = f.read()
replaced = replace(text)
if text != replaced:
print(f"Replaced strings in {arcname}")
if tarball:
tarball.add(path, arcname=arcname, recursive=False)
with open(path, 'w') as f:
f.write(replaced)
def do_unsubstitution(tree, tarpath):
with tarfile.open(str(tarpath), 'r:gz') as tar:
tar.extractall(path=tree, filter='fully_trusted')
tarpath.unlink()
async def do_substitution(tree, tarpath):
with tarfile.open(str(tarpath), 'w:gz') if tarpath else open(os.devnull, 'w') as cache_tar:
pending_substitutions = map(
lambda path: substitute_file(tree, path, cache_tar if tarpath else None),
get_substitutable_files(tree)
)
await asyncio.gather(*pending_substitutions)
async def main():
replacement_sanity()
args = parse_args()
if not (args.t / "OWNERS").exists():
raise Exception("wrong src directory")
if args.sub:
if args.backup_path is not None and args.backup_path.exists():
raise Exception("unsub tarball already exists, aborting")
await do_substitution(args.t, args.backup_path)
elif args.unsub and args.backup_path:
do_unsubstitution(args.t, args.backup_path)
if __name__ == '__main__':
asyncio.run(main())
-100
View File
@@ -1,100 +0,0 @@
#!/bin/bash
# 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.
set -e
ACTION="$1"
SOURCE_DIR="$2"
BACKUP_TAR_PATH="$3"
REGEXES=(
# stuff we don't want to replace
's/(\w+) Root Program/\1_unreplace Root Program/g'
's/(\w+) Web( S|s)tore/\1_unreplace Web Store/g'
's/(\w+) Remote Desktop/\1_unreplace Remote Desktop/g'
's/("BEGIN_LINK_CHROMIUM")(.*?Chromium)(.*?<ph name="END_LINK_CHROMIUM")/\1\2_unreplace\3/g'
# main replacement(s)
's/(?:Google )?Chrom(e|ium)(?!\w)/Helium/g'
# post-replacement cleanup
's/((?:Google )?Chrom(e|ium))_unreplace/\1/g'
's/_unreplace//g'
)
REGEX_CHAIN=$(IFS=';'; echo "${REGEXES[*]}")
sanity_check() {
if ! [ -f OWNERS ]; then
echo "wrong src directory" >&2
exit 1
fi
}
do_sub() {
if [ "$BACKUP_TAR_PATH" != "" ] && [ -f "$BACKUP_TAR_PATH" ]; then
echo "$(basename "$BACKUP_TAR_PATH") exists -- name substitution has already been done." >&2
echo "if you are really sure you wanna do this, delete it" >&2
exit 1
elif [ "$BACKUP_TAR_PATH" != "" ]; then
BACKUP_TAR_PATH=$(greadlink -f "$BACKUP_TAR_PATH")
fi
case $OSTYPE in
darwin*) SED_CMD=gsed;;
*) SED_CMD=sed;;
esac
cd "$SOURCE_DIR" && sanity_check
FILE_LIST="$(find . -type f -not -path '*/.*' -not -path '*/out/*' -name '*.grd*' -o -name '*.xtb')"
if [ "$BACKUP_TAR_PATH" != "" ]; then
echo "$FILE_LIST" \
| xargs tar cvf "$BACKUP_TAR_PATH" >/dev/null 2>/dev/null
fi
while IFS= read -r file_path; do
if [[ $file_path == ./out/* ]] || [[ $file_path == *.new ]]; then
continue;
fi
if [ "$DEBUG" = 1 ]; then
cp "$file_path" "$file_path.new"
perl -pi -e "$REGEX_CHAIN" "$file_path.new"
diff -Naur "$file_path" "$file_path.new" || true
mv "$file_path.new" "$file_path"
else
perl -pi -e "$REGEX_CHAIN" "$file_path" &
fi
done <<< "$FILE_LIST"
wait
}
do_unsub() {
if [ "$BACKUP_TAR_PATH" = "" ] && ! [ -f "$BACKUP_TAR_PATH" ]; then
echo "BACKUP_TAR_PATH missing or file does not exist" >&2
exit 1
fi
BACKUP_TAR_PATH=$(greadlink -f "$BACKUP_TAR_PATH")
cd "$SOURCE_DIR" && sanity_check
tar xvf "$BACKUP_TAR_PATH"
rm "$BACKUP_TAR_PATH"
}
do_str() {
perl -pe "$REGEX_CHAIN" <<< "$1"
}
case $ACTION in
sub) do_sub;;
unsub) do_unsub;;
str) do_str "$2";;
*) echo "usage: $0 <sub | unsub> source_dir [backup_tarball_path]" >&2
exit 1
esac