Add support for dimming the colors when losing focus

Summary:
pretty vital (at least for me) if one doesn't have compositing.

we can't use the normal QPalette::Inactive because of color schemes,
but I made the new scrollbar color code follow the same dimming colors.

Test Plan:
tested with and without compositing, with and without scrollbar,
and dark and light color schemes.

Reviewers: hindenburg, #konsole

Reviewed By: hindenburg, #konsole

Subscribers: anthonyfieroni, konsole-devel, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D16198
This commit is contained in:
Martin T. H. Sandsmark
2018-10-27 15:22:03 -04:00
committed by Kurt Hindenburg
parent 2c9a793369
commit 25e07b7e20
8 changed files with 92 additions and 26 deletions

View File

@@ -811,6 +811,7 @@ void ViewManager::applyProfileToView(TerminalDisplay *view, const Profile::Ptr p
// show hint about terminal size after resizing
view->setShowTerminalSizeHint(profile->showTerminalSizeHint());
view->setDimWhenInactive(profile->dimWhenInactive());
// terminal features
view->setBlinkingCursorEnabled(profile->blinkingCursorEnabled());