From db082d122d00689feaa94a00b1ab5a30fa217c0c Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 6 Mar 2022 18:08:55 +0100 Subject: [PATCH] Add option 'sessionButtonOpacity', default user list text color to white --- SessionButton.qml | 1 + components/UserDelegate.qml | 3 ++- theme.conf | 2 ++ theme.conf.user | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SessionButton.qml b/SessionButton.qml index 8cb56ba..abcb777 100644 --- a/SessionButton.qml +++ b/SessionButton.qml @@ -14,6 +14,7 @@ import QtQuick.Controls 1.3 as QQC PlasmaComponents.ToolButton { id: root property int currentIndex: -1 + opacity: config.sessionButtonOpacity implicitWidth: minimumWidth diff --git a/components/UserDelegate.qml b/components/UserDelegate.qml index 9a823a2..1582188 100644 --- a/components/UserDelegate.qml +++ b/components/UserDelegate.qml @@ -58,7 +58,7 @@ Item { bottomMargin: PlasmaCore.Units.largeSpacing horizontalCenter: parent.horizontalCenter } - Behavior on width { + Behavior on width { PropertyAnimation { from: faceSize duration: PlasmaCore.Units.longDuration; @@ -161,6 +161,7 @@ Item { text: wrapper.name style: softwareRendering ? Text.Outline : Text.Normal styleColor: softwareRendering ? PlasmaCore.ColorScope.backgroundColor : "transparent" //no outline, doesn't matter + color: 'white' elide: Text.ElideRight horizontalAlignment: Text.AlignHCenter //make an indication that this has active focus, this only happens when reached with keyboard navigation diff --git a/theme.conf b/theme.conf index 7882e7c..701ef26 100644 --- a/theme.conf +++ b/theme.conf @@ -19,3 +19,5 @@ relativePositionX=0.3 relativePositionY=0.7 showTopBar=true autofocusInput=true + +sessionButtonOpacity=0.5 diff --git a/theme.conf.user b/theme.conf.user index 156cc82..711535c 100644 --- a/theme.conf.user +++ b/theme.conf.user @@ -9,3 +9,5 @@ type=color usernameLeftMargin=15 showTopBar=true autofocusInput=true + +sessionButtonOpacity=0.5