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 695099 - a11y: A new design for the a11y panel
a11y: A new design for the a11y panel
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Universal Access
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
Depends on: 698001 700602
Blocks:
 
 
Reported: 2013-03-04 02:13 UTC by Matthias Clasen
Modified: 2013-07-19 11:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (293.34 KB, patch)
2013-03-04 02:14 UTC, Matthias Clasen
none Details | Review
a11y: A new design for the a11y panel (293.87 KB, patch)
2013-04-14 13:37 UTC, Matthias Clasen
needs-work Details | Review
a11y: A new design for the a11y panel (297.37 KB, patch)
2013-05-18 20:23 UTC, Matthias Clasen
none Details | Review
a11y: A new design for the a11y panel (297.34 KB, patch)
2013-05-18 21:21 UTC, Matthias Clasen
needs-work Details | Review
universal-access: Updated design (298.71 KB, patch)
2013-07-19 10:34 UTC, Bastien Nocera
none Details | Review
universal-access: Updated design (290.64 KB, patch)
2013-07-19 11:00 UTC, Bastien Nocera
none Details | Review
universal-access: Updated design (300.94 KB, patch)
2013-07-19 11:02 UTC, Bastien Nocera
committed Details | Review

Description Matthias Clasen 2013-03-04 02:13:10 UTC
See https://live.gnome.org/Design/SystemSettings/UniversalAccess

The status switch is not implemented yet.
Comment 1 Matthias Clasen 2013-03-04 02:14:41 UTC
Created attachment 237920 [details] [review]
patch
Comment 2 Matthias Clasen 2013-04-14 13:37:27 UTC
Created attachment 241500 [details] [review]
a11y: A new design for the a11y panel

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess
The status switch is not implemented yet.
Comment 3 Matthias Clasen 2013-04-14 13:38:58 UTC
The newer patch impelements the status switch. See the blocking shell bug for the shell-side of the functionality.
Comment 4 Matthias Clasen 2013-04-15 00:28:24 UTC
Let me know where you would like the status switch setting to live. For now, I've just put it in org.gnome.shell
Comment 5 Bastien Nocera 2013-04-15 08:10:14 UTC
Review of attachment 241500 [details] [review]:

I haven't actually run the program yet.

All the float values need rounding, and the Short/Long strings need context (and translator comments).

::: panels/universal-access/cc-ua-panel.c
@@ +387,3 @@
+  connect_focus (list, self);
+
+  priv->sections_reverse = g_list_prepend (priv->sections_reverse, list);

Can you split this off into its own function?

