kcms/rules: Change opacity defaults to 100%

This has the benefit of providing a saner default for the values
of `opacityActive` and `opacityInactive` rule properties, both
in the UI and when reading the config.

The side effect is the same we have when changing default values:
if someone would have set a rule with some opacity to 0%, it will
be read as 100% next time kwin starts.

In this case it is a small price, as it is always easier to change
it back when the windows are visible that restoring it when they're
not, specially if it wasn't voluntary.
This commit is contained in:
Ismael Asensio 2023-02-09 19:38:41 +01:00
parent 0b2c442196
commit 1b75d4b71a

View file

@ -118,7 +118,7 @@
<label>Active opacity</label>
<min>0</min>
<max>100</max>
<default>0</default>
<default>100</default>
</entry>
<entry name="opacityactiverule" type="Int">
<label>Active opacity rule type</label>
@ -129,7 +129,7 @@
<label>Inactive opacity</label>
<min>0</min>
<max>100</max>
<default>0</default>
<default>100</default>
</entry>
<entry name="opacityinactiverule" type="Int">
<label>Inactive opacity rule type</label>