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)

This commit is contained in:
Kovid Goyal 2019-10-07 06:19:20 +05:30
parent d84626293c
commit c668fec87b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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=''):