Hyprland
Hyprland copied to clipboard
Groupbar aesthetic
Improves / adds more customization to groupbar:
- adds
groupandgroupbarsections to free upmisc - add bottom as bar position
- separates border and bar colors
- allows setting groupbar heigh (bar height/gradient height depending on mode)
- adds
internal_bar,fontand background color options - fixes gradients not updating with config reload
Mostly ready now, just needs some minors fixes
example of new config:
group {
col.border_active = rgba(bb66ffee)
#col.border_inactive = 0xffff0000
#col.border_locked_active = 0xff00ffff
#col.border_locked_inactive = 0xff0000ff
#--moveintogroup_lock_check = false-- #removed due to another commit, maybe should be moved here
#insert_after_current = true
groupbar {
enabled = true
col.active = rgba(cdd6f4cc)
col.inactive = rgb(666699)
#col.locked_active = 0xfff00f0f
#col.locked_inactive = 0xff0ff00f
col.background = rgb(bb66ff)
#render_titles = false
#scrolling = true
max_size = 200
titles_font_size = 8
mode = 0 # 0 - bar, 1 - gradient
height = 18
#internal_bar = false
font = JetBrainsMono Nerd Font Mono
top = no
text_color = rgb(333333)
#unified_border = 1
}
}
Cool. Haven't looked into this in-depth, but I think a rectangle that can be styled might be the simplest way to go about this?
- Text font
- Stroke color/gradient
- Stroke weight
- Fill color/gradient
- Border radius
- Vertical offset (box/bar)
- Horizontal offset (box/bar)
- Vertical offset (text)
- Horizontal offset (text)
- Drop shadow (same settings as tiles)
I think that should cover most styles we could conceive of.
@vaxerski apart from the 2 issues I still haven't found a fix for this should be ready for review anti-aliasing rendering is clearly not an issue from here, since it's happens on main when border_size = 0, starting shadows from border just makes it more noticeable
great stuff but the deco inside the border is really hideous. Rest is generally alright. We should rethink the design of groupbars in general tbh
generally this MR is quite sizeable. I'd be for dropping internal decorations altogether, to me they serve no purpose.
also request my review when ready
internal_bar is really intended for solid bars not gradients, imo doesn't look that bad. (maybe an inside and an outside border would be better) internal decoration is kinda hacked together, a proper solution would be to handle borders like any other decoration, and control decorations placement better.
like I said, the only remaining problems are rounding issues on boxes which might be more noticeable since I made shadows start at the end of borders, and me still not finding the cause of textures getting deleted which makes them be created on the draw() call.
internal decoration is kinda hacked together,
another reason to move this, if at all, to a separate mr
great stuff but the deco inside the border is really hideous. Rest is generally alright. We should rethink the design of groupbars in general tbh
Why don't you follow the box styling ideas I suggested and add features based on that? It's already a familiar concept to most people.
generally this MR is quite sizeable. I'd be for dropping internal decorations altogether, to me they serve no purpose.
I think vaxry is right. I'm gonna separate this into smaller MRs, which, I hope, will be much easier to handle
@MightyPlaza do you have the other MR ? (especially for the backgound color).
@MightyPlaza do you have the other MR ? (especially for the backgound color).
I have and will continue to separate this PR into smaller ones To avoid merge conflicts I am creating 1 at each time Currently still doing internal reworks, but after that will start adding the visual changes
@MightyPlaza do you have the other MR ? (especially for the backgound color).
I have and will continue to separate this PR into smaller ones To avoid merge conflicts I am creating 1 at each time Currently still doing internal reworks, but after that will start adding the visual changes
noted ! Thanks for the update I am going to need this
Another question about the font management. Do you know if the PR supports using a font with bold weight?
Another question about the font management. Do you know if the PR supports using a font with bold weight?
pretty sure https://github.com/hyprwm/Hyprland/pull/3197/commits/9ce1310d627ef4a7894cd690d7deeefbe568bb78 allows that feel free to pr it if you want, should work without extra work
Another question about the font management. Do you know if the PR supports using a font with bold weight?
pretty sure https://github.com/hyprwm/Hyprland/pull/3197/commits/9ce1310d627ef4a7894cd690d7deeefbe568bb78 allows that feel free to pr it if you want, should work without extra work
Actually, I tried a plug-in (https://github1s.com/outfoxxed/hy3) which is doing the same. The author pointed me to hyprland repo for this specific part of but they did not test the bold font support. I tested some values but was unable to make it work. I checked the pango spec (tried "Sans Bold" ) so I don't see why it is not working.
seems to work for me
https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html
with
font = JetBrainsMono Nerd Font Mono Italic Extra-Bold
JetBrainsMono Nerd Font Mono Italic Extra-Bold
Thanks that's working. I had an issue in the font name I think.
Can't wait for this to get merged :star_struck: I've just hardcoded a few things in the meatime.
@MightyPlaza May I ask you for an update or ETA of this work please?