Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#1313 closed defect (fixed)

Activity entry icons in Journal should not be pre-lighting on rollover (fill/stroke colour reverses)

Reported by: garycmartin Owned by: tomeu
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Unspecified Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

When mousing over activity icons in the Journal, their fill and stroke colours are being reversed as part of a pre-light icon behaviour. This breaks the Sugar ownership colour metaphor for activity entries. Previous Sugar releases has no such pre-light roll over behaviour in the Journal so I'd class this as a regression.

The Journal is currently the only place I can see the rollover icon pre-lite actually happening. Aleksey pointed me to line 1091 where the stroke and fill colours are being reversed for the prelit effect:

http://git.sugarlabs.org/projects/sugar-toolkit/repos/mainline/blobs/master/src/sugar/graphics/icon.py

        if self._xo_color is not None:
	            stroke_color = self._xo_color.get_stroke_color()
	            fill_color = self._xo_color.get_fill_color()
	            prelit_fill_color = stroke_color
	            prelit_stroke_color = fill_color
	        else:
	            stroke_color = self._stroke_color
	            fill_color = self._fill_color
	            prelit_fill_color = self._prelit_fill_color
	            prelit_stroke_color = self._prelit_stroke_color

Attached is a small patch to fix the issue.

Attachments (1)

remove_prelit_invert_effect_for_icons.patch (671 bytes) - added by garycmartin 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by garycmartin

comment:1 Changed 15 years ago by tomeu

  • Keywords r+ added; r? removed
  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 11 years ago by dnarvaez

  • Milestone 0.86 deleted

Milestone 0.86 deleted

Note: See TracTickets for help on using tickets.