From c8cbe7a4968b7c19d02be9ae93612b8c0fa52708 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Feb 2023 21:54:15 +0530 Subject: [PATCH] ... --- src/pyj/read_book/touch.pyj | 2 +- src/pyj/read_book/ui.pyj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/touch.pyj b/src/pyj/read_book/touch.pyj index 8551e2a4b4..6b8612feac 100644 --- a/src/pyj/read_book/touch.pyj +++ b/src/pyj/read_book/touch.pyj @@ -242,7 +242,7 @@ class TouchHandler: self.handle_gesture(gesture) def inch_in_pixels(): - ans = inch_in_pixels().ans + ans = inch_in_pixels.ans if not ans: ans = inch_in_pixels.ans = max(2, get_unit_size_in_pixels('in')) return ans diff --git a/src/pyj/read_book/ui.pyj b/src/pyj/read_book/ui.pyj index 01c0aa6c57..50c13eccee 100644 --- a/src/pyj/read_book/ui.pyj +++ b/src/pyj/read_book/ui.pyj @@ -162,7 +162,7 @@ class ReadUI: div.appendChild(E.div(style='padding: 2ex 2rem; display:table; margin: auto')) div = div.lastChild 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(E.div( style='margin-top: 1ex; padding-top: 1ex; border-top: solid 1px currentColor',