Niagara-Issues icon indicating copy to clipboard operation
Niagara-Issues copied to clipboard

Support blurred background for pop-ups

Open Shinra04 opened this issue 5 years ago • 18 comments

I believe it would further enhance the launcher's design language. The black pop-ups feel, relatively speaking, way more visually heavy. I feel having it as an option rather than being mandatory would benefit a wider audience.

Reference image attached. tia4160047825748916665

Shinra04 avatar Jul 24 '21 12:07 Shinra04

I like the glass style pop-up design & it could work, but I would like to see the apps presented in a list, rather than a grid, if you have <3–4 icons — as it is as of now, with text.

Montell2099 avatar Jul 28 '21 23:07 Montell2099

I agree that Glassmorphism is definitely more attractive, and it is visually less heavy than black.

#Montell2099, he is just talking about the pop-up background and not the apps' order.

Just-SKY avatar Jul 29 '21 03:07 Just-SKY

#Montell2099, he is just talking about the pop-up background and not the apps' order.

I was just trying to say that a grid layout could be cool with ~3–4+ apps. :)

In the current pop-out layout there's often a lot of empty real-estate to the right, which is why I was thinking of the grid pattern in particular.

Montell2099 avatar Jul 29 '21 03:07 Montell2099

@Just-SKY you can use the dark theme instead of the black amoled theme, it has less contrast and is generally better (one of the best dark themes I've seen tbh)

About the blur, when it was discussed before Peter was interested in it but as it stands now 3rd party launchers don't have access to hardware acceleration & the method used by some is pretty hacky (you basically need to have normal & blurred images of everything & play around with that)

Android 12 beta was exploring some better native blur support which would allow 3rd party launchers to properly support blur but as it was removed in the latest beta before final release it doesn't seem likely to make it into any OEM's hands, so it's unlikely atm 🤔

Oddward avatar Jul 29 '21 18:07 Oddward

On Samsung OneUI 3.x that has been implemented at least when pull-down the notifications. But yeah, that's S.

tjsuominen avatar Jul 30 '21 14:07 tjsuominen

About the blur, when it was discussed before Peter was interested in it but as it stands now 3rd party launchers don't have access to hardware acceleration & the method used by some is pretty hacky (you basically need to have normal & blurred images of everything & play around with that)

In that case, we could instead have a (coloured?) gradient tint (lighter or darker depending on background) from left to right (left being darker for visibility), since one of the comments mentioned how there's so much empty space to the right of the pop-ups. This will still create an effect of glassmorphism.

Shinra04 avatar Aug 11 '21 12:08 Shinra04

This launcher seems to have blur done right, or does it use too many resources?

https://play.google.com/store/apps/details?id=com.luutinhit.ioslauncher

Shinra04 avatar Sep 04 '21 23:09 Shinra04

As @Oddward already described, blurring is much more complicated than it sounds. Real Gaussian blur (as opposed to fake blurring through a semi-transparent, white overlay) requires access to the underlying content (aka the wallpaper) to do some rather resource-intensive calculations on the individual pixel values. In principle, there would be two options for that:

  1. hand off those calculations to the system to have them hardware-accelerated (which is what iOS does afaik)
  2. pre-process the (static) wallpaper, cache the blurred result, and draw the wallpaper yourself

On Android, the launcher however simply draws its content on top of the wallpaper (which is drawn by the system itself), and cannot directly access the layers below. It can theoretically get the currently applied wallpaper and do (2), but that doesn't work for live wallpapers (The IOS 15 Launcher linked above does that, and instead of the live wallpaper it shows the static system wallpaper when blurring which is a bit odd).

Android 12 was supposed to introduce hardware-accelerated blurring, but it only works on the window level and isn't useful for us within the launcher. So, as long as the OS doesn't support this properly, we can't either.

Maxr1998 avatar Nov 20 '21 17:11 Maxr1998

Samsung does this smoothly when pulling down. Yet, I would expect live wallpapers could be a challenge. Still, would love to see implemented properly. Yet fully understand that this pretty much also Android challenge.

tjsuominen avatar Nov 21 '21 20:11 tjsuominen

I think Samsung also does this on the OS level with hardware acceleration. You mean the notification dropdown, right?

Maxr1998 avatar Nov 21 '21 22:11 Maxr1998

Now that the 'Tint' for Niagara has been implemented, I'd still prefer 'blurred tint', but I think that's not an option. As for the pure blurring, I have understood it's not an option currently with Niagara. Hopefully the ability to adjust Tint color etc. comes handy.

tjsuominen avatar Jan 02 '22 09:01 tjsuominen

Could this be opened again? Ratio launcher seems to have implemented it rather nicely. The custom widgets look pretty too.

Screenshot_20220617-083743_Ratio.png

Shinra04 avatar Jun 17 '22 03:06 Shinra04

@Shinra04 reopened based on what? The circumstances preventing Niagara from implementing it haven't changed AFAIK. Refer to Max's comment above

Oddward avatar Jun 22 '22 05:06 Oddward

@Shinra04 reopened based on what? The circumstances preventing Niagara from implementing it haven't changed AFAIK. Refer to Max's comment above

Well, despite there not being a possibility for blurring on live wallpapers, I felt it would still be a huge thing to have blur for static wallpapers. It just looks a lot cleaner and less visually heavy.

But if that's not feasible for the developer, that's alright. (I did notice the Ratio app size goes up to 280 MB (196 + 80 + 4) after having everything set up, which may or may not be due to the blurs)

Shinra04 avatar Jun 22 '22 08:06 Shinra04

@Shinra04 It's not about live wallpapers or static, it's about the fact that real-time blurring requires hardware acceleration which 3rd party launchers don't have access to atm, and the workaround is too hacky to use (explained a bit by Max above, basically pre-processing & storing multiple versions of the wallpaper image and swapping them around, or just using a white overlay for a cheap effect)

Google was originally reported to be opening up hardware acceleration to 3rd party launchers before A12 iirc but ultimately they didn't, lets hope it happens some time soon

Oddward avatar Jun 22 '22 10:06 Oddward

@Shinra04 It's not about live wallpapers or static, it's about the fact that real-time blurring requires hardware acceleration which 3rd party launchers don't have access to atm, and the workaround is too hacky to use (explained a bit by Max above, basically pre-processing & storing multiple versions of the wallpaper image and swapping them around, or just using a white overlay for a cheap effect)

Google was originally reported to be opening up hardware acceleration to 3rd party launchers before A12 iirc but ultimately they didn't, lets hope it happens some time soon

Is this "hacky" workaround going to lead to 100+ MB added space? If so then I get it. But if the concern is only that the blur effect itself looks bad, then I'd ask Mr Peter to reconsider. Also, thank you for the quick reply.

Shinra04 avatar Jun 22 '22 10:06 Shinra04

@Shinra04 The devs typically avoid hacky solutions and prefer having proper native support, especially when it's likely to come (soon™)

It might not be that heavy but it'll probably add some overhead and can affect performance and add complexity to the codebase (which would also add up with other similar requests)

Oddward avatar Jul 05 '22 05:07 Oddward

Hope Android 14 provides proper API to make blur possible in Niagara Launcher 😅

Pop-up Menu: HiShoot_20220831_054215 Pop-up Folder: HiShoot_20220831_054819 App List: HiShoot_20220831_052546 Niagara Settings: HiShoot_20220831_051545

Amorphous404 avatar Aug 31 '22 00:08 Amorphous404