Skip to content

Change border of pages to a realistic shadow, make thumbnails styleable via CSS #248

Merged
clefebvre merged 7 commits intolinuxmint:masterfrom
Piiit:thumbnails-1
Nov 16, 2018
Merged

Change border of pages to a realistic shadow, make thumbnails styleable via CSS #248
clefebvre merged 7 commits intolinuxmint:masterfrom
Piiit:thumbnails-1

Conversation

@Piiit
Copy link
Copy Markdown
Collaborator

@Piiit Piiit commented Sep 7, 2018

No description provided.

@Piiit Piiit changed the title Change border of pages to a realistic shadow, make thumbnails styleable via CSS [WIP] Change border of pages to a realistic shadow, make thumbnails styleable via CSS Sep 7, 2018
@Piiit Piiit changed the title [WIP] Change border of pages to a realistic shadow, make thumbnails styleable via CSS Change border of pages to a realistic shadow, make thumbnails styleable via CSS Oct 18, 2018
@Piiit
Copy link
Copy Markdown
Collaborator Author

Piiit commented Oct 18, 2018

@clefebvre Done. Please test and merge :-)

@Piiit Piiit changed the title Change border of pages to a realistic shadow, make thumbnails styleable via CSS [WIP] Change border of pages to a realistic shadow, make thumbnails styleable via CSS Oct 22, 2018
@Piiit
Copy link
Copy Markdown
Collaborator Author

Piiit commented Oct 22, 2018

@JosephMcc found some compatibility issues regarding GTK 3.22 CSS handling, which need to be fixed first. Back to WIP...

Moser Peter and others added 6 commits October 22, 2018 18:59
based on commit f1d24b0a6b799abc4ff948286c121b6a5bb7a909
…with CSS

commit 30d1c3f4d71d5f53603076c7c93a5999e65eec5a
Author: William Jon McCann <jmccann@redhat.com>
Date:   Sun Dec 23 13:18:49 2012 +0100

    libdocument: Allow sidebar thumbnails to be styled with CSS

    https://bugzilla.gnome.org/show_bug.cgi?id=653294

...this commit includes also:

commit 16bbee9df797c9498b0be983d1bcde309e281824
Author: Trinh Anh Ngoc <atw1990@gmail.com>
Date:   Sun Nov 29 09:28:29 2015 +0700

    shell: Update sidebar thumbnails CSS nodes

    Fixes frameless thumbnails with GTK+ 3.20

    https://bugzilla.gnome.org/show_bug.cgi?id=758793
commit 7a6b53a1b4083cf6a3d9660dfc7978bb37c3d9e7
Author: William Jon McCann <jmccann@redhat.com>
Date:   Sun Dec 23 10:49:58 2012 +0100

    view: Use a rendered frame instead of custom border

    So it can be styled with CSS.

    https://bugzilla.gnome.org/show_bug.cgi?id=653294
commit 38528f9f1e225f4d661a1d813c5fae45fd6707d4
Author: Carlos Garcia Campos <carlosgc@gnome.org>
Date:   Sun Dec 23 11:28:46 2012 +0100

    view: Fix page background rendering while loading
commit 48110cb41681d8babe94cc8ee3fb26a533d16671
Author: Carlos Garcia Campos <cgarcia@igalia.com>
Date:   Mon Aug 4 12:50:41 2014 +0200

    previewer: Add CSS file for EvView styling

    EvView CSS used to be shared in adwaita theme, but now that adwaita has
    been merged into GTK+ and app specific CSS has been removed, we need to
    add the EvView CSS to all of its users.
Always draw thumbnail frames styled by CSS (see .page-thumbnail inside shell/xreader.css),
and not through hard-coded pixbuf manipulations.
The old calculation caused sometimes rounding errors, which could
cut off the lower border line.
@Piiit Piiit changed the title [WIP] Change border of pages to a realistic shadow, make thumbnails styleable via CSS Change border of pages to a realistic shadow, make thumbnails styleable via CSS Nov 2, 2018
@Piiit
Copy link
Copy Markdown
Collaborator Author

Piiit commented Nov 2, 2018

This is a better solution now. I fixed also the css issues. Please re-test...

@JosephMcc
Copy link
Copy Markdown
Contributor

@Piiit I tested this again. It looks ok except the thumbnails in the recents view no longer get a border drawn around them. That needs to be fixed.

@clefebvre
Copy link
Copy Markdown
Member

@Piiit @JosephMcc I'll merge this, I think it's a great improvement over master already. Recent thumbs could do with a border, but even now they look better than in master.

PS: The CSS refers to a PNG for the thumb frame, is that OK in HiDPI? Would it look cleaner if it was just 100% CSS, without the need for any image at all? (i.e. a clean border, as opposed to something that's trying to look like a page).

@clefebvre clefebvre merged commit 2bd08e3 into linuxmint:master Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants