This commit is contained in:
Kovid Goyal 2023-01-08 21:18:41 +05:30
parent 145c357cb9
commit 883acf589a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: