Ticket #3387 (closed defect: fixed)

Opened 14 months ago

Last modified 11 months ago

Artifacts in share buttons

Reported by: godiard Owned by: erikos
Priority: High Milestone: 0.96
Component: sugar-toolkit-gtk3 Version: Git as of bugdate
Severity: Major Keywords: 12.1.0, patch, olpc-test-passed
Cc: Distribution/OS: OLPC
Bug Status: Assigned

Description

In os5 with the last sugar-artwork/toolkit rpm, the icons in the share toolbar are not displayed ok in a gtk3 activity (Read).

The gtk2 activities are ok, and the same gtk3 activity show the icons ok in my F16 devel env.

Attachments

Captura_share_button_gtk3.png Download (441.3 KB) - added by godiard 14 months ago.
Captura_share_button_gtk_hover.png Download (443.0 KB) - added by godiard 14 months ago.
The same icon when the mouse is over it
share_palette.png Download (21.5 KB) - added by erikos 13 months ago.
share palette in gtk2
share_palette_shared.png Download (23.0 KB) - added by erikos 13 months ago.
shared palette in gtk2: when shared the buttons become inactive (becasue one can not unshare other than closing the activity)
0001-Improve-theming-of-share-buttons.patch Download (1.2 KB) - added by garnacho 12 months ago.
Partial fix, improve theming of share buttons
0001-Improve-theming-of-toggle-buttons-in-toolbars.patch Download (2.2 KB) - added by garnacho 12 months ago.
patch
0001-Fix-artifacts-in-share-button-SL-3387.patch Download (2.3 KB) - added by erikos 12 months ago.
Patch to fix the artifacts in teh share button

Change History

Changed 14 months ago by godiard

Changed 14 months ago by godiard

The same icon when the mouse is over it

Changed 14 months ago by erikos

  • distribution changed from Unspecified to OLPC
  • severity changed from Unspecified to Major
  • milestone changed from Unspecified by Release Team to 0.96

Changed 14 months ago by erikos

  • keywords 12.1.0 added

One of the issues here is that in radiotoolbutton we still have code that is using 'do_expose_event' instead of 'do_draw', this has to be ported.

Changed 13 months ago by erikos

share palette in gtk2

Changed 13 months ago by erikos

shared palette in gtk2: when shared the buttons become inactive (becasue one can not unshare other than closing the activity)

Changed 13 months ago by erikos

  • priority changed from Unspecified by Maintainer to High
  • version changed from Unspecified to Git as of bugdate
  • status_field changed from Unconfirmed to Assigned

First part of the issue:

The white square which can be seen in the sharing palette instead of the home view icon is because the background-color for a widget in the active state is set to white in the theme by default:  http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/gtk3/theme/gtk-widgets.css.em#line123 The widget is in the active state at that moment. We have to see now if we need that gloabl background setting and what uses it, maybe it can be more specialized.

Changed 12 months ago by garnacho

Partial fix, improve theming of share buttons

Changed 12 months ago by garnacho

The attached patch improves the theming color wise (I don't know of any gtk2 activity to compare it with though), but triggers some weird resizing of the palette window. I've yet to investigate where do those come from, it looks like either:
- some css rules specificity bug (there don't seem to be rules that should mess with padding/margin)
- something in the code triggering a queue_resize() with strange values, the bigger rectangle over the active&hovered item might stretch things, and isn't drawn by the GtkRadioToolButton child itself

Changed 12 months ago by garnacho

Doh! I completely oversaw a cluster of rules that could override certain values, I'm attaching another patch, which coincidentally fixes  http://bugs.sugarlabs.org/ticket/3590 as well

Changed 12 months ago by garnacho

patch

Changed 12 months ago by erikos

Patch to fix the artifacts in teh share button

Changed 12 months ago by erikos

  • keywords 12.1.0, patch added; 12.1.0 removed

Changed 12 months ago by erikos

  • keywords patch, olpc-test-pending added; patch removed
  • status changed from new to closed
  • resolution set to fixed

I pushed the patch now with a more detailed description as:  http://git.sugarlabs.org/sugar-artwork/mainline/commit/54ef96860a93eb5c95ea019c12cd4dc388117398 after I got green testing light from Gonzalo, will be in 0.96.3.

I think the issue described here is fixed now and we have the same appearance as with the old toolkit. As an enhancement, we might want to highlight the neighborhood icon when hovering over it:

SugarPaletteWindowWidget SugarRadioToolButton *:hover {
    background-color: @button_grey;                                                                                                                                                      
    border-radius: $(toolbutton_padding)px;                                                                                                                                           
}

Changed 12 months ago by greenfeld

  • keywords patch added; patch, olpc-test-pending removed
  • status changed from closed to reopened
  • resolution fixed deleted

I can exactly reproduce the problem shown in the Captura_share_button_gtk3.png and Captura_share_button_gtk_hover.png files, so this does not seem to be fixed.

Changed 12 months ago by greenfeld

  • keywords patch, olpc-test-pending added; patch removed
  • status changed from reopened to closed
  • resolution set to fixed

Actually I take that back; may not be in the build yet as of os11.

Changed 11 months ago by greenfeld

  • keywords patch added; patch, olpc-test-pending removed
  • status changed from closed to reopened
  • resolution fixed deleted

This still does not seem to be fixed in 12.1.0 os13.

Changed 11 months ago by erikos

Works fine for me in os13, which has artwork-0.93 which has the fix.

Changed 11 months ago by greenfeld

  • keywords patch, olpc-test-passed added; patch removed
  • status changed from reopened to closed
  • resolution set to fixed

The fix is in 12.1.0 os14/os15, but according to  http://build.laptop.org/12.1.0/os13/xo-1.5/21013o1.packages.txt os13 still had sugar-artwork-0.96.2.

Changed 11 months ago by erikos

Ok, I see now - I checked on the 1.75 where the 0.93 release was available on the 1.5 you are right it was still 0.92 in the os13 build. An issue introduced by the infrastructural differences.

Note: See TracTickets for help on using tickets.