Commit 16d3eb60 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Filip Fila
Browse files

[sddm-theme] Style the session and keyboard layout selectors to be more Breeze

The session selector's and keyboard layout's menus are now styled to resemble the Breeze theme rather than the default QML style.

BUG: 408702

Test Plan: Ensure the styling looks good regardless of various conditions. (resolution, dpi, distro, amount of sessions, etc.)

Reviewers: #vdg, filipf

Reviewed By: #vdg, filipf

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision:
parent 9258ef58
import QtQuick 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
import QtQuick.Controls.Styles 1.4 as QQCS
import QtQuick.Controls 1.3 as QQC
QQCS.MenuStyle {
frame: Rectangle {
color: PlasmaCore.ColorScope.backgroundColor
border.color: Qt.tint(PlasmaCore.ColorScope.textColor, Qt.rgba(color.r, color.g, color.b, 0.7))
border.width: 1
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: PlasmaCore.ColorScope.highlightColor
......@@ -20,6 +20,7 @@ PlasmaComponents.ToolButton {
menu: QQC.Menu {
id: keyboardMenu
style: BreezeMenuStyle {}
Instantiator {
id: instantiator
model: keyboard.layouts
......@@ -42,6 +42,7 @@ PlasmaComponents.ToolButton {
menu: QQC.Menu {
id: menu
style: BreezeMenuStyle {}
Instantiator {
id: instantiator
model: sessionModel
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment