From 817589743f5e055ccd3e8c803cfa0267533059a2 Mon Sep 17 00:00:00 2001 From: DropDemBits Date: Sat, 12 Nov 2022 03:10:58 -0500 Subject: [PATCH] gui_qt/add_translation: fix #1569 Setting the stylesheet resets the palette colors to the system default. For the base color, that'd mean that it'd be reset to `#ffffff`. While setting the palette from the stylesheet could be done, it's much simpler to instead let the formatted text inherit the background color. --- news.d/bugfix/1571.ui.md | 1 + plover/gui_qt/add_translation_widget.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 news.d/bugfix/1571.ui.md diff --git a/news.d/bugfix/1571.ui.md b/news.d/bugfix/1571.ui.md new file mode 100644 index 000000000..20e510209 --- /dev/null +++ b/news.d/bugfix/1571.ui.md @@ -0,0 +1 @@ +Fix "add translation" dialog ignoring the stylesheet's background color for the translation and stroke text. diff --git a/plover/gui_qt/add_translation_widget.py b/plover/gui_qt/add_translation_widget.py index 4e6c019c7..1d3643f76 100644 --- a/plover/gui_qt/add_translation_widget.py +++ b/plover/gui_qt/add_translation_widget.py @@ -42,14 +42,12 @@ def __init__(self, *args, **kwargs): self._special_fmt = ( '%s' ) self._special_fmt_bold = ( '%s'