From c84a98c23c42aabbb11a29402c0024dd1be9edce Mon Sep 17 00:00:00 2001 From: demmm Date: Sat, 18 Oct 2014 19:41:53 -0400 Subject: [PATCH] set option to select higlighted text color keep it independent from background color, should make it easier to add a color section option to branding --- src/calamares/progresstree/ProgressTreeDelegate.cpp | 2 +- src/libcalamaresui/utils/CalamaresStyle.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calamares/progresstree/ProgressTreeDelegate.cpp b/src/calamares/progresstree/ProgressTreeDelegate.cpp index 20e5146da..9270ecd6f 100644 --- a/src/calamares/progresstree/ProgressTreeDelegate.cpp +++ b/src/calamares/progresstree/ProgressTreeDelegate.cpp @@ -135,7 +135,7 @@ ProgressTreeDelegate::paintViewStep( QPainter* painter, if ( isCurrent ) { - painter->setPen( CalamaresStyle::SIDEBAR_BACKGROUND ); + painter->setPen( CalamaresStyle::SIDEBAR_TEXT_SELECT ); painter->setBrush( APP->mainWindow()->palette().background() ); } diff --git a/src/libcalamaresui/utils/CalamaresStyle.h b/src/libcalamaresui/utils/CalamaresStyle.h index 0520a2b56..8eb24a711 100644 --- a/src/libcalamaresui/utils/CalamaresStyle.h +++ b/src/libcalamaresui/utils/CalamaresStyle.h @@ -28,6 +28,7 @@ namespace CalamaresStyle { static const QColor SIDEBAR_BACKGROUND = "#292F34"; static const QColor SIDEBAR_TEXT = "#FFFFFF"; +static const QColor SIDEBAR_TEXT_SELECT = "#292F34"; } // namespace CalamaresStyle