Skip to content

Commit

Permalink
Update QML components
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Sep 12, 2023
1 parent fce91b2 commit 5ef62fd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
17 changes: 9 additions & 8 deletions qml/MobileDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Drawer {
? 0.8 * appWindow.width : 0.5 * appWindow.width
height: appWindow.height

topPadding: 0
bottomPadding: 0

////////////////////////////////////////////////////////////////////////////

background: Rectangle {
Expand All @@ -26,27 +29,26 @@ Drawer {
contentItem: Item {

Column {
id: rectangleHeader
id: headerColumn
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
z: 5

////////

Rectangle {
id: rectangleStatusbar
Rectangle { // statusbar area
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: -1

height: Math.max(screenPaddingTop, screenPaddingStatusbar)
color: Theme.colorBackground // to hide flickable content
color: Theme.colorStatusbar
}

////////

Rectangle {
id: rectangleLogo
Rectangle { // logo area
anchors.left: parent.left
anchors.right: parent.right

Expand Down Expand Up @@ -84,7 +86,7 @@ Drawer {
////////////////////////////////////////////////////////////////////////

Flickable {
anchors.top: rectangleHeader.bottom
anchors.top: headerColumn.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
Expand All @@ -96,7 +98,6 @@ Drawer {
id: contentColumn
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: 1

////////

Expand Down
2 changes: 1 addition & 1 deletion qml/components_generic/AndroidTextField.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ T.TextField {
property string colorPlaceholderText: Theme.colorSubText
property string colorBorder: Theme.colorSubText
property string colorBackground: Theme.colorBackground
property string colorSelectedText: Theme.colorHighContrast
property string colorSelection: Theme.colorPrimary
property string colorSelectedText: "white"

////////////////

Expand Down
4 changes: 2 additions & 2 deletions qml/components_themed/RangeSliderThemed.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ T.RangeSlider {
anchors.fill: parent
radius: width
color: Theme.colorPrimary
opacity: (first.pressed || first.containsMouse) ? 0.2 : 0
opacity: (first.pressed || parent.containsMouse) ? 0.2 : 0
Behavior on opacity { NumberAnimation { duration: 233 } }
}
}
Expand Down Expand Up @@ -101,7 +101,7 @@ T.RangeSlider {
anchors.fill: parent
radius: width
color: Theme.colorPrimary
opacity: (second.pressed || second.containsMouse) ? 0.2 : 0
opacity: (second.pressed || parent.containsMouse) ? 0.2 : 0
Behavior on opacity { NumberAnimation { duration: 233 } }
}
}
Expand Down
2 changes: 1 addition & 1 deletion qml/components_themed/SpinBoxThemed_desktop.qml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ T.SpinBox {

Row {
anchors.centerIn: parent
spacing: 2
spacing: 4

TextInput {
height: control.height
Expand Down
2 changes: 1 addition & 1 deletion qml/components_themed/SpinBoxThemed_mobile.qml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ T.SpinBox {
contentItem: Item {
Row {
anchors.centerIn: parent
spacing: 2
spacing: 4

TextInput {
height: control.height
Expand Down
2 changes: 1 addition & 1 deletion qml/components_themed/TextAreaThemed.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ T.TextArea {
property string colorBorder: Theme.colorComponentBorder
property string colorBackground: Theme.colorComponentBackground
property string colorSelection: Theme.colorPrimary
property string colorSelectedText: Theme.colorHighContrast
property string colorSelectedText: "white"

////////////////

Expand Down
2 changes: 1 addition & 1 deletion qml/components_themed/TextFieldThemed.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ T.TextField {
property string colorBorder: Theme.colorComponentBorder
property string colorBackground: Theme.colorComponentBackground
property string colorSelection: Theme.colorPrimary
property string colorSelectedText: Theme.colorHighContrast
property string colorSelectedText: "white"

////////////////

Expand Down

0 comments on commit 5ef62fd

Please sign in to comment.