diff --git a/sddm-theme/KeyboardButton.qml b/sddm-theme/KeyboardButton.qml --- a/sddm-theme/KeyboardButton.qml +++ b/sddm-theme/KeyboardButton.qml @@ -4,6 +4,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import QtQuick.Controls 1.3 as QQC +import QtQuick.Controls.Styles 1.4 as QQCS PlasmaComponents.ToolButton { id: keyboardButton @@ -20,6 +21,24 @@ menu: QQC.Menu { id: keyboardMenu + style: QQCS.MenuStyle { + frame: Rectangle { + color: PlasmaCore.ColorScope.backgroundColor + } + itemDelegate.label: QQC.Label { + height: contentHeight * 1.2 + verticalAlignment: Text.AlignVCenter + + color: styleData.selected ? PlasmaCore.ColorScope.highlightedTextColor : PlasmaCore.ColorScope.textColor + font.pointSize: config.fontSize + + text: styleData.text + } + itemDelegate.background: Rectangle { + visible: styleData.selected + color: "#3daee9" + } + } Instantiator { id: instantiator model: keyboard.layouts diff --git a/sddm-theme/SessionButton.qml b/sddm-theme/SessionButton.qml --- a/sddm-theme/SessionButton.qml +++ b/sddm-theme/SessionButton.qml @@ -23,6 +23,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import QtQuick.Controls 1.3 as QQC +import QtQuick.Controls.Styles 1.4 as QQCS PlasmaComponents.ToolButton { id: root @@ -42,6 +43,24 @@ menu: QQC.Menu { id: menu + style: QQCS.MenuStyle { + frame: Rectangle { + color: PlasmaCore.ColorScope.backgroundColor + } + itemDelegate.label: QQC.Label { + height: contentHeight * 1.2 + verticalAlignment: Text.AlignVCenter + + color: styleData.selected ? PlasmaCore.ColorScope.highlightedTextColor : PlasmaCore.ColorScope.textColor + font.pointSize: config.fontSize + + text: styleData.text + } + itemDelegate.background: Rectangle { + visible: styleData.selected + color: "#3daee9" + } + } Instantiator { id: instantiator model: sessionModel