After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645665 - Magnifier: Add brightness and contrast preferences
Magnifier: Add brightness and contrast preferences
Status: RESOLVED FIXED
Product: gsettings-desktop-schemas
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gsettings-desktop-schemas-maint
gsettings-desktop-schemas-maint
Depends on:
Blocks: 639851 653170
 
 
Reported: 2011-03-25 20:41 UTC by Joseph Scheuhammer
Modified: 2012-05-16 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add preference keys for magnifier inverse-video, and brightness and contrast levels (2.09 KB, patch)
2011-03-25 20:49 UTC, Joseph Scheuhammer
needs-work Details | Review
Split the brightness and contrast change settings into one each for red, green, and blue. (3.76 KB, patch)
2011-06-30 14:04 UTC, Joseph Scheuhammer
needs-work Details | Review
Fixed spelling mistakes (3.85 KB, patch)
2011-06-30 18:29 UTC, Joseph Scheuhammer
accepted-commit_after_freeze Details | Review
Replace 'invert-brightness' with 'invert-lightness' (3.85 KB, patch)
2012-03-09 19:24 UTC, Joseph Scheuhammer
accepted-commit_now Details | Review
Magnifier: Add brightness and contrast preferences (3.83 KB, patch)
2012-05-16 22:56 UTC, Matthias Clasen
committed Details | Review

Description Joseph Scheuhammer 2011-03-25 20:41:38 UTC
Per the magnifier's features-in-development list
(http://live.gnome.org/GnomeShell/Magnification#Features_in_Development), other
display enhancements for low vision users are inverse video, contrast, and
brightness controls.

There is a patch for the gnome-shell magnifier for this functionality -- see 639851.  When that patch was submitted, the settings schema (org.gnome.desktop.ally.magnifier) was part of gnome-shell.  The schema has since moved to this project.  Since these new preferences are on equal footing with the other magnifier preferences, they should be added here.

There needs to be:
- a preference for turning inverse video on/off,
- a preference to allow users to increase/decrease the brightness of the magnified view, and
- a preference to allow users to change the contrast of the magnified view.
Comment 1 Joseph Scheuhammer 2011-03-25 20:49:03 UTC
Created attachment 184227 [details] [review]
Add preference keys for magnifier inverse-video, and brightness and contrast levels

The patch adds preferences to the schema for turning inverse video on/off, changing the brightness level, and the contrast level of the magnified view.
Comment 2 Bastien Nocera 2011-06-22 14:59:03 UTC
This sounds like you're just showing the implementation details through the options. Please use 3 separate keys for each of the settings, clamped between -1.0 and +1.0. That should at least make it comprehensible.
Comment 3 Joseph Scheuhammer 2011-06-30 14:04:07 UTC
Created attachment 191030 [details] [review]
Split the brightness and contrast change settings into one each for red, green, and blue.

Bastien, I *think* you're suggesting to breakout, for example, the single contrast setting into three, one for red, one for green, and another for blue.  Here's a version of the schema that does that.

Let me know if that's you meant.
Comment 4 Bastien Nocera 2011-06-30 14:19:59 UTC
Review of attachment 191030 [details] [review]:

Typos.

::: schemas/org.gnome.desktop.a11y.magnifier.gschema.xml.in.in
@@ +154,3 @@
+      <_description>
+        Represents a change to the default contrast of the red component.  Zero
+      <_summary>Change brightness of green</_summary>

lest?

@@ +164,3 @@
+      <_description>
+        Represents a change to the default contrast of the green component.
+      </_description>

lest.

@@ +174,3 @@
+      <_description>
+        Represents a change to the default contrast of the blue component.  Zero
+      <_summary>Change brightness of blue</_summary>

lest.
Comment 5 Joseph Scheuhammer 2011-06-30 18:29:04 UTC
Created attachment 191049 [details] [review]
Fixed spelling mistakes

Thanks for catching that.  It's not surprising that the spell checker declared "lest" okay since it is a word.  Just not the right one.
Comment 6 Joseph Scheuhammer 2012-03-09 19:24:54 UTC
Created attachment 209353 [details] [review]
Replace 'invert-brightness' with 'invert-lightness'

One small change -- technically the inversion setting is a lightness inversion, not a brightness inversion.  This changes the one key to 'invert-lightness', and modifies its desription as appropriate.

But, I don't want this to hold things up.  If it's too late for the commit, go ahead with the previous patch.
Comment 7 Joseph Scheuhammer 2012-05-02 16:42:31 UTC
(In reply to comment #6)
> ... changes the one key to 'invert-lightness',
> and modifies its desription as appropriate.


The functionality that uses these preferences has been marked accepted-commit-now (https://bugzilla.gnome.org/show_bug.cgi?id=639851). However, this bug is blocking. 

Is it possible to get a review of the above change I requested so as to move forward?
Comment 8 Matthias Clasen 2012-05-16 22:50:51 UTC
Review of attachment 209353 [details] [review]:

Looks fine to me.
Considering the previous version was already acn, this one should be too
Comment 9 Matthias Clasen 2012-05-16 22:56:14 UTC
The following fix has been pushed:
d964420 Magnifier: Add brightness and contrast preferences
Comment 10 Matthias Clasen 2012-05-16 22:56:18 UTC
Created attachment 214218 [details] [review]
Magnifier: Add brightness and contrast preferences

Added keys invert-lightness, brightness-red, brightness-green, brightness-blue,
contrast-red, contrast-blue, and contrast-green.