Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka committed Jan 9, 2024
1 parent 6d3bd32 commit c9a9813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ class HtmlEpubReaderViewController: UIViewController {
}
var isSidebarVisible: Bool { return self.sidebarLeft?.constant == 0 }
private lazy var toolbarButton: UIBarButtonItem = {
let checkbox = CheckboxButton(type: .custom)
checkbox.setImage(UIImage(systemName: "pencil.and.outline", withConfiguration: UIImage.SymbolConfiguration(scale: .large)), for: .normal)
let checkbox = CheckboxButton(
image: UIImage(systemName: "pencil.and.outline", withConfiguration: UIImage.SymbolConfiguration(scale: .large))!,
contentInsets: NSDirectionalEdgeInsets(top: 6, leading: 6, bottom: 6, trailing: 6)
)
checkbox.adjustsImageWhenHighlighted = false
checkbox.scalesLargeContentImage = true
checkbox.layer.cornerRadius = 4
checkbox.layer.masksToBounds = true
checkbox.contentEdgeInsets = UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 6)
checkbox.selectedBackgroundColor = Asset.Colors.zoteroBlue.color
checkbox.selectedTintColor = .white
checkbox.deselectedTintColor = Asset.Colors.zoteroBlueWithDarkMode.color
Expand Down
2 changes: 2 additions & 0 deletions Zotero/Scenes/Detail/PDF/Views/PDFReaderViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import RxSwift

protocol PDFReaderContainerDelegate: AnyObject {
var isSidebarVisible: Bool { get }
var statusBarHeight: CGFloat { get }
var navigationBarHeight: CGFloat { get }

func showSearch(pdfController: PDFViewController, text: String?)
}
Expand Down

0 comments on commit c9a9813

Please sign in to comment.