This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Breeze Windeco defaults

Tags: None
(comma "," separated)
pepedopolous
Registered Member
Posts
40
Karma
0
OS

Breeze Windeco defaults

Wed Jan 14, 2015 7:07 pm
Ahoj VDG,

I've just upgraded to Plasma 5.2 beta and loving the new or returned features. It's much smoother too but...

This is the first time I've used the Breeze windeco. I thought there was a bug but actually it turns out it's a feature that I don't understand.

By default, the breeze windeco config option 'Display window borders for maximised windows' is disabled. This seems to remove the top few lines of pixels from the windeco when windows are maximised. The buttons and text don't look vertically centred- it's really annoying to look at.

Who is this feature aimed at and why is it this configured this way by default?

P
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: Breeze Windeco defaults

Wed Jan 14, 2015 9:01 pm
This is (IMO) more a bug of the maximised borderless implementation of the decoration than the problem of a default setup.


Image
User avatar
colomar
Registered Member
Posts
947
Karma
2
OS

Re: Breeze Windeco defaults

Wed Jan 14, 2015 9:54 pm
ivan wrote:This is (IMO) more a bug of the maximised borderless implementation of the decoration than the problem of a default setup.


Yes indeed it is. Not drawing borders around maximized windows by default absolutely makes sense as they serve no purpose then, this just wasn't considered when designing and implementing the Breeze windeco.
Thank you for pointing this out to us, pepedopolous, we're on it!
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults

Thu Jan 15, 2015 7:20 am
Hi

Text vertical centering can be easily fixed.
Button vertical centering is more problematic. The idea with removing the top few pixels is Fitt's law: you move your mouse against a corner, and a button must be hit, not an inactive border. So unlike unmaximized windows there must be no (software) margin between button and maximized deco border.
So either:
- remove the botton margin too, but that would likely make the decoration too skeezed
- add a 'fake' virtual margin inside the button, to extend the hit area without breaking vertical centering.
I'll work on the second, but it requires a bit of testing

Not sure what to be done with horizontal positionning (putting a fake margin here will be even more complex because this would affect all buttons, and then, you'd need to squeeze the 'spacing' between buttons accordingly)

Hugo
pepedopolous
Registered Member
Posts
40
Karma
0
OS

Re: Breeze Windeco defaults

Thu Jan 15, 2015 7:24 am
OK, so I guess this needs more discussion...


One more thing about the windeco... I use the Breeze Light colours so the windeco colour matches the window colour. However, there is a blue line between the windeco and window itself. is there any easy way (e.g. editing a config file) to remove this blue line so the windeco and window are totally contiguous?

Cheers,

P
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults

Thu Jan 15, 2015 8:43 am
pepedopolous wrote:OK, so I guess this needs more discussion...


One more thing about the windeco... I use the Breeze Light colours so the windeco colour matches the window colour. However, there is a blue line between the windeco and window itself. is there any easy way (e.g. editing a config file) to remove this blue line so the windeco and window are totally contiguous?

P

Nope, asside from modifying the code.
The blue line (for active windows only), is part of the design.
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults

Thu Jan 15, 2015 8:45 am
[quote="hugo.pereira@free.fr"][quote="pepedopolous"]OK, so I guess this needs more discussion...


One more thing about the windeco... I use the Breeze Light colours so the windeco colour matches the window colour. However, there is a blue line between the windeco and window itself. is there any easy way (e.g. editing a config file) to remove this blue line so the windeco and window are totally contiguous?

P[/quote]
Nope, asside from modifying the code.
The blue line (for active windows only), is part of the design.[/quote]

More precisely, you can, by setting the "text selection" color of the color palette to the window background.
pepedopolous
Registered Member
Posts
40
Karma
0
OS

Re: Breeze Windeco defaults

Thu Jan 15, 2015 2:57 pm
P[/quote]
The blue line (for active windows only), is part of the design.[/quote]

Fair enough, but (apart from when I use the Breeze Light colour scheme), this line is so thin I can barely see it. This is on a 13.3 inch 1080p laptop screen.

With the standard Breeze colour scheme, the difference between active and inactive is obvious without this almost-invisible line. Then as a side effect, it spoils the use of the Breeze Light colour scheme.

P
User avatar
alake
Registered Member
Posts
591
Karma
3
OS

Re: Breeze Windeco defaults

Thu Jan 15, 2015 7:35 pm
hugo.pereira@free.fr wrote:
pepedopolous wrote:One more thing about the windeco... I use the Breeze Light colours so the windeco colour matches the window colour. However, there is a blue line between the windeco and window itself. is there any easy way (e.g. editing a config file) to remove this blue line so the windeco and window are totally contiguous?
P

Nope, asside from modifying the code.
The blue line (for active windows only), is part of the design.


Actually the blue line was meant to be configurable for just this reason. :-)

The QML version of the decoration had a config option to disable the active highlight. So, if it's not already there, it would certainly be desirable to have that option again in future.
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults

Thu Jan 15, 2015 7:48 pm
alake wrote:
hugo.pereira@free.fr wrote:
pepedopolous wrote:One more thing about the windeco... I use the Breeze Light colours so the windeco colour matches the window colour. However, there is a blue line between the windeco and window itself. is there any easy way (e.g. editing a config file) to remove this blue line so the windeco and window are totally contiguous?
P

Nope, asside from modifying the code.
The blue line (for active windows only), is part of the design.


Actually the blue line was meant to be configurable for just this reason. :-)

The QML version of the decoration had a config option to disable the active highlight. So, if it's not already there, it would certainly be desirable to have that option again in future.


Oh I was not aware about this !
I sure can make it configurable. Now, question: would it make more sense, not to add an option, but instead automagically hide it when the active decoration color matches the window background ? and render it in all other cases ?

Your call ...

Hugo
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults  Topic is solved

Thu Jan 15, 2015 7:49 pm
PS: the nice thing about the second option is that it can go also in plasma 5.2, since it introduces no new string (and can be considered a bug fix)
pepedopolous
Registered Member
Posts
40
Karma
0
OS

Re: Breeze Windeco defaults

Thu Jan 15, 2015 9:53 pm
hugo.pereira@free.fr wrote:PS: the nice thing about the second option is that it can go also in plasma 5.2, since it introduces no new string (and can be considered a bug fix)


Madly hunting for 'Like' button!

P
User avatar
alake
Registered Member
Posts
591
Karma
3
OS

Re: Breeze Windeco defaults

Thu Jan 15, 2015 9:56 pm
hugo.pereira@free.fr wrote:
alake wrote:Actually the blue line was meant to be configurable for just this reason. :-)

The QML version of the decoration had a config option to disable the active highlight. So, if it's not already there, it would certainly be desirable to have that option again in future.


Oh I was not aware about this !
I sure can make it configurable. Now, question: would it make more sense, not to add an option, but instead automagically hide it when the active decoration color matches the window background ? and render it in all other cases ?

Your call ...

Hugo


Sure why not try it! Ideally the active highlight would disappear for a active titlebar color close to the window background color, but for simplicity, let's just go with matching (and call it a bugfix for the 5.2 branch since it's pretty low risk). :-)
hugo.pereira@free.fr
Registered Member
Posts
133
Karma
0

Re: Breeze Windeco defaults

Fri Jan 16, 2015 1:52 pm
ok. Pushed (both master and Plasma/5.2)
User avatar
colomar
Registered Member
Posts
947
Karma
2
OS

Re: Breeze Windeco defaults

Fri Jan 16, 2015 5:14 pm
Awesome way to solve this, Hugo!

If an automatism yields the optimal results in 99% of cases anyway, it is indeed superior over yet another config option.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan