[Bugs] #4304 sugar LOW: Journal detail view: style favourite button correctly

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Dec 13 17:00:51 EST 2012


#4304: Journal detail view: style favourite button correctly
----------------------------+-----------------------------------------------
    Reporter:  erikos       |          Owner:  humitos       
        Type:  defect       |         Status:  accepted      
    Priority:  Low          |      Milestone:  0.98          
   Component:  sugar        |        Version:  0.98.x        
    Severity:  Minor        |       Keywords:  regression, r?
Distribution:  Unspecified  |   Status_field:  Unconfirmed   
----------------------------+-----------------------------------------------
Changes (by humitos):

 * cc: manuq, erikos (added)
  * keywords:  regression => regression, r?


Comment:

 Attached 3 patches. This can't be done just with .css because the dark
 gray background will be kept in ":active" state after we click on the icon
 and leave it with the mouse pointer.

  * '''sugar.patch: '''
    * Uses "button-press" and "button-release" to change the background
 properly
    * Changes the star colors on "enter-notify" and "leave-notify"
    * Sets the size of the widget
  * '''sugar-artwork:''' Adds SugarKeepIcon to the ".cell.sugar-icon-cell"
 properties so they share the behaviour.
  * '''sugar-toolkit-gtk3:'''
    * Adds a helper method called "get_gdk_rgba_color" to get a Gdk.RGBA
 color needed by "Widget.override_background_color"
    * Adds the background color needed by SugarKeepIcon

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4304#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list