mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
d84626293c
commit
c668fec87b
@ -42,9 +42,9 @@ from calibre.db import SPOOL_SIZE
|
|||||||
from calibre.ebooks.oeb.polish.main import SUPPORTED as EDIT_SUPPORTED
|
from calibre.ebooks.oeb.polish.main import SUPPORTED as EDIT_SUPPORTED
|
||||||
from polyglot.builtins import iteritems, unicode_type, range
|
from polyglot.builtins import iteritems, unicode_type, range
|
||||||
|
|
||||||
OK_COLOR = 'rgba(0, 255, 0, 12%)'
|
OK_COLOR = 'rgba(0, 255, 0, 50%)'
|
||||||
ERR_COLOR = 'rgba(255, 0, 0, 12%)'
|
ERR_COLOR = 'rgba(255, 0, 0, 50%)'
|
||||||
INDICATOR_SHEET = 'QLineEdit { color: black; background-color: %s }'
|
INDICATOR_SHEET = 'QLineEdit { border: 2px solid %s; border-radius: 2px }'
|
||||||
|
|
||||||
|
|
||||||
def save_dialog(parent, title, msg, det_msg=''):
|
def save_dialog(parent, title, msg, det_msg=''):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user