scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
459 stars 17 forks source link

left and center widget configuration #70

Closed Soliprem closed 8 months ago

Soliprem commented 8 months ago

In the css, one can edit .right to edit the whole of the right-aligned widgets. how does one do the same with left and center-aligned widgets? I tried .left, .center and variations, and they didn't work. Other than that, how does one handle the Workspace widget's background? I hacked at the css for a couple of hours to no avail

Soliprem commented 8 months ago

Trying to read the code, it seem that while right-hand-side widgets have right->SetClass("right");, whilte left and center don't. This explains why there's no css field. However, my limited knowledge of c++ makes it impossible for me to try to implement the feature. Simply adding left->SetClass("left") to the equivalent position didn't break anything, but also didn't make it work

Soliprem commented 8 months ago

I have to be missing something, as I assume there has to be a way to control the Workspace widget's background.. @scorpion-26 is there a specific css field for it that I'm missing?

scorpion-26 commented 8 months ago

There is not yet, @CaptaiNiveau should be working on implementing this.

Soliprem commented 8 months ago

I would be willing to work with them to get it done. What parts of the code would need to be edited? I assume that most the work could be done by creating a box around the left-aligned widgets, but I can't quite get my bearings inside the project

CaptaiNiveau commented 8 months ago

Ah it's fine. I'll open a PR soon, you can check it out when it's there and tell us if you think there should be more classes.

I ran into this issue as well \^\^

CaptaiNiveau commented 8 months ago

@Soliprem You can check out my branch/repo and see if it suits your needs :)

Soliprem commented 8 months ago

works like a charm!