-
-
Notifications
You must be signed in to change notification settings - Fork 108
WIP: Vertical tabs #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@wukko PR should be mostly working, except for tab groups (their underline layout will be off) :3
|
|
Also DnD doesn't work for last tab in a strip, probably something to do with padding logic. |
|
this would be great |
If this works and some other features like spaces, tab groups, pinned tabs and other features from Zen come here, I might just make the switch. |
|
but, maybe you actually need to modify source then, instead of just using patch files. |
… what do you think patch files are? |
Oh, so patch files are modification of source, but in a way that makes your codebase less messy? I really don't know much about browsers in general. |
|
and btw is vertical tabs a consideration at this point in time? |
Vanilla Chromium already has tab groups, pinned tabs and profiles (instead of spaces). |
I agree, but that would require even more changes to core Chromium layout and those changes will break on every new Chromium release. |
|
@wukko I have a few questions:
|
|
@thenhnn |
|
@hassidan, do you mean microsoft edge or something else? |
|
BTW, just saw that: |
fwiw this is completely broken rn and months out before release |
@thenhnn yes please |
We should make our own implementation and then switching to vanilla vertical tabs will be an easy switch(assuming that we don't add a lot of features to the vertical tabs that vanilla wont have). |
|
I need this! if you get this working in a stable state I will paypal you 100€ hahaha (And uninstall arc lol) |
Chromium provides much more stable and mature platform than Firefox imo. This PR is still draft and I'm still not sure how to fix some things. It's NOT final product. |
exactly why I want to switch to Helium after the features I want are here. |
you're doing an amazing job, please don't let these people get to you. both me and @dumbmoron are incredibly grateful that you're doing this for everyone in the first place, it takes a lot of talent and dedication. i'm very used to people just "consuming" instead of contributing literally anything at all, so this PR was honestly a shock to me. i'll help you fix things asap, right after the initial public release. for everyone else: keep in mind that this is clearly WIP and also free labor done out of someone's kindness, don't be a dick and don't compare this to work of multi-trillion-dollar companies. |
It was not supposed to sound mean or anything, all I said was Zen is good until this properly gets vertical tabs. @thenhnn Is doing a great job with this PR. |
|
I appreciate this PR as I want to switch to Helium too. But, I cant without vertical tabs. |
|
I use helium for stuff that is much better on Chromium or things I want away from my Work stuff. Vertical tabs are too good to switch to horizontal for. |
...everything? zen is great, it's just that mozilla has lost the plot a while ago |
I know I wish they started off with chromium, but that's why I Like this project. Its Chromium |
i'm fairly certain that the issue is indeed deeper, since Linux is affected too |
either way is totally fine with me but agree that this is a deeper issue and a better fix may resolve for macos 15.7 without needing this change. |
will improve this in future commits cuz now you can't drag the window by empty spots in the toolbar (outside of buttons)
|
figured it out and pushed a proper cross-platform fix. gonna have to write hit test logic like in |
This comment was marked as spam.
This comment was marked as spam.
now vertical tab groups match tabs and look beautiful
| + scroll_view->SetVerticalScrollBarMode( | ||
| + views::ScrollView::ScrollBarMode::kEnabled); | ||
| + scroll_view->SetHorizontalScrollBarMode( | ||
| + views::ScrollView::ScrollBarMode::kDisabled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On macOS, with "Show scroll bars" set to "Always", the bar is still hidden but is now active as opposed to being completely disabled with "Automatically based on mouse or trackpad". This behavior also existed before this change but with the horizontal scrollbar showing.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
|
for the love of god, don’t comment anything here if it’s not related to development of this feature. this isn’t a chat, this is a pull request with a shitton of people following its development. you are spamming a bunch of people for no reason. have some common decency. |
tabs no longer overlap each other, and tab group dragging now looks clean and nice :3 also refactored some related code
95069dc to
79ec844
Compare
|
I've refreshed patches on top of Chromium 142, but haven't tested if they work (I updated system toolchain so I need to recompile entire Chromium, so this will take some time...) Curiously I didn't initially pull the changes as I thought I was already on latest remote HEAD, so I decided to just merge them. Sorry for that.. |
I guess this rewrite finally landed lol! I have the fix for it, but I'm not sure where to put the patch after wukko split them up so I'll just leave it here: In ... |
|
Sorry, it also needs |
|
I compiled it on macos today, the branch right now has a bug where it doesn't set correct main content width and cuts it off, so i fixed using this patch to patch a patch: diff --git a/patches/helium/ui/vertical-tabs/frame-layout.patch b/patches/helium/ui/vertical-tabs/frame-layout.patch
index 4d22a942..ecbee0ff 100644
--- a/patches/helium/ui/vertical-tabs/frame-layout.patch
+++ b/patches/helium/ui/vertical-tabs/frame-layout.patch
@@ -109,9 +109,8 @@
gfx::Rect contents_container_bounds = available_bounds;
int vertical_tab_offset = 0;
- if (tabs::IsVerticalTabsFeatureEnabled() && ShouldDisplayVerticalTabs()) {
-+ if ((tabs::IsVerticalTabsFeatureEnabled() && ShouldDisplayVerticalTabs()) && tabs::AreHeliumVerticalTabsEnabled()) {
++ if ((tabs::IsVerticalTabsFeatureEnabled() && ShouldDisplayVerticalTabs()) || tabs::AreHeliumVerticalTabsEnabled()) {
vertical_tab_offset = BrowserView::kVerticalTabStripWidth;
-+ contents_container_bounds.set_x(vertical_tab_offset);
contents_container_bounds.set_width(available_bounds.width() -
vertical_tab_offset);
}
also i would suggest making the tabs in vertical sidebar consistent with the size of the rest of the ui, also the tab search popup itself goes into infinity if i have to many tabs, i would limit the height |




DISCUSSION BELONGS TO #239
Feature requests will be marked as off topic. People subscribe to this PR to follow development, not to get a lot of spam in their inbox.
TODO