Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions modules/Material/ApplicationWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ Controls.ApplicationWindow {
id: overlayLayer
}

width: Units.dp(800)
height: Units.dp(600)
// Trust me, this is for the greater good
// The behavior on the desktop will remain unmodified, while
// the application will be resized automatically on mobile devices
width: 0
height: 0

Dialog {
id: errorDialog
Expand Down Expand Up @@ -202,5 +205,16 @@ Controls.ApplicationWindow {
return Device.type === Device.phone || Device.type === Device.phablet
? Units.dp(48) : Device.type == Device.tablet ? Units.dp(56) : Units.dp(64)
})

// Show the application maximized on a mobile device, the window will be resized automatically.
// On the desktop devices, everything will work exactly as it did before
if (Device.isMobile) {
showMaximized()
} else {
width = Units.dp (800)
height = Units.dp (600)

showNormal()
}
}
}
2 changes: 1 addition & 1 deletion modules/Material/Ink.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MouseArea {
id: view

clip: true
hoverEnabled: enabled
hoverEnabled: !Device.isMobile
z: 2

property int startRadius: circular ? width/10 : width/6
Expand Down