Skip to content
Snippets Groups Projects
Commit 84842ea1 authored by SeeLook's avatar SeeLook
Browse files

Cute button can be round

parent 283b80ec
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@ import QtQuick.Controls 2.2
AbstractButton {
id: root
property alias radius: bg.radius
property alias color: bg.color
contentItem: Text {
font: root.font
horizontalAlignment: Text.AlignHCenter; verticalAlignment: Text.AlignVCenter
......@@ -22,6 +25,7 @@ AbstractButton {
text: root.text
}
background: TipRect {
id: bg
color: enabled ? (checked ? activPal.highlight : activPal.button) : disdPal.button
rised: !checked
}
......
......@@ -8,6 +8,7 @@ import QtGraphicalEffects 1.0
Item {
property alias color: bg.color
property alias radius: bg.radius
property bool rised: true
Rectangle {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment