bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
585 stars 98 forks source link

improved grouped tab drawing routine #565

Closed exebook closed 3 years ago

exebook commented 3 years ago

Old one has issues with alignment/positioning, text did not fit with 10+ windows under one tab, black non configurable color looked out of theme.

what I did:

rationale for having dots by default is that users who would love digits are more likely to be friends with preferences.

Selection_089 Selection_088

gijsbers commented 3 years ago

Then we would have two preferences for grouping. I prefer merging this option in TaskBarTaskGrouping, with 0 for off, 1 for numbers, 2 for dots and 3 for both. Also, font->height() gives you ascent+descent.

exebook commented 3 years ago

Having a single setting with 1/2/3 is obviously very convenient.

gijsbers commented 3 years ago

You can refrain from updating icewm.adoc, since that trickles down from the ice-wm website, but please update icewm-preferences.pod.

danfe commented 3 years ago

I'm glad that the problem with grouping indication is acknowledged and solution is being developed. I won't comment on the actual code, just share some of my thoughts on the looks.

656pull3

gijsbers commented 3 years ago

Can you post the relevant code how to draw the first example?

danfe commented 3 years ago

Well, I could, but I'd have to write it first. So far I've simply used my 1337 Photoshop Gimp/AzPainter skillz for those mockups. ;-)

gijsbers commented 3 years ago

Patch is applied, with modifications. Attempted to get rounded rectangles by drawing thick rounded lines. Thanks for all your contributions.

danfe commented 3 years ago

Attempted to get rounded rectangles by drawing thick rounded lines.

Thanks. While it's still far from perfect (especially with dark or blueish themes, as demonstrated below, the text is barely visible against the background), this sets a nice foundation for further improvements.

Perhaps the text color should match the background of the taskbar, and "rectangle" color match the text (that is, use the same colors but inversed)?

This is with blueHeart theme: pic1

This is with CrystalBlue theme: pic2

Dotted mode looks fine already.