[Bugs] #4090 sugar-artwork UNSP: Style arrows

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Oct 24 08:26:15 EDT 2012


#4090: Style arrows
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  manuq      
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  1.0        
   Component:  sugar-artwork              |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:  theme      
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
 Our arrows have regressed in the port to GTK+3.  See comparison:

 This can't be done just with CSS.  This is a special case that needs a new
 engine
 written in C, that reimplements gtk-render-arrow of GtkStyleContext.  The
 new engine can inherit only this code and nothing else, so we are safe
 doing it.

 Reference: http://developer.gnome.org/gtk3/3.0/GtkThemingEngine.html

 After that we can style in the CSS with this rules:

 {{{
  * {
      engine: sugar;
  }

 .arrow {
     color: #f00;
 }

  * {
 -GtkArrow-arrow-size: 1.0;
 -GtkWidget-scroll-arrow-hlength: 11;
 -GtkWidget-scroll-arrow-vlength: 11;
 -GtkMenu-scroll-arrow-vlength: 19;
 }
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4090>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list