Skip to content

Commit

Permalink
Merge pull request #500 from grulja/window-size
Browse files Browse the repository at this point in the history
Use some reasonable minimum sizes for windows
  • Loading branch information
grulja authored May 9, 2022
2 parents 97cdf0d + 90b63c6 commit 8278b21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/app/qml/AboutDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import QtQml 6.2

ApplicationWindow {
id: aboutDialog
minimumWidth: units.gridUnit * 22
maximumWidth: units.gridUnit * 22
minimumHeight: units.gridUnit * 12
maximumHeight: units.gridUnit * 12
minimumWidth: Math.max(420, units.gridUnit * 22)
maximumWidth: Math.max(420, units.gridUnit * 22)
minimumHeight: Math.max(240, units.gridUnit * 12)
maximumHeight: Math.max(240, units.gridUnit * 12)
modality: Qt.ApplicationModal
x: Screen.width / 2 - width / 2
y: Screen.height / 2 - height / 2
Expand Down
8 changes: 4 additions & 4 deletions src/app/qml/CancelDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import QtQml 6.2
ApplicationWindow {
id: cancelDialog

minimumWidth: units.gridUnit * 20
maximumWidth: units.gridUnit * 20
minimumHeight: units.gridUnit * 10
maximumHeight: units.gridUnit * 10
minimumWidth: Math.max(360, units.gridUnit * 20)
maximumWidth: Math.max(360, units.gridUnit * 20)
minimumHeight: Math.max(180, units.gridUnit * 10)
maximumHeight: Math.max(180, units.gridUnit * 10)

modality: Qt.ApplicationModal
x: Screen.width / 2 - width / 2
Expand Down
8 changes: 4 additions & 4 deletions src/app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import QtQml 6.2
ApplicationWindow {
id: mainWindow
visible: true
minimumWidth: units.gridUnit * 32
maximumWidth: units.gridUnit * 32
minimumHeight: units.gridUnit * 25
maximumHeight: units.gridUnit * 25
minimumWidth: Math.max(640, units.gridUnit * 32)
maximumWidth: Math.max(640, units.gridUnit * 32)
minimumHeight: Math.max(480, units.gridUnit * 25)
maximumHeight: Math.max(480, units.gridUnit * 25)

property int selectedPage: Units.Page.MainPage
property int selectedVersion: Units.Source.Product
Expand Down

0 comments on commit 8278b21

Please sign in to comment.