On 2015-07-06 12:29, Nicolas Évrard wrote: > * Cédric Krier [2015-07-04 08:58 +0200]: > >Hi, > > Hello, > > >For now, we put a blue color on entries when they are required (and > >switch to red when validated as empty). > >I think it is a bad practice for 2 reasons: > > > > - the colors are not custumizable and so they could not work on some > > thèmes. > > > > - it is doesn't help the accessibility [1] as this information is > > only based on color. > > > >So I was thinking instead about adding a "*" on the labels of the > >required fields. This still stay quite visual (but not too much) and > >readable for accessibility. > > > >What do you think? Has anyone a better idea? > > Switching to GTK3 ;). > In fact I think this should be handle by GTK and not us. > They have those states available for the widgets: > https://developer.gnome.org/gtk3/stable/gtk3-Standard-Enumerations.html#GtkStateFlags > > Amongst them there is GTK_STATE_FLAG_INCONSISTENT which states that > the widget is inconsistent and this state is available as a CSS-alike > pseudo-class for theme designers. It is then up to them to handle > this.
Except default theme doesn't change anything to an entry with this state. So it seems to not be designed with this specific purpose. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/