Compare commits

...

4 Commits

Author SHA1 Message Date
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
6 changed files with 97 additions and 1 deletions
@@ -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;
+9
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;
@@ -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');
+ */
}
}
+2
View File
@@ -183,3 +183,5 @@ 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
+1 -1
View File
@@ -1 +1 @@
2
3