-
Notifications
You must be signed in to change notification settings - Fork 2
/
BreezeMenuStyle.qml
29 lines (24 loc) · 948 Bytes
/
BreezeMenuStyle.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.family: config.Font || "Noto Sans"
font.hintingPreference: config.FontHinting || "PreferDefaultHinting"
font.pointSize: config.FontSize || "9"
text: styleData.text
}
itemDelegate.background: Rectangle {
visible: styleData.selected
color: PlasmaCore.ColorScope.highlightColor
}
}