From 883acf589a53854da11293e78f108f39c806db9d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Jan 2023 21:18:41 +0530 Subject: [PATCH] ... --- src/calibre/gui2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index a67dc74680..151f5b59ab 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1292,8 +1292,8 @@ class Application(QApplication): return ans def stylesheet_for_line_edit(self, is_error=False): - return 'QLineEdit { border: 2px solid %s; border-radius: 3px }' % ( - '#FF2400' if is_error else '#50c878') + col = '#FF2400' if is_error else '#50c878' + return f'QLineEdit {{ border: 2px solid {col}; border-radius: 3px }}' def _send_file_open_events(self): with self._file_open_lock: