mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
ae5dbbe786
commit
c8cbe7a496
@ -242,7 +242,7 @@ class TouchHandler:
|
|||||||
self.handle_gesture(gesture)
|
self.handle_gesture(gesture)
|
||||||
|
|
||||||
def inch_in_pixels():
|
def inch_in_pixels():
|
||||||
ans = inch_in_pixels().ans
|
ans = inch_in_pixels.ans
|
||||||
if not ans:
|
if not ans:
|
||||||
ans = inch_in_pixels.ans = max(2, get_unit_size_in_pixels('in'))
|
ans = inch_in_pixels.ans = max(2, get_unit_size_in_pixels('in'))
|
||||||
return ans
|
return ans
|
||||||
|
@ -162,7 +162,7 @@ class ReadUI:
|
|||||||
div.appendChild(E.div(style='padding: 2ex 2rem; display:table; margin: auto'))
|
div.appendChild(E.div(style='padding: 2ex 2rem; display:table; margin: auto'))
|
||||||
div = div.lastChild
|
div = div.lastChild
|
||||||
dp = E.div()
|
dp = E.div()
|
||||||
create_simple_dialog_markup(title, _('Could not open {}. {}').format(book, msg), details, 'bug', '', dp)
|
create_simple_dialog_markup(title, _('Could not open {}. {}').format(book, msg), details, 'bug', '', 'red', dp)
|
||||||
div.appendChild(dp)
|
div.appendChild(dp)
|
||||||
div.appendChild(E.div(
|
div.appendChild(E.div(
|
||||||
style='margin-top: 1ex; padding-top: 1ex; border-top: solid 1px currentColor',
|
style='margin-top: 1ex; padding-top: 1ex; border-top: solid 1px currentColor',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user