After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653294 - Make page and thumbnail borders styleable with CSS
Make page and thumbnail borders styleable with CSS
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
3.1.x
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 689166
 
 
Reported: 2011-06-23 23:40 UTC by jano
Modified: 2012-12-23 12:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dropshadow (32.68 KB, image/png)
2011-06-23 23:40 UTC, jano
  Details
searchbar (75.84 KB, image/png)
2011-06-23 23:40 UTC, jano
  Details
Use a rendered frame instead of custom border (8.68 KB, patch)
2012-11-30 03:54 UTC, William Jon McCann
none Details | Review
Allow sidebar thumbnails to be styled with CSS (9.00 KB, patch)
2012-11-30 03:54 UTC, William Jon McCann
none Details | Review
Allow sidebar thumbnails to be styled with CSS (8.52 KB, patch)
2012-11-30 20:10 UTC, William Jon McCann
none Details | Review
Use a rendered frame instead of custom border (9.00 KB, patch)
2012-12-05 02:18 UTC, William Jon McCann
rejected Details | Review
Allow sidebar thumbnails to be styled with CSS (8.52 KB, patch)
2012-12-05 02:18 UTC, William Jon McCann
reviewed Details | Review
Set a style class on the view so it can be more easily styled (1.85 KB, patch)
2012-12-05 02:18 UTC, William Jon McCann
committed Details | Review
Use a rendered frame instead of custom border (9.58 KB, patch)
2012-12-06 17:49 UTC, William Jon McCann
committed Details | Review
Allow sidebar thumbnails to be styled with CSS (8.53 KB, patch)
2012-12-06 17:49 UTC, William Jon McCann
committed Details | Review

Description jano 2011-06-23 23:40:14 UTC
Created attachment 190547 [details]
dropshadow

i have two simple suggestions concerning the overall look of evince. since im no programmer i cant estimate how much time it takes to apply these ideas, but they seem easy and efficient for the appeal of evince.

1. since libreoffice 3.4 the pages have a appealing drop-shadow instead of the hard black shadow, which looks very nice. since its already working in libreoffice, isnt easy to port it to evince?

2. the search bar function of the newest gedit version is very comfortable and size saving. having it in evince would also account for a overall look in gnome.
Comment 1 jano 2011-06-23 23:40:40 UTC
Created attachment 190548 [details]
searchbar
Comment 2 William Jon McCann 2012-11-30 03:53:31 UTC
I'm going to focus this report on improving the page border. Please file a new bug for improvements to the search functionality.

I'm going to attach a couple patches that make the borders styleable from CSS. I'm going to need Cosimo's help making the style use a drop shadow.
Comment 3 William Jon McCann 2012-11-30 03:54:39 UTC
Created attachment 230261 [details] [review]
Use a rendered frame instead of custom border

So it can be styled with CSS.
Comment 4 William Jon McCann 2012-11-30 03:54:44 UTC
Created attachment 230262 [details] [review]
Allow sidebar thumbnails to be styled with CSS
Comment 5 William Jon McCann 2012-11-30 20:10:50 UTC
Created attachment 230336 [details] [review]
Allow sidebar thumbnails to be styled with CSS
Comment 6 William Jon McCann 2012-12-05 02:18:26 UTC
Created attachment 230713 [details] [review]
Use a rendered frame instead of custom border

So it can be styled with CSS.
Comment 7 William Jon McCann 2012-12-05 02:18:31 UTC
Created attachment 230714 [details] [review]
Allow sidebar thumbnails to be styled with CSS
Comment 8 William Jon McCann 2012-12-05 02:18:36 UTC
Created attachment 230715 [details] [review]
Set a style class on the view so it can be more easily styled

And share the style we use for other content views.
Comment 9 Carlos Garcia Campos 2012-12-06 10:25:47 UTC
Review of attachment 230713 [details] [review]:

I'm fine with using CSS for the border, but I don't want to remove the shadow nor the current page highlight. Also, I would like to make sure that the theme can't break the page rendering, I had to add custom CSS because we depended on the theme and changes in adwaita broke the page rendering. See http://git.gnome.org/browse/evince/commit/?id=dbc67b85fa737fa9a66c4bc7b4c30e82be9c8543
Comment 10 Carlos Garcia Campos 2012-12-06 10:35:56 UTC
Review of attachment 230714 [details] [review]:

Same here, why removing the shadow? I would agree on removing the shadow for the thumbnails, but I think it's a different issue, this bug is about allowing the thumbnails and page to be styled with CSS not about actually changing the current style, no?
Comment 11 William Jon McCann 2012-12-06 17:49:05 UTC
Created attachment 230907 [details] [review]
Use a rendered frame instead of custom border

So it can be styled with CSS.
Comment 12 William Jon McCann 2012-12-06 17:49:10 UTC
Created attachment 230908 [details] [review]
Allow sidebar thumbnails to be styled with CSS
Comment 13 Carlos Garcia Campos 2012-12-23 12:24:54 UTC
Review of attachment 230715 [details] [review]:

Pushed, thanks!
Comment 14 Carlos Garcia Campos 2012-12-23 12:25:23 UTC
Review of attachment 230715 [details] [review]:

Pushed, thanks!
Comment 15 Carlos Garcia Campos 2012-12-23 12:27:21 UTC
Review of attachment 230907 [details] [review]:

Committed a slightly different version, to keep API compatibility. Now paint one page is just gtk_render_background + rende_frame, so I've moved that code to the view, leaving he old code in documnet_misc that will be marked as deprecated.
Comment 16 Carlos Garcia Campos 2012-12-23 12:29:11 UTC
Review of attachment 230908 [details] [review]:

Also committed a different version to keep API compatibility. I've added two new functions: ev_document_misc_render_loading_thumbnail() and ev_document_misc_render_thumbnail_with_frame(). To render the thumbnails without a frame you need to call ev_job_thumbnail_set_has_frame (job, FALSE).