A toggled toggle button visually almost indistinct from untoggled

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg

Hi folks.

When I try to run one of my Python applications (http://stromberg.dnsalias.org/~strombrg/hcm.html) using a very recent built of GTK+ (gobject introspection), I get lots of toggle buttons, as expected.

However, when I click one of those toggle buttons, the visual change is almost imperceptible.

The button is actually toggling - it's giving the desired result (a host or command is selected).  It's just hard to tell by looking at it, if the button is toggled or not.

The exact same Python code (version of hcm) gives good toggle buttons if I run it on an older build of GTK / gobject introspection.

I tried changing themes, but that did not appear to help.  I can tell the theme is at least partially engaged, because some of the colors in my app change.  But the toggle buttons still don't look very toggled.

Also, I'm getting a warning when the app starts.  I don't know if it could be related or not, but it is a little pesky.  BTW, this is in an fvwm2 in a VNC session.  The text of the warning is:
** (hcm:31357): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Xlib:  extension "XInputExtension" missing on display ":1".

Does anyone have any suggestions?  I miss being able to tell which buttons I've clicked!

I'm using self-built:
./at-spi2-atk/at-spi2-atk-2.24.0.tar.xz
./at-spi2-core/at-spi2-core-2.24.0.tar.xz
./atk/atk-2.24.0.tar.xz
./autoconf/autoconf-2.69.tar.xz
./cairo/cairo-1.14.8.tar.xz
./fontconfig/fontconfig-2.12.1.tar.bz2
./freetype2/freetype-2.7.tar.bz2
./gdk-pixbuf/gdk-pixbuf-2.36.6.tar.xz
./glib/glib-2.52.1.tar.xz
./gobject-introspection/gobject-introspection-1.52.1.tar.xz
./graphene/graphene-1.6.0.tar.xz
./gtk+/gtk+-3.22.12.tar.xz
./harfbuzz/harfbuzz-1.4.5.tar.bz2
./libjpeg/jpegsrc.v9b.tar.gz
./libtiff/tiff-4.0.7.tar.gz
./pango/pango-1.40.5.tar.xz
./pixman/pixman-0.34.0.tar.gz
./pkg-config/pkg-config-0.28.tar.xz
./py2cairo/py2cairo-1.10.0.tar.xz
./pycairo/pycairo-git-2017-04-11.tar.xz
./pygobject-3.24.1.tar.xz
./ragel/ragel-7.0.0.9.tar.gz
./xinput/libXi-1.7.9.tar.bz2
./zlib/zlib-1.2.11.tar.gz

...with CPython 2.7 and CPython 3.[0123456].

BTW,varying the Python interpreter version doesn't appear to make a difference - they all give the excessively subtle toggle button appearance.

Thanks!


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Emmanuele Bassi
On 13 April 2017 at 23:44, Dan Stromberg <[hidden email]> wrote:

> Does anyone have any suggestions?  I miss being able to tell which buttons
> I've clicked!

Care to point to a screenshot, so it's possible to understand what you
see - and what you expect?

The default Adwaita theme has a fair distinction between states:

https://i.imgur.com/6bg9eNc.png

From the top:

  - active = FALSE, sensitive = TRUE
  - active = FALSE, sensitive = FALSE
  - active = TRUE, sensitive = FALSE
  - active = TRUE, sensitive = FALSE

https://developer.gnome.org/gtk3/stable/GtkToggleButton.html

The transition between active and inactive is also animated.

> ./graphene/graphene-1.6.0.tar.xz

Graphene is only necessary for GTK+ 3.9x (master branch). GTK+ 3.22
does not use it.

Ciao,
 Emmanuele.

--
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg
On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:
On 13 April 2017 at 23:44, Dan Stromberg <[hidden email]> wrote:

> Does anyone have any suggestions?  I miss being able to tell which buttons
> I've clicked!

Care to point to a screenshot, so it's possible to understand what you
see - and what you expect?
Here're 2 screenshots:

It's the "benchbox" button that's selected - near the upper left, right below where it says "Dan's from Dan's".

The default Adwaita theme has a fair distinction between states:

https://i.imgur.com/6bg9eNc.png

From the top:

  - active = FALSE, sensitive = TRUE
  - active = FALSE, sensitive = FALSE
  - active = TRUE, sensitive = FALSE
  - active = TRUE, sensitive = FALSE

https://developer.gnome.org/gtk3/stable/GtkToggleButton.html

The transition between active and inactive is also animated.

> ./graphene/graphene-1.6.0.tar.xz

Graphene is only necessary for GTK+ 3.9x (master branch). GTK+ 3.22
does not use it.
I was bulding 3.9 for a while, before I realized it was a development version.  But I removed the binaries and started over with the older GTK+.  But when I did that, I didn't reevaluate what dependencies needed to be built, thinking some of them may become necessary someday.  I was happy to discover that the only thing I needed to downgrade was gtk itself.

As assurance that I'm using the production GTK+, this succeeds, where it didn't previously:
gi.require_version('Gtk', '3.0')

Thanks! 

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg

On Thu, Apr 13, 2017 at 4:41 PM, Dan Stromberg <[hidden email]> wrote:
On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:
On 13 April 2017 at 23:44, Dan Stromberg <[hidden email]> wrote:

> Does anyone have any suggestions?  I miss being able to tell which buttons
> I've clicked!

Care to point to a screenshot, so it's possible to understand what you
see - and what you expect?
Here're 2 screenshots:

It's the "benchbox" button that's selected - near the upper left, right below where it says "Dan's from Dan's".

Is it possible something relevant has changed in the theming code? 

If I remote display from the system with a very recent GTK+ (under /usr/local/cpython-3.6), to a system with an older GTK+ (the version that comes with Linux Mint 18 - displayed using ssh tunneling of X11), I get the stuff at the bottom of this message.  Also, the buttons are just text - no outlines at all.

How can I make sure I have a suitable theme available, and which system should it be placed on: The system running the application, or the system on which the GUI is being remote displayed?

Thanks!


(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:10:37: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:11:37: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:12:30: The style property GtkButton:image-spacing is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:26:33: The style property GtkMenu:horizontal-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:27:31: The style property GtkMenu:vertical-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:29:27: The style property GtkPaned:handle-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:32:48: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:43:33: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:44:33: The style property GtkWidget:separator-height is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:45:32: The style property GtkWidget:separator-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:63:13: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:70:13: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:71:21: The '-gtk-image-effect' property has been renamed to '-gtk-icon-effect'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:91:14: not a number

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:91:14: Expected a string.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:171:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:176:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:186:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:193:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:196:49: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:197:49: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:199:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:206:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:212:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:217:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:220:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:223:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:251:30: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:292:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:293:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:302:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:303:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:409:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:412:32: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:413:33: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:424:32: The style property GtkComboBox:arrow-scaling is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:425:30: The style property GtkComboBox:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:428:23: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:431:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:467:30: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:613:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:670:14: not a number

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:670:14: Expected a string.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:680:10: not a number

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:680:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:760:30: The style property GtkButton:image-spacing is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:761:29: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:810:27: The :prelight pseudo-class is deprecated. Use :hover instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:820:30: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:917:20: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:920:20: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:922:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:924:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1147:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1192:32: The style property GtkMenuItem:arrow-scaling is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1223:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1233:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1255:30: The style property GtkNotebook:initial-gap is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1256:30: The style property GtkNotebook:tab-overlap is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1257:32: The style property GtkNotebook:tab-curvature is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1258:33: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1259:30: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1381:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1496:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1580:28: The style property GtkRange:slider-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1582:29: The style property GtkRange:trough-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1593:25: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1655:25: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1656:35: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1657:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1658:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1665:42: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1666:52: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1667:51: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1668:61: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1690:29: The style property GtkRange:trough-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1693:28: The style property GtkRange:slider-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1694:37: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1695:31: The style property GtkRange:stepper-spacing is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1696:37: The style property GtkRange:trough-under-steppers is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1701:28: The style property GtkRange:slider-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1843:32: The style property GtkWidget:wide-separators is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1844:32: The style property GtkWidget:separator-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1845:33: The style property GtkWidget:separator-height is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1863:32: The style property GtkWidget:wide-separators is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1871:32: The style property GtkWidget:wide-separators is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1920:28: The style property GtkRange:slider-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1987:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2031:40: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2032:38: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2052:20: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2061:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2096:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2097:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2163:37: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2164:36: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2165:23: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2215:30: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2216:33: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2251:17: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:25:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:26:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:50:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:51:51: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:52:56: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:59:26: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:60:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:61:58: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:62:59: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:63:64: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:140:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:141:36: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:149:36: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:150:65: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:151:41: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:155:38: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:156:39: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:157:43: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:158:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:172:33: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:252:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:253:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:266:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-borders.css:289:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:18:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:20:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:84:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:85:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:86:43: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:93:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:94:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:125:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:149:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-backgrounds.css:161:28: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:9:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:12:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:13:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:14:37: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:16:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:23:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:26:26: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:27:39: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:28:45: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:30:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:33:19: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:34:32: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:35:38: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:37:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:40:19: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:40:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:41:32: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:41:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:42:38: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:42:50: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:44:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:54:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:62:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:69:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:72:18: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:73:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:74:37: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:76:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:83:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:86:26: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:87:39: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:88:45: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:90:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:93:19: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:94:32: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:95:38: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:97:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:100:19: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:100:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:101:32: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:101:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:102:38: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:102:50: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:104:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:122:40: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:123:41: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:127:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:128:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:132:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:132:46: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:133:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:133:46: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:137:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:138:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:157:40: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:158:41: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: gnome-applications.css:110:47: The :prelight pseudo-class is deprecated. Use :hover instead.

(hcm:10227): Gtk-WARNING **: Theme parsing error: cinnamon-applications.css:12:30: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(hcm:10227): Gtk-WARNING **: Theme parsing error: cinnamon-applications.css:17:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: cinnamon-applications.css:24:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(hcm:10227): Gtk-WARNING **: Theme parsing error: cinnamon-applications.css:46:28: The style property GtkRange:slider-width is deprecated and shouldn't be used anymore. It will be removed in a future version


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg

On Mon, Apr 17, 2017 at 4:45 PM, Dan Stromberg <[hidden email]> wrote:

On Thu, Apr 13, 2017 at 4:41 PM, Dan Stromberg <[hidden email]> wrote:
On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:
On 13 April 2017 at 23:44, Dan Stromberg <[hidden email]> wrote:

> Does anyone have any suggestions?  I miss being able to tell which buttons
> I've clicked!

Care to point to a screenshot, so it's possible to understand what you
see - and what you expect?
Here're 2 screenshots:

It's the "benchbox" button that's selected - near the upper left, right below where it says "Dan's from Dan's".

If I remote display from the system with a very recent GTK+ (under /usr/local/cpython-3.6), to a system with an older GTK+ (the version that comes with Linux Mint 18 - displayed using ssh tunneling of X11), I get the stuff at the bottom of this message.  Also, the buttons are just text - no outlines at all.

Here's a 63-line SSCCE for the problem (if you choose to run it, you'll likely have to change the #! line):

That is, the 2 toggle buttons in the test program are almost indistinguishable from each other when one is selected and the other is not.

Would it be productive for me to try some older versions of GTK+?  Or to translate the SSCCE to C?  Or would it be better to just try some newer themes?

Thanks!

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg
In reply to this post by Emmanuele Bassi

On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:

The default Adwaita theme has a fair distinction between states:

https://i.imgur.com/6bg9eNc.png

I switched to the Adwaita theme on both systems.

But it's still pretty hard to tell if a toggle button has been selected or not.

The text color isn't changing at all from what I can see, and the background color change remains slight.

Any further suggestions folks?

Thanks! 

_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Gtk+ - General mailing list

Hi Dan,

You can draw on the toggle button window, use an event box or use a drawing area to create a toggle button with any color that you like. Here is a short C example of drawing on a toggle button window.

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/toggle_button1.c

Eric


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

infirit
In reply to this post by Dan Stromberg
Op 04/19/2017 om 01:41 AM schreef Dan Stromberg:

> On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:
>
>> The default Adwaita theme has a fair distinction between states:
>>
>> https://i.imgur.com/6bg9eNc.png
>
> I switched to the Adwaita theme on both systems.
>
> But it's still pretty hard to tell if a toggle button has been selected or
> not.

You are pretty much at the mercy of the theme developers, the only
option to be sure to have properly distinguishable states is to style it
yourself.

> The text color isn't changing at all from what I can see, and the
> background color change remains slight.


I modified your script and made the background in checked state red by
loading some css. This is of course a silly example and you should
adjust it to your needs but it shows how it is done. One option is to
set a border colour.

https://gist.github.com/infirit/cf4f531e03136b641471b079b8370ead

~infirit
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A toggled toggle button visually almost indistinct from untoggled

Dan Stromberg

On Wed, Apr 19, 2017 at 11:12 AM, infirit <[hidden email]> wrote:
Op 04/19/2017 om 01:41 AM schreef Dan Stromberg:
On Thu, Apr 13, 2017 at 3:55 PM, Emmanuele Bassi <[hidden email]> wrote:

The default Adwaita theme has a fair distinction between states:

https://i.imgur.com/6bg9eNc.png

I switched to the Adwaita theme on both systems.

But it's still pretty hard to tell if a toggle button has been selected or
not.

You are pretty much at the mercy of the theme developers, the only option to be sure to have properly distinguishable states is to style it yourself.

The text color isn't changing at all from what I can see, and the
background color change remains slight.


I modified your script and made the background in checked state red by loading some css. This is of course a silly example and you should adjust it to your needs but it shows how it is done. One option is to set a border colour.

https://gist.github.com/infirit/cf4f531e03136b641471b079b8370ead

That was very helpful.  'More help than I could reasonably hope for.

Thank you very much! 


_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Loading...