[Bugs] #3890 untriaged UNSP: Style subtoolbar background

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Sep 12 10:42:42 EDT 2012

#3890: Style subtoolbar background
    Reporter:  manuq                      |          Owner:                             
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  untriaged                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
 We have a Gtk.Toolbar inside a Gtk.Alignment inside a Gtk.EventBox (see
 toolbarbox.py embed_page function).  The Gtk.Toolbar gets the correct
 color, but not the area around.  One solution is modify the EventBox

 --- a/src/sugar3/graphics/toolbarbox.py
 +++ b/src/sugar3/graphics/toolbarbox.py
 @@ -270,6 +270,8 @@ class _Box(Gtk.EventBox):
          self._toolbar_button = toolbar_button
 +        self.modify_bg(Gtk.StateType.NORMAL,
 +                       style.COLOR_TOOLBAR_GREY.get_gdk_color())

      def do_draw(self, cr):
          button_alloc = self._toolbar_button.get_allocation()

 That is close to a solution, but also the background should be modified to
 black when the toolitem is hovered.

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

More information about the Bugs mailing list