extend PlasmaCore.ColorScope for custom colors
Needs ReviewPublic

Authored by mvourlakos on Sep 29 2018, 9:17 PM.

Details

Reviewers
davidedmundson
mart
Group Reviewers
Plasma
Summary

--In the future dynamic coloring might be needed for
panels in the desktop. In such case panel colors might
be altered in order to follow the current active maximized
window colors or another case could be when the panel
is transparent and plasma theme colors arent providing
the best constrast with the underlying background.
This is a first step in order to support panels that color
themselves independently from the plasma theme or according
to the plasma theme but with best contrast at all cases.

Wanted by: T9769

Usage Example:

//Containment part

PlasmaCore.ColorScope{
   colorGroup: PlasmaCore.Theme.UserSetColorGroup
   textColor: "#f1f1f1"

   /*applets*/
}

//applet part

color: PlasmaCore.ColorScope.textColor //it is going to use #f1f1f1
Test Plan

-check that applets are coloring themselves accordingly
-check that previous behavior didnt break

Diff Detail

Repository
R242 Plasma Framework (Library)
Branch
extendColorScope
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 3340
Build 3358: arc lint + arc unit
mvourlakos created this revision.Sep 29 2018, 9:17 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 29 2018, 9:17 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
mvourlakos requested review of this revision.Sep 29 2018, 9:17 PM


[plasma taskmanager that is using red as textColor even though Breeze-Dark theme is chosen]

mvourlakos edited the summary of this revision. (Show Details)Sep 29 2018, 9:20 PM
mvourlakos edited the summary of this revision. (Show Details)Oct 5 2018, 5:37 PM