@@ +651,2 @@
+  w = WID ("typing_slowkeys_beep_pressed_check");
+  g_settings_bind (priv->kb_settings, KEY_SLOWKEYS_BEEP_PRESS,

The g_setting_bind() and g_object_bind_property() calls could probably be factored out.

@@ +781,3 @@
+on_content_size_changed (GtkWidget *content, GtkAllocation *allocation, GtkWidget *panel)
+{
+  if (allocation->height < 490)

Magic number should be a define. Can you also explain how you got this number?

@@ +790,3 @@
+      gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (panel),
+                                      GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+      gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (panel), 490);

Same magic number.

::: panels/universal-access/uap.ui
@@ +168,3 @@
+                                    <property name="margin_bottom">6</property>
+                                    <property name="xalign">1</property>
+                                    <property name="label" translatable="yes">Off</property>

Context.

@@ +1487,3 @@
+                                <property name="xalign">1</property>
+                                <property name="xpad">10</property>
+                                <property name="label" translatable="yes">Short</property>

Context.

@@ +1490,2 @@
                                 <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +1523,3 @@
+                                <property name="label" translatable="yes">Long</property>
+                                <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +1703,2 @@
                                 <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +1736,3 @@
+                                <property name="label" translatable="yes">Long</property>
+                                <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +2065,3 @@
                                 <property name="can_focus">False</property>
+                                <property name="xalign">1</property>
+                                <property name="yalign">0.4699999988079071</property>

0.5?

@@ +2069,2 @@
                                 <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +2102,3 @@
+                                <property name="label" translatable="yes" comments="long delay">Long</property>
+                                <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +2264,3 @@
+                                <property name="justify">center</property>
+                                <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.

@@ +2353,3 @@
+                                <property name="justify">center</property>
+                                <attributes>
+                                  <attribute name="scale" value="0.82999999999999996"/>

Round.
Comment 6 Matthias Clasen 2013-05-18 20:23:05 UTC
Created attachment 244659 [details] [review]
a11y: A new design for the a11y panel

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess
The status switch is not implemented yet.
Comment 7 Matthias Clasen 2013-05-18 20:26:48 UTC
The new version incorporates most of the review feedback, addresses some alignment and padding issues, and makes mnemonic activation work for all rows.

The magic number was copied from the power panel - we probably don't need the hide-the-scrollbar code here anyway, because the a11y panel is always so large that we need it (the power panel can shrink to almost nothing).
Comment 8 Matthias Clasen 2013-05-18 21:21:43 UTC
Created attachment 244676 [details] [review]
a11y: A new design for the a11y panel

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess
Comment 9 Matthias Clasen 2013-05-18 21:22:36 UTC
Now with the always-show key moved to org.gnome.desktop.a11y
Comment 10 Bastien Nocera 2013-05-22 12:06:03 UTC
Review of attachment 244676 [details] [review]:

Need to bump the gsettings-desktop-schemas dep

The keyboard shortcuts and links to other panels seem to have completely disappeared.

::: panels/universal-access/cc-ua-panel.c
@@ +189,3 @@
+
+  factor = g_variant_get_double (variant);
+  g_value_set_string (value, factor != DPI_FACTOR_NORMAL ? _("On") : _("Off"));

a DPI factor of 0.75 on my machine shows up as having large text enabled.

::: panels/universal-access/uap.ui
@@ -12,3 @@
-    <property name="upper">3</property>
-    <property name="value">1.2</property>
-    <property name="step_increment">0.10000000000000001</property>

Still numbers that need rounding.

@@ +274,2 @@
                                     <property name="xalign">0</property>
+                                    <property name="label" translatable="yes">_Sound Keys</property>

Sound keys don't seem to work for me.

@@ +369,3 @@
+                                    <property name="margin_bottom">6</property>
+                                    <property name="xalign">0</property>
+                                    <property name="label" translatable="yes">_Visual Alerts</property>

The visual alerts are truly awful and barely noticeable. Please file the necessary bugs for that to get fixed.

@@ +600,3 @@
+                                    <property name="margin_bottom">6</property>
+                                    <property name="xalign">0</property>
+                                    <property name="label" translatable="yes">_Mouse Keys</property>

What's "Mouse Keys"?
The current panel has an explanation of what this is ("Control the pointer using the keypad")

@@ +813,3 @@
+            </child>
+            <child>
+              <object class="GtkSpinButton" id="text_scaling_factor_spin">

We really don't want a spin button here. Previously, this was a drop-down menu with a number of possible values.
The mockup makes me think that this should just be a toggle and not have a separate dialogue.

@@ +844,3 @@
+            <property name="xalign">0</property>
+            <property name="max-width-chars">45</property>
+            <property name="label" translatable="yes">Control the overall text size. If this is not sufficient, try the Zoom feature.</property>

Are those 2 separate controls to handle the same setting?
Comment 11 Matthias Clasen 2013-05-22 22:09:40 UTC
(In reply to comment #10)
> Review of attachment 244676 [details] [review]:
> 
> Need to bump the gsettings-desktop-schemas dep
> 
> The keyboard shortcuts and links to other panels seem to have completely
> disappeared.


The design doesn't have them. And the dialog-heavy design makes it hard to
do such links.


> @@ +274,2 @@
>                                      <property name="xalign">0</property>
> +                                    <property name="label"
> translatable="yes">_Sound Keys</property>
> 
> Sound keys don't seem to work for me.


Its one of the accessx features - I think we used to only expose it as part of sticky keys before ('beep when a modifier is pressed'). All the beeping functionality seems to be tied up with event sounds - they only work here if I enable event sounds - thats arguably a bug. We should either have a separate role for these a11y sounds, or we should turn on event sounds when a11y needs it.


 
> @@ +369,3 @@
> +                                    <property
> name="margin_bottom">6</property>
> +                                    <property name="xalign">0</property>
> +                                    <property name="label"
> translatable="yes">_Visual Alerts</property>
> 
> The visual alerts are truly awful and barely noticeable. Please file the
> necessary bugs for that to get fixed.


Right, I had already noticed that. bug 700863


 
> @@ +600,3 @@
> +                                    <property
> name="margin_bottom">6</property>
> +                                    <property name="xalign">0</property>
> +                                    <property name="label"
> translatable="yes">_Mouse Keys</property>
> 
> What's "Mouse Keys"?
> The current panel has an explanation of what this is ("Control the pointer
> using the keypad")


Mouse keys is the name used in Windows for this: 
http://windows.microsoft.com/en-us/windows-xp/help/turn-on-mousekeys

 
> @@ +813,3 @@
> +            </child>
> +            <child>
> +              <object class="GtkSpinButton" id="text_scaling_factor_spin">
> 
> We really don't want a spin button here. Previously, this was a drop-down menu
> with a number of possible values.
> The mockup makes me think that this should just be a toggle and not have a
> separate dialogue.


Yeah, the design didn't have it, but I felt that it would be nice to provide a dialog here and make the scaling factor available.

Why do you think that the spin button is bad ? In any case, we can certainly make it a drop-down. What values did the old one have ?


> @@ +844,3 @@
> +            <property name="xalign">0</property>
> +            <property name="max-width-chars">45</property>
> +            <property name="label" translatable="yes">Control the overall text
> size. If this is not sufficient, try the Zoom feature.</property>
> 
> Are those 2 separate controls to handle the same setting?


Yes. Do you want just a drop-down ?
Comment 12 Matthias Clasen 2013-06-06 02:50:16 UTC
Bastien, could you answer the questions in my previous comments, so we can wrap this up ?
Comment 13 Bastien Nocera 2013-07-19 10:34:54 UTC
Created attachment 249597 [details] [review]
universal-access: Updated design

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess

Rev 1:
- Ported to GtkListBox
- Fix small scale factors being detected as large text

TODO:
- Mockup for "Large text" dialogue
- Re-indent glade file
Comment 14 Bastien Nocera 2013-07-19 11:00:38 UTC
Created attachment 249613 [details] [review]
universal-access: Updated design

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess

Rev 2:
- Ported to GtkListBox
- Really fix small scale factors being detected as large text
- Remove large text dialogue (and just use a switch)

Reindenting the glade file will have to wait :)
Comment 15 Bastien Nocera 2013-07-19 11:02:59 UTC
Created attachment 249614 [details] [review]
universal-access: Updated design

A new design for the universal acccess panel:
https://live.gnome.org/Design/SystemSettings/UniversalAccess

Rev 3:
- Ported to GtkListBox
- Really fix small scale factors being detected as large text
- Remove large text dialogue (and just use a switch)
- Indented the glade file
Comment 16 Bastien Nocera 2013-07-19 11:03:52 UTC
Attachment 249614 [details] pushed as 145ffcb - universal-access: Updated design