[Xposed Framework Modules] tony78960:
Hi guys, I come back after half a month of dead silence, sorry for that... Don't worry, Screen Filter is not dead!

The last two weeks were extremely stressful with three school projects to finish and their oral presentations to prepare...

Also, the release of the video tutorial on the XDA portal and the angry comments finished me off: the main reasons why Screen Filter is an Xposed module and its advantages were not said in the video and people didn't even try to read the OP before complaining...

But now, school is over! Like, forever!! :laugh: (I start a job in January) Let's go back to work!

In order to make up for lost time, I worked on Screen Filter the last two days and version 1.4.1 it is now available.

I did not have the time to implement all the things I said I would do, but I wanted to release this version with various bugfixes before going further.

Changelog:

Updated Locale/Tasker plugin in order to support color filter control

Added simple intents to control filters

Fixed FC in activity

Fixed bugs occurring at screen rotation

Prevent full flat colored filter (capped max opacity, fully transparent at first launch)

Lowered the minimum transparent limit to 5, use it wisely!

Updated Simplified Chinese & Slovak translations

Here is how intents work:

There are three different intent actions:

com.tonymanou.screenfilter.action.DISABLE

com.tonymanou.screenfilter.action.ENABLE

com.tonymanou.screenfilter.action.TOGGLE

With each of these actions, you can choose which filter you want to control by setting one or both of the following extras:

FILTER_DIM

Valid values for 'selected' are: "1" (int), "true" (boolean) or no value (null string).

Valid values for 'unselected' are: "0" (int), "false" (boolean) or just don't use this extra.

FILTER_COLOR

Valid values for 'selected' are: "1" (int), "true" (boolean) or no value (null string).

Valid values for 'unselected' are: "0" (int), "false" (boolean) or just don't use this extra.

In the case of ENABLE and TOGGLE actions, you can change the value of the filters with the following extras:

TRANSPARENCY

Valid values are 8 bit unsigned integers within the transparency interval you set, between 5 and 255.

Works only if FILTER_DIM is selected and if the darkening filter is getting enabled.

COLOR

Valid values are 32 bit signed integers in base 10 representing the ARGB color (hexadecimal string not supported yet).

Works only if FILTER_COLOR is selected and if the color filter is getting enabled.

Note: if both FILTER_DIM and FILTER_COLOR are unselected or if they are not given, only the darkening filter is affected by the action and TRANSPARENCY is skipped.

For instance, using the command-line:

adb shell am broadcast -a com.tonymanou.screenfilter.action.TOGGLE

Toggles the darkening filter.

adb shell am broadcast -a com.tonymanou.screenfilter.action.ENABLE --ez FILTER_DIM true --ei TRANSPARENCY 125

Enables the darkening filter at the transparency 125.

adb shell am broadcast -a com.tonymanou.screenfilter.action.ENABLE --ei FILTER_COLOR 1 --ei COLOR 792333838

Enables the color filter at the color #2F3A0E0E (792333838 = 0x2F3A0E0E).

But...

adb shell am broadcast -a com.tonymanou.screenfilter.action.DISABLE --ei FILTER_COLOR 0

Will disable the darkening filter /!\

In the Locale/Tasker plugin, here is how "linked filters" works:

Not linked:

darkening enabled, color enabled

--> darkening is disabled, color is disabled

darkening enabled, color disabled

--> darkening is disabled, color is enabled & color updated

darkening disabled, color enabled

--> darkening is enabled & transparency updated, color is disabled

darkening disabled, color disabled

--> darkening is enabled & transparency updated, color is enabled & color updated

Linked:

darkening enabled, color enabled

--> darkening is disabled, color is disabled

darkening enabled, color disabled

--> darkening is disabled

darkening disabled, color enabled

--> darkening is enabled & transparency updated, color is updated

darkening disabled, color disabled

--> darkening is enabled & transparency updated, color is enabled & color updated

Now, just give me some additional time to read all the messages I missed and answer them. :cowboy: