From 69a35b58d39478a61dc431066e1b31bae79fffec Mon Sep 17 00:00:00 2001 From: DigArtRoks <69391149+DigArtRoks@users.noreply.github.com> Date: Fri, 30 Oct 2020 19:51:04 +0100 Subject: [PATCH] Fix more background colors of selected text (#5687) --- data/themes/classic/style.css | 9 +++++++-- data/themes/default/style.css | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/data/themes/classic/style.css b/data/themes/classic/style.css index 65b496617..36f28a51a 100644 --- a/data/themes/classic/style.css +++ b/data/themes/classic/style.css @@ -34,8 +34,6 @@ QLineEdit { border-radius: 4px; border: 2px inset rgba(91,101,113,128); background: #49515b; - color: #e0e0e0; - selection-background-color: #202020; } @@ -50,6 +48,13 @@ QLineEdit:focus { border: 1px solid rgba(0,0,0, 128); } +/* Set color and selection background color for various inputs. + SpinBoxes are used in QInputDialogs */ + +QTextEdit, QLineEdit:focus, QComboBox:focus, QSpinBox:focus, QDoubleSpinBox:focus { + color: #e0e0e0; + selection-background-color: #202020; +} QToolTip { border-radius: 4px; diff --git a/data/themes/default/style.css b/data/themes/default/style.css index 832da176f..03de62023 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -61,8 +61,6 @@ QLineEdit { border-radius: 4px; border: 1px; background: #101213; - color: #d1d8e4; - selection-background-color: #17793b; } QLineEdit:read-only { @@ -76,6 +74,13 @@ QLineEdit:focus { border: 1px solid #0bd556; } +/* Set color and selection background color for various inputs. + SpinBoxes are used in QInputDialogs */ + +QTextEdit, QLineEdit:focus, QComboBox:focus, QSpinBox:focus, QDoubleSpinBox:focus { + color: #d1d8e4; + selection-background-color: #17793b; +} QToolTip { border-radius: 4px;