More theming
This commit is contained in:
parent
55bc7c9534
commit
71cb79b08b
11 changed files with 140 additions and 88 deletions
|
|
@ -7,7 +7,7 @@ Rectangle {
|
|||
id: root
|
||||
|
||||
readonly property real scaling: Scaling.scale(screen)
|
||||
property real size: Style.baseWidgetHeight * scaling
|
||||
property real size: Style.baseWidgetSize * scaling
|
||||
property string icon
|
||||
property bool enabled: true
|
||||
property bool hovering: false
|
||||
|
|
@ -26,11 +26,11 @@ Rectangle {
|
|||
anchors.centerIn: parent
|
||||
text: root.icon
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontExtraLarge * scaling
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
color: root.hovering ? Colors.onAccent : Colors.textPrimary
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
opacity: root.enabled ? 1.0 : 0.5
|
||||
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue