Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/b958db4bcd57edbeb3ac0e536bcb69d7 to your computer and use it in GitHub Desktop.
Save ivan/b958db4bcd57edbeb3ac0e536bcb69d7 to your computer and use it in GitHub Desktop.
Give konsole tabs with new output a more easily-visible color
From 5d6154a825bc0c4ba9845b2723177c6e3fdf0d4a Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sun, 3 Dec 2017 23:55:22 +0000
Subject: [PATCH] Give tabs with activity a more eye-catching color
---
src/ViewContainer.cpp | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp
index f0017fd6..6886a782 100644
--- a/src/ViewContainer.cpp
+++ b/src/ViewContainer.cpp
@@ -34,8 +34,6 @@
#include <QVBoxLayout>
// KDE
-#include <KColorScheme>
-#include <KColorUtils>
#include <KLocalizedString>
#include <QMenu>
@@ -662,14 +660,7 @@ void TabbedViewContainer::widgetRemoved(int index)
void TabbedViewContainer::setTabActivity(int index , bool activity)
{
- const QPalette& palette = _tabBar->palette();
- KColorScheme colorScheme(palette.currentColorGroup());
- const QColor colorSchemeActive = colorScheme.foreground(KColorScheme::ActiveText).color();
-
- const QColor normalColor = palette.text().color();
- const QColor activityColor = KColorUtils::mix(normalColor, colorSchemeActive);
-
- QColor color = activity ? activityColor : QColor();
+ QColor color = activity ? QColor(209, 25, 25) : QColor();
if (color != _tabBar->tabTextColor(index))
_tabBar->setTabTextColor(index, color);
--
2.11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment