Skip to content

Commit

Permalink
Various UI cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed May 2, 2024
1 parent db7c355 commit f641789
Show file tree
Hide file tree
Showing 12 changed files with 376 additions and 297 deletions.
2 changes: 1 addition & 1 deletion OffloadBuddy.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DEFINES+= APP_VERSION=\\\"$$VERSION\\\"
CONFIG += c++17
QT += core qml quickcontrols2 svg
QT += multimedia charts
QT += location
QT += location

# Validate Qt version
!versionAtLeast(QT_VERSION, 6.5) : error("You need at least Qt version 6.5 for $${TARGET}")
Expand Down
2 changes: 1 addition & 1 deletion qml/ScreenDeviceInfos.qml
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ Loader {
DataBarPower {
id: deviceBatteryBar
width: columnStorage.width
height: Theme.componentMargin
height: 16

visible: currentDevice.batteryLevel > 0
value: currentDevice.batteryLevel
Expand Down
10 changes: 9 additions & 1 deletion qml/ScreenMedia.qml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@ Loader {
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.componentMarginS

Rectangle { // separator
width: 2; height: 40;
anchors.verticalCenter: parent.verticalCenter
visible: rowActions1.visible
color: Theme.colorHeaderContent
opacity: 0.1
}

Row {
id: rowActions1
anchors.verticalCenter: parent.verticalCenter
Expand Down Expand Up @@ -392,7 +400,7 @@ Loader {
Rectangle { // separator
width: 2; height: 40;
anchors.verticalCenter: parent.verticalCenter
visible: rowActions1.visible
visible: rowActions2.visible
color: Theme.colorHeaderContent
opacity: 0.1
}
Expand Down
2 changes: 1 addition & 1 deletion qml/popups/PopupDelete.qml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Popup {

////////

ListView {
ListView { // filesArea
id: listArea
anchors.left: parent.left
anchors.right: parent.right
Expand Down
5 changes: 3 additions & 2 deletions qml/popups/PopupEncoding.qml
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ Popup {

ListView {
id: listArea
anchors.fill: parent
anchors.left: parent.left
anchors.right: parent.right

visible: recapOpened

Expand Down Expand Up @@ -1376,7 +1377,7 @@ Popup {
anchors.right: parent.right

Item {
height: Theme.componentMarginXL
height: 24
anchors.left: parent.left
anchors.right: parent.right

Expand Down
6 changes: 3 additions & 3 deletions qml/popups/PopupExit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Popup {
color: Theme.colorPrimary
}

Rectangle {
Rectangle { // border
anchors.fill: parent
radius: Theme.componentRadius
color: "transparent"
Expand All @@ -46,7 +46,7 @@ Popup {
}

layer.enabled: true
layer.effect: MultiEffect {
layer.effect: MultiEffect { // clip
maskEnabled: true
maskInverted: false
maskThresholdMin: 0.5
Expand All @@ -65,7 +65,7 @@ Popup {
}

layer.enabled: true
layer.effect: MultiEffect {
layer.effect: MultiEffect { // shadow
autoPaddingEnabled: true
shadowEnabled: true
shadowColor: ThemeEngine.isLight ? "#aa000000" : "#aaffffff"
Expand Down
3 changes: 0 additions & 3 deletions qml/popups/PopupMediaDirectory.qml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ Popup {
}

ComboBoxThemed {
height: 36
anchors.left: parent.left
anchors.leftMargin: popupMediaDirectory.legendWidth + 16
anchors.right: parent.right
Expand Down Expand Up @@ -299,7 +298,6 @@ Popup {
}

ComboBoxThemed {
height: 36
anchors.left: parent.left
anchors.leftMargin: popupMediaDirectory.legendWidth + 16
anchors.right: parent.right
Expand Down Expand Up @@ -364,7 +362,6 @@ Popup {
id: tfHC
anchors.right: parent.right
anchors.left: parent.left
height: 36
anchors.verticalCenter: parent.verticalCenter

selectByMouse: true
Expand Down
Loading

0 comments on commit f641789

Please sign in to comment.