helium/ui/layout: add an option to center the address bar#871
helium/ui/layout: add an option to center the address bar#871wukko merged 15 commits intoimputnet:mainfrom
Conversation
9cd6ab7 to
dd85fb2
Compare
|
When will this be merged? |
|
@wukko do you want me to resolve the conflicts now or should I wait for further changes until this is 'in line' to be merged or do you guys have other plans? Will you let me know or should I just keep resolving the conflicts? |
|
Is it possible to move the URL also to the center of address bar like in Duckduckgo? |
|
I think this would be great for vertical tabs since the address bar takes the whole width and it gets very hard to grab the window and move it around on Windows or macOS... More free space around the address bar would be nice! |
|
@jamdaniels maybe if you request re-review at the top right, you might get another review from the maintainers |
|
@fanckush fixing the remaining conflicts right now and will commit and request a re-review asap. |
dd85fb2 to
50bf430
Compare
he-pr-1-3.mp4Please let me know if any adjustments are necessary. Also fanckush suggested to dynamically adjust the width instead of a fixed width. Should it be changed? |
The patch formatting is wrong, could you please reformat it with correct quilt vars? (see: https://github.com/imputnet/helium-macos/blob/main/docs/building.md#development-build-and-environment or devutils/set_quilt_vars.sh) |
|
Last reviewed commit: "helium/ui/centered-a..." |
|
Video showing the state after the most recent commit 65d9c8e.mp4 |
|
really good PR btw, thank you for your work! |
|
@jamdaniels do you mind if i finish this PR for you? |
- Moved setting into appearance section under browser layout - Setting still doesn't interfere when compact layout is enabled - Tested address bar behavior in all layout settings
- Put max-width constant in local namespace - Hide settings toggle during CAT layout - Remove floating point equality check
- Fix malformed/stale hunk metadata in 65d9c8e - Add comment to asymmetric left/right clamping
da44c90 to
bba216c
Compare
bba216c.mp4
|
- renamed the pref to be clearer and consistent - moved pref registry to browser_ui_prefs - cleaned up centering code and constants - got rid of unclear math workarounds - optimized for overfilled toolbars - adjusted width steps and margin percentages - renamed settings prefs and strings to be consistent
Important Files Changed
Reviews (2): Last reviewed commit: "helium/ui: finish centered address bar" | Re-trigger Greptile |
|
refactored the remaining parts, should be good to merge now: centered.mp4 |
|
@jamdaniels thank you! |
thanks for letting me work on this and the patience, can't wait to use it! I'll also have a close look at the remaining changes/refactor and hope to improve :) |
|
im having ghost text on where the bar should originally be when having this center search bar toggled on. linux wayland helium 0.10.9.1-1 10mb_output.mp4 |



For your pull request to not get closed without review, please confirm that:
(an approved feature request, or confirmed bug).
otherwise I have marked my PR as draft.
organization if I lied by checking any of these checkboxes.
Tested on (check one or more):
This PR adds a setting to toggle between the current used, full width address bar and a more narrow, centered, responsive address bar with a fixed max width of 900px. Currently, the full-width address bar is disabled by default. These additions are skipped if the CAT feature is active. I've researched how the centered, responsive address bar is implemented in Brave, which already does this and this solution is inspired by it.
Closes #104
Related #1059 #1121
Pictures:
Video showcase:
helium-wide-address-bar.mp4
I do want to say that I used AI to implement this, but I didn't "vibe code" it. I did a lot of back and forth with multiple frontier models, discussed how to implement this feature properly while following best practices and look out for possible concerns and thoroughly tested all scenarios locally. I just want to help out and I would love if this feature gets added. If the full-width address bar should stay the default, let me know and I'm happy to change that and anything else necessary.