Lightly icon indicating copy to clipboard operation
Lightly copied to clipboard

Toolbar opacity broken with glass color schema.

Open edpil02 opened this issue 4 years ago • 5 comments

After reading your discussion : "You'll have to change the current color scheme (~/.local/share/color-schemes) for that , in the [Colors:Window] section, add a fourth value to BackgroundNormal, that is the transparency. I don't know if this will work if you are not running plasma, because Lightly, like breeze, still depends a lot on kde stuff."

I made a try with dolphin. All the window become blur except the toolbar which remains opaque.

edpil02 avatar Apr 05 '21 11:04 edpil02

There is a weird issue with alpha option in the color-schemes file: With alpha value in [Colors:Window] (BackgroundNormal) , menubar and toolbar don't follow titlebar color rule in contrary of what is explained in the Readme.md file.

Alpha value in [VW] (activeBackground) doesnt help but seems to reverse the titlebar color rule. Sorry for my english.

edpil02 avatar Apr 05 '21 18:04 edpil02

Get a good result after trying different alpha values.But a issue remains in the menubar ; only text regions are blurred.

Screenshot_20210407_085446

edpil02 avatar Apr 07 '21 07:04 edpil02

I solve the issue

i modify the line : painter->fillRect(rect, _helper->alphaColor(option->palette.color( QPalette::Window ), opacity/100.0) ); with painter->fillRect(rect, _helper->alphaColor(option->palette.color( QPalette::Window ), opacity) ); in bool Style::drawMenuBarEmptyAreaControl() fonction.

image

edpil02 avatar Apr 07 '21 11:04 edpil02

I solve the issue

i modify the line : painter->fillRect(rect, _helper->alphaColor(option->palette.color( QPalette::Window ), opacity/100.0) ); with painter->fillRect(rect, _helper->alphaColor(option->palette.color( QPalette::Window ), opacity) ); in bool Style::drawMenuBarEmptyAreaControl() fonction.

image

Can't find this line in lightlyblurhelper.cpp, What file is this line in?

rayxxt avatar Apr 24 '21 22:04 rayxxt

/master/kstyle/lightlystyle.cpp line 4998

4996 // draw background 4997 int opacity = _helper->titleBarColor( true ).alphaF()*100.0; 4998 painter->fillRect(rect, _helper->alphaColor(option->palette.color( QPalette::Window ), opacity/100.0) );

edpil02 avatar Apr 25 '21 07:04 edpil02