MeuiKit API Update
parent
78bf346e93
commit
c99083e143
|
@ -33,19 +33,19 @@ Item {
|
|||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
radius: Meui.Theme.smallRadius
|
||||
radius: Meui.Units.smallRadius
|
||||
width: parent.width - radius
|
||||
height: parent.height - radius
|
||||
color: buttonRect.pressed ?
|
||||
Meui.Theme.highlightColor
|
||||
: buttonRect.containsMouse ?
|
||||
Meui.Theme.darkMode ?
|
||||
Qt.lighter(Meui.Theme.backgroundColor, 1.25)
|
||||
: Qt.darker(Meui.Theme.backgroundColor, 1.1)
|
||||
: Meui.Theme.backgroundColor
|
||||
Qt.lighter(Meui.Theme.primaryBackgroundColor, 1.25)
|
||||
: Qt.darker(Meui.Theme.primaryBackgroundColor, 1.1)
|
||||
: Meui.Theme.primaryBackgroundColor
|
||||
|
||||
border.width: 1
|
||||
border.color: Meui.Theme.darkMode ? Qt.lighter(Meui.Theme.backgroundColor, 1.1) : Qt.darker(Meui.Theme.backgroundColor, 1.1)
|
||||
border.color: Meui.Theme.darkMode ? Qt.lighter(Meui.Theme.primaryBackgroundColor, 1.1) : Qt.darker(Meui.Theme.primaryBackgroundColor, 1.1)
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
|
|
|
@ -33,19 +33,19 @@ Item {
|
|||
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
radius: Meui.Theme.smallRadius
|
||||
radius: Meui.Units.smallRadius
|
||||
width: parent.width - radius
|
||||
height: parent.height - radius
|
||||
color: buttonRect.pressed ?
|
||||
Meui.Theme.highlightColor
|
||||
: buttonRect.containsMouse ?
|
||||
Meui.Theme.darkMode ?
|
||||
Qt.lighter(Meui.Theme.backgroundColor, 1.25)
|
||||
: Qt.darker(Meui.Theme.backgroundColor, 1.1)
|
||||
: Meui.Theme.backgroundColor
|
||||
Qt.lighter(Meui.Theme.secondaryBackgroundColor, 1.25)
|
||||
: Qt.darker(Meui.Theme.secondaryBackgroundColor, 1.1)
|
||||
: Meui.Theme.secondaryBackgroundColor
|
||||
|
||||
border.width: 1
|
||||
border.color: Meui.Theme.darkMode ? Qt.lighter(Meui.Theme.backgroundColor, 1.1) : Qt.darker(Meui.Theme.backgroundColor, 1.1)
|
||||
border.color: Meui.Theme.darkMode ? Qt.lighter(Meui.Theme.secondaryBackgroundColor, 1.1) : Qt.darker(Meui.Theme.secondaryBackgroundColor, 1.1)
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
|
|
|
@ -13,7 +13,7 @@ Meui.Window {
|
|||
title: qsTr("Calculator")
|
||||
id: rootWindow
|
||||
|
||||
backgroundColor: Meui.Theme.secondBackgroundColor
|
||||
backgroundColor: Meui.Theme.tertiaryBackgroundColor
|
||||
|
||||
headerBar: Rectangle {
|
||||
color: "transparent"
|
||||
|
@ -22,9 +22,7 @@ Meui.Window {
|
|||
|
||||
Label {
|
||||
text: rootWindow.title
|
||||
// TODO: Make this a separate variable in Meui.Theme,
|
||||
// maybe Meui.Theme.titleBarTextColor?
|
||||
color: Meui.Theme.darkMode ? "#cacbce" : "#383838"
|
||||
color: Meui.Theme.titleBarTextColor
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue