forked from AllegorithmicSAS/painter-plugin-photoshop-export
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAlgButton.qml
More file actions
36 lines (33 loc) · 976 Bytes
/
Copy pathAlgButton.qml
File metadata and controls
36 lines (33 loc) · 976 Bytes
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
30
31
32
33
34
35
36
// Copyright (C) 2016 Allegorithmic
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
import QtQuick 2.3
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
Button {
property bool isDefaultButton
isDefaultButton: false
style: ButtonStyle {
background: Rectangle {
implicitWidth: 100
implicitHeight: 25
border.width: 1
border.color: isDefaultButton ? "#C8C8C8" : "#000000"
radius: 4
color: control.pressed ? "#323232" : control.hovered ? "#3C3C3C" : "#494949"
}
label: Component {
Text {
text: control.text
font.bold: isDefaultButton
clip: true
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent
color: control.pressed ? "#FFFFFF" : control.hovered ? "#00BEF0" : "#C8C8C8"
}
}
}
}