Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a very basic XKCD hook #165

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
changed toc button to landscape/portrait toggle
  • Loading branch information
everydayanchovies committed May 16, 2021
commit c9f4eee8e08e70f3e4fdd2601aefc492b317e0b8
4 changes: 3 additions & 1 deletion src/view/home/shelf.rs
Original file line number Diff line number Diff line change
@@ -62,7 +62,9 @@ impl Shelf {
self.thumbnail_previews = thumbnail_previews;
}

pub fn update(&mut self, metadata: &[Info], hub: &Hub, rq: &mut RenderQueue, context: &Context) {
pub fn

update(&mut self, metadata: &[Info], hub: &Hub, rq: &mut RenderQueue, context: &Context) {
self.children.clear();
let dpi = CURRENT_DEVICE.dpi;
let big_height = scale_by_dpi(BIG_BAR_HEIGHT, dpi) as i32;
1 change: 1 addition & 0 deletions src/view/mod.rs
Original file line number Diff line number Diff line change
@@ -413,6 +413,7 @@ pub enum ViewId {
AboutDialog,
ShareDialog,
MarginCropper,
Rotate,
TopBottomBars,
TableOfContents,
MessageNotif(Id),
Loading