Ticket #3561 (closed defect: fixed)

Opened 13 months ago

Last modified 11 months ago

Read bookmark entry/edit Details area lacks border around text entry area

Reported by: greenfeld Owned by: manuq
Priority: Unspecified by Maintainer Milestone: 0.96
Component: Read Version: Unspecified
Severity: Unspecified Keywords: 12.1.0, patch, olpc-test-passed
Cc: humitos Distribution/OS: OLPC
Bug Status: Unconfirmed

Description

The Read activity's bookmark entry/edit Details area lacks a visible border around its text entry area.

The single-line bookmark title entry area does have a visible border.

Seen with a PDF file in OLPC 12.1.0 os8/Read-99.

Attachments

Screenshot of _The Call of the Wild, by Jack London__2.png Download (39.4 KB) - added by humitos 12 months ago.
Captura pantalla de _sampletext.dvi_.png Download (68.8 KB) - added by humitos 12 months ago.
TextView with borders
bookmark-textview-with-borders.diff Download (0.6 KB) - added by humitos 12 months ago.
Not final patch, just an example
0001-Borders-in-the-Bookmark-Description-entry-SL-3561.patch Download (1.2 KB) - added by humitos 12 months ago.
This is the correct patch - using the enumerates provided by Gtk (thanks manuq)
0001-Borders-in-the-Bookmark-Description-entry-SL-3561.2.patch Download (1.2 KB) - added by humitos 12 months ago.
This is the correct patch - using the enumerates provided by Gtk (thanks manuq)
0001-Make-toolbars-black-background-SL-3403.patch Download (1.0 KB) - added by manuq 11 months ago.
0002-Theme-ScrolledWindow-frame-SL-3561.patch Download (1.2 KB) - added by manuq 11 months ago.
0002-Theme-ScrolledWindow-frame-SL-3561.patch-2 Download (1.2 KB) - added by manuq 11 months ago.
Second version of the ScrolledWindow frame styled.

Change History

Changed 13 months ago by godiard

  • keywords 12.1.0 added

Changed 12 months ago by humitos

  • cc humitos added

I could reproduce this issue in XO 1.75 os12

Changed 12 months ago by humitos

  • owner changed from godiard to humitos
  • status changed from new to accepted

Changed 12 months ago by humitos

TextView with borders

Changed 12 months ago by humitos

Not final patch, just an example

Changed 12 months ago by humitos

I don't know how to import this constant from Python (that is why I used just numbers):

and I don't know how to make the corners rounded. Maybe this is a theme issue. I'm not sure.

Changed 12 months ago by humitos

This is the correct patch - using the enumerates provided by Gtk (thanks manuq)

Changed 12 months ago by humitos

This is the correct patch - using the enumerates provided by Gtk (thanks manuq)

Changed 12 months ago by erikos

  • milestone changed from Unspecified by Release Team to 0.96

Changed 12 months ago by erikos

Ok, so we should probably do all of the theming of the dialog in sugar-artwork and revert the work around Gonzalo did inside Read in 0c4072cd9667222df883684ae26364c973c90773.

Changed 12 months ago by humitos

  • owner changed from humitos to manuq
  • status changed from accepted to assigned

OK. I'm re-assigning this ticket to manuq, because he is on the theme.

Changed 12 months ago by humitos

  • keywords 12.1.0, patch added; 12.1.0 removed

Changed 12 months ago by manuq

What is not working is the set of the shadow type in a Gtk.ScrolledWindow, in Read readdialog.py is set as:

sw = Gtk.ScrolledWindow()
...
sw.set_shadow_type(Gtk.ShadowType.ETCHED_IN)

Changed 11 months ago by manuq

Changed 11 months ago by manuq

Changed 11 months ago by manuq

Found how to style the ScrolledWindow shadow, is in the second patch.

The first one fixes the theme so Read workaround in commit 0c4072cd9667222df883684ae26364c973c90773 can be removed.

Changed 11 months ago by erikos

Should we do a:

padding: $(default_padding)px;

to breath a bit more when taking bookmark notes :)

And yes, the Read patch can be removed with this fix.

Changed 11 months ago by manuq

Thanks for reviewing Simon, you are right about the padding. I attach a second version.

Changed 11 months ago by manuq

Second version of the ScrolledWindow frame styled.

Changed 11 months ago by manuq

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

Thanks, pushed.

Changed 11 months ago by greenfeld

  • keywords olpc-test-passed added; olpc-test-pending removed

The border is present in Read-99/OLPC 12.1.0 os16. Tested on XO-1 and XO-1.75.

Note: See TracTickets for help on using tickets.