digipaws icon indicating copy to clipboard operation
digipaws copied to clipboard

color filter: ignore volume slider, heads up notifications etc

Open mfdood17 opened this issue 8 months ago • 12 comments

the grayscale is set with the "apply everywhere except selected apps" option if i am in an app where the grayscale is not used, when i recieve a heads up notification or i try to change the volume, it flashes back to grayscale until the heads up/volume slider dissapears; this also causes crashes in a few apps such as retroarch. it would be nice to add an option to ignore non-fullscreen apps.

mfdood17 avatar Apr 17 '25 19:04 mfdood17

the volume slider and I believe notifications runs on an app called Android System so it's another app, so Android System should be always in non grayscale mode or that you can change it

yoann256 avatar Apr 18 '25 14:04 yoann256

the volume slider and I believe notifications runs on an app called Android System so it's another app, so Android System should be always in non grayscale mode or that you can change it

agree. although different android vendors have different packages/apps responsible for handling these operations and it's not feasible for me to find this out for every other device. You can take a look on your device and try finding out what app is responsible for volume heads-up and add it to the selected apps perhaps for now until i figure out a solution. and for the app crashing, it would be really helpful if you could send the crashlog here. thanks!

nethical6 avatar Apr 18 '25 14:04 nethical6

i have found it; com.android.systemui it solves the issue with exception apps but it unfortunately creates another problem; now, because systemui is an exception, whenever i try and change the volume in an app where the grayscale is on, it flashes color for a split second (while the volume slider is visible) and then it comes back to normal, but the initial app either crashes or refreshes(the same behavior as before but now it is flipped) maybe an implementation where certain apps ignore the color filter status alltogether may be possible? sorry if i explained it poorly, i can try and explain anything better

mfdood17 avatar Apr 18 '25 15:04 mfdood17

i have found it; com.android.systemui it solves the issue with exception apps but it unfortunately creates another problem; now, because systemui is an exception, whenever i try and change the volume in an app where the grayscale is on, it flashes color for a split second (while the volume slider is visible) and then it comes back to normal, but the initial app either crashes or refreshes(the same behavior as before but now it is flipped) maybe an implementation where certain apps ignore the color filter status alltogether may be possible? sorry if i explained it poorly, i can try and explain anything better

yea. i understand it. I'll think about some workarounds!

nethical6 avatar Apr 18 '25 15:04 nethical6

The only workaround I found is using Display over other apps to make a custom grey scale filter.

yoann256 avatar Apr 18 '25 18:04 yoann256

The only workaround I found is using Display over other apps to make a custom grey scale filter.

That won't work. I already tried it long time ago. You cannot apply bw color filter using it. When I made something similar to a blue light filter but for bw filtering, all it did was dim the screen brightness. I read somewhere that android 15 has new api's to allow access to setting grayscale mode. This may be a workaround.

nethical6 avatar Apr 19 '25 07:04 nethical6

Well probably

yoann256 avatar Apr 19 '25 14:04 yoann256

The thing is many devices don't have Android 15 on my device I'm stuck on Android 11 until Xiaomi updates Miui.

yoann256 avatar Apr 19 '25 14:04 yoann256

Did you even look into the debug mode in settings; developer options. With the simulate colour space, select: Monochromacy. I don't know if this will help with anything, because its still the os itself rather then a library (maybe, I haven't checked). So good luck.

shortpupper avatar Apr 21 '25 04:04 shortpupper

Did you even look into the debug mode in settings; developer options. With the simulate colour space, select: Monochromacy. I don't know if this will help with anything, because its still the os itself rather then a library (maybe, I haven't checked). So good luck.

This definitely could work since it will turn the whole system in that mode, tho definitely didn't think of that at first, also for some devices it's in the Accessibility menu.

yoann256 avatar Apr 21 '25 07:04 yoann256

Did you even look into the debug mode in settings; developer options. With the simulate colour space, select: Monochromacy. I don't know if this will help with anything, because its still the os itself rather then a library (maybe, I haven't checked). So good luck.

This is not the problem in here. the app tracks what app is currently being used by the user and turns on gray scale accordingly. But when you have overlapping views like a volume slider and a selected app maybe, the grayscale flickers causing a crash sometimes. To fix this, i need to find out unique app ids(packagename) for every overlay screens like this which are different for every device, which seems almost impossible to me.

nethical6 avatar Apr 23 '25 15:04 nethical6

Did you even look into the debug mode in settings; developer options. With the simulate colour space, select: Monochromacy. I don't know if this will help with anything, because its still the os itself rather then a library (maybe, I haven't checked). So good luck.

This is not the problem in here. the app tracks what app is currently being used by the user and turns on gray scale accordingly. But when you have overlapping views like a volume slider and a selected app maybe, the grayscale flickers causing a crash sometimes. To fix this, i need to find out unique app ids(packagename) for every overlay screens like this which are different for every device, which seems almost impossible to me.

Yeah there's probably like 1 trillion+ roms with different packages for Android System which makes it impossible or like really hard

yoann256 avatar Apr 23 '25 17:04 yoann256