mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 327c2eccfc | |||
| a256e3a4e5 | |||
| f753602e4e | |||
| f45035b8c9 | |||
| 7310a65592 | |||
| 03b64f23a4 | |||
| 29cf8f0ad3 | |||
| bf61a1a5c0 | |||
| 60f45b2ba5 | |||
| 159473844a | |||
| 1e4188bbca | |||
| 1a4952eb9e | |||
| 2ce4603ecf | |||
| 6cce6332c7 |
@@ -1 +1 @@
|
||||
136.0.7103.92
|
||||
136.0.7103.113
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+6
-1
@@ -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},
|
||||
|
||||
@@ -37,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:
|
||||
@@ -46,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:
|
||||
@@ -69,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:
|
||||
@@ -95,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.
|
||||
@@ -108,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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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(*) {
|
||||
|
||||
+2
-1
@@ -175,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
|
||||
@@ -188,3 +188,4 @@ 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
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
4
|
||||
7
|
||||
|
||||
Reference in New Issue
Block a user