From c668fec87bdb082e8a0e6f46e7c911f94722a853 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Oct 2019 06:19:20 +0530 Subject: [PATCH] Edit metadata: Use a border rather than background color to indicate correct title and author sort values. Works better with dark themes. Fixes #1846967 [Private bug](https://bugs.launchpad.net/calibre/+bug/1846967) --- src/calibre/gui2/metadata/basic_widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index f3c6a95970..dc540f531b 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -42,9 +42,9 @@ from calibre.db import SPOOL_SIZE from calibre.ebooks.oeb.polish.main import SUPPORTED as EDIT_SUPPORTED from polyglot.builtins import iteritems, unicode_type, range -OK_COLOR = 'rgba(0, 255, 0, 12%)' -ERR_COLOR = 'rgba(255, 0, 0, 12%)' -INDICATOR_SHEET = 'QLineEdit { color: black; background-color: %s }' +OK_COLOR = 'rgba(0, 255, 0, 50%)' +ERR_COLOR = 'rgba(255, 0, 0, 50%)' +INDICATOR_SHEET = 'QLineEdit { border: 2px solid %s; border-radius: 2px }' def save_dialog(parent, title, msg, det_msg=''):