Skip to content

Commit

Permalink
Merge pull request #1571 from DropDemBits/add-translation-bkg-colors
Browse files Browse the repository at this point in the history
Fix "Add Translation" formatted translation & raw strokes always using a white background color
  • Loading branch information
sammdot committed Jul 14, 2023
2 parents 78f5020 + 8175897 commit e651627
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions news.d/bugfix/1571.ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix "add translation" dialog ignoring the stylesheet's background color for the translation and stroke text.
2 changes: 0 additions & 2 deletions plover/gui_qt/add_translation_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ def __init__(self, *args, **kwargs):

self._special_fmt = (
'<span style="' +
'background-color:' + self.palette().base().color().name() +';' +
'font-family:monospace;' +
'">%s</span>'
)

self._special_fmt_bold = (
'<span style="' +
'background-color:' + self.palette().base().color().name() +';' +
'font-family:monospace;' +
'font-weight:bold;' +
'">%s</span>'
Expand Down

0 comments on commit e651627

Please sign in to comment.