Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Colour filter hint in Settings Portal #1177

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions data/org.freedesktop.impl.portal.Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
Out-of-range RGB values should be treated as an unset accent color.
</para></listitem>
</varlistentry>
<varlistentry>
<term>org.freedesktop.appearance color-filter u</term>
<listitem><para>
Indicates the system's preferred color filter.
Applications should only use this to adjust themselves for the current filter.
It is the compositor's job to apply the color filter globally.
Supported values are:
<simplelist>
<member>0: No preference</member>
<member>1: Protanopia</member>
<member>2: Protanopia (higher color contrast)</member>
<member>3: Deuteranopia</member>
<member>4: Deuteranopia (higher color contrast)</member>
<member>5: Tritanopia</member>
<member>6: Grayscale</member>
</simplelist>
Unknown values should be treated as 0 (no preference).
</para></listitem>
</varlistentry>
</variablelist>

Implementations can provide other keys; they are entirely
Expand Down
19 changes: 19 additions & 0 deletions data/org.freedesktop.portal.Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
Out-of-range RGB values should be treated as an unset accent color.
</para></listitem>
</varlistentry>
<varlistentry>
<term>org.freedesktop.appearance color-filter u</term>
<listitem><para>
Indicates the system's preferred color filter.
Applications should only use this to adjust themselves for the current filter.
It is the compositor's job to apply the color filter globally.
Supported values are:
<simplelist>
<member>0: No preference</member>
<member>1: Protanopia</member>
<member>2: Protanopia (higher color contrast)</member>
<member>3: Deuteranopia</member>
<member>4: Deuteranopia (higher color contrast)</member>
<member>5: Tritanopia</member>
<member>6: Grayscale</member>
</simplelist>
Unknown values should be treated as 0 (no preference).
</para></listitem>
</varlistentry>
</variablelist>

Implementations can provide other keys; they are entirely
Expand Down
Loading