Skip to content

Commit f4eddc1

Browse files
committed
[sailfish-webengine-settings] Update text selection background color. Fixes JB#36973
Let's do not tamper QPalette just adjust preference.
1 parent f08867f commit f4eddc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/webenginesettings.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ void SailfishOS::WebEngineSettings::initialize()
6464
engineSettings->setPreference(QStringLiteral("apz.asyncscroll.timeout"), QVariant::fromValue<int>(15));
6565
engineSettings->setPreference(QStringLiteral("apz.fling_stopped_threshold"), QLatin1String("0.13f"));
6666

67+
// Theme settings.
68+
engineSettings->setPreference(QStringLiteral("ui.textSelectBackground"), QLatin1String("#878787"));
69+
6770
// Make long press timeout equal to the one in Qt
6871
engineSettings->setPreference(QStringLiteral("ui.click_hold_context_menus.delay"), QVariant(PressAndHoldDelay));
6972

0 commit comments

Comments
 (0)