apply all colors from applyTheme

--infrastructure is now ready to expose to
applets the full color paletter and not
make compromises by choosing only from
original plasma theme for some of the
exposed colors
--dont reverse colors for selection group.
It creates a much nicer effect from user point
of view to keep the highlighting colors the
same for both the normal and reversed plasma
themes.
pull/5/head
Michail Vourlakos 6 years ago
parent 1d1f881032
commit 2963a1fc2f

@ -257,7 +257,7 @@ void Theme::updateReversedSchemeValues()
if (originalPtr && reversedPtr) {
for (const auto &groupName : reversedPtr->groupList()) {
if (groupName != "Colors:Button") {
if (groupName != "Colors:Button" && groupName != "Colors:Selection") {
KConfigGroup reversedGroup(reversedPtr, groupName);
if (reversedGroup.keyList().contains("BackgroundNormal")

@ -125,16 +125,16 @@ Loader{
readonly property color inactiveBackgroundColor: applyTheme === theme ? theme.backgroundColor : applyTheme.inactiveBackgroundColor
readonly property color inactiveTextColor: applyTheme === theme ? theme.textColor : applyTheme.inactiveTextColor
readonly property color highlightColor: theme.highlightColor
readonly property color highlightedTextColor: theme.highlightedTextColor
readonly property color highlightColor: applyTheme.highlightColor
readonly property color highlightedTextColor: applyTheme.highlightedTextColor
readonly property color positiveTextColor: applyTheme.positiveTextColor
readonly property color neutralTextColor: applyTheme.neutralTextColor
readonly property color negativeTextColor: applyTheme.negativeTextColor
readonly property color buttonTextColor: theme.buttonTextColor
readonly property color buttonBackgroundColor: theme.buttonBackgroundColor
readonly property color buttonHoverColor: theme.buttonHoverColor
readonly property color buttonFocusColor: theme.buttonFocusColor
readonly property color buttonTextColor: applyTheme.buttonTextColor
readonly property color buttonBackgroundColor: applyTheme.buttonBackgroundColor
readonly property color buttonHoverColor: applyTheme.buttonHoverColor
readonly property color buttonFocusColor: applyTheme.buttonFocusColor
readonly property string scheme: {
if (root.inConfigureAppletsMode && (root.themeColors === Latte.Types.SmartThemeColors)) {

@ -88,7 +88,7 @@ Item {
radius: width/2
height: width
color: theme.buttonFocusColor
color: theme.highlightColor
}
}
@ -97,7 +97,7 @@ Item {
ScriptAction{
script: {
clickedRectangle.width = 0;
clickedRectangle.opacity = 0.85;
clickedRectangle.opacity = 0.75;
clickedRectangle.anchors.rightMargin = 0;
clickedRectangle.anchors.leftMargin = 0;
clickedRectangle.anchors.topMargin = 0;

Loading…
Cancel
Save