SierraBreeze icon indicating copy to clipboard operation
SierraBreeze copied to clipboard

[Suggestion] Add blur support

Open alex47 opened this issue 7 years ago • 11 comments

Make it an option to make the titlebar transparent and add blur behind it. I think this property has to be added to the titlebar code somewhere: _KDE_NET_WM_BLUR_BEHIND_REGION

For example if I want to add blur behind Konsole, first I make the background transparent in the appearance settings, then I add this to the ~/.bashrc file:

if [[ $(ps --no-header -p $PPID -o comm) =~ yakuake|konsole ]]; then
        for wid in $(xdotool search --pid $PPID); do
            xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $wid; done
fi

alex47 avatar Dec 25 '17 17:12 alex47

I would love this! Especially since Konsole has a blue feature in the next release! :D

ghost avatar Mar 10 '18 10:03 ghost

@ishovkun I created a blurred Breeze theme: https://github.com/alex47/BreezeBlurred If you want to implement it in SierraBreeze you can use this as guidance.

alex47 avatar Mar 12 '18 19:03 alex47

@alex47 Thanks for the suggestion. My laptop is currently broke so I can't work on SierraBreeze for the time being. It will be a while before I get back on the Linux hacking track.

ishovkun avatar Mar 12 '18 20:03 ishovkun

By the way this is how Konsole looks with my theme + my new blur I think it's worth implementing transparency Alt

alex47 avatar Mar 12 '18 20:03 alex47

@alex47 Is there a way to have opacity in window decorations as a window rule? If so, I would give this option a go.

ishovkun avatar May 01 '18 16:05 ishovkun

@ishovkun I don't think so. But it doesn't take much effort to implement it. All you have to change is in breezedecoration.cpp Decoration::paint( add m_windowColor.setAlpha( m_opacityValue ); ( like here ) Handling the `m_opacityValue' variable to be user customizable is a little bit more code though.

And then in breeze.json change it to "blur": true,

You could even do a fullglass effect with it in Konsole: Image

alex47 avatar May 01 '18 21:05 alex47

@alex47 This looks fantastic! But my point is that if I only have one window with transparency, the decorations wouldn't blend that well with other apps, such as dolphin. This issue limits the use case of transparent decorations for me.

ishovkun avatar May 01 '18 21:05 ishovkun

@alex47 Perhaps, we need to request an upstream change from Plasma devs. Wanna give it a try?

ishovkun avatar May 01 '18 21:05 ishovkun

This would be a very specific change for a very specific user theme. I don't think plasma devs would implement it.

alex47 avatar May 03 '18 10:05 alex47

Not really. If this feature becomes a part of Breeze, this will work out. A large portion of plasma settings (titlebar colors) are breeze-specific.

On Thu, May 3, 2018 at 5:37 AM, alex47 [email protected] wrote:

This would be a very specific change for a very specific user theme. I don't think plasma devs would implement it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ishovkun/SierraBreeze/issues/10#issuecomment-386254167, or mute the thread https://github.com/notifications/unsubscribe-auth/AKozf_3xRqUtZv-xvEUEYYBfe6mFPOcLks5tut3qgaJpZM4RMXPf .

--

Best regards,

Igor.

ishovkun avatar May 04 '18 14:05 ishovkun

I remember I had blur effect on Konsole for this theme. Was it there before or it wasn't implemented at all?

vsnthdev avatar Jan 03 '20 17:01 vsnthdev