Reduce minimum tile size to support 2 columns on most devices

This commit is contained in:
Michael Zanetti 2020-02-19 12:50:47 +01:00
parent 33feaed389
commit 89c6e868a1
5 changed files with 6 additions and 9 deletions

View File

@ -41,7 +41,7 @@ ApplicationWindow {
visible: true
width: 360
height: 580
minimumWidth: 360
minimumWidth: 350
minimumHeight: 480
visibility: kioskMode ? ApplicationWindow.FullScreen : settings.viewMode
color: Material.background

View File

@ -49,8 +49,7 @@ MouseArea {
anchors.fill: parent
anchors.margins: app.margins / 2
readonly property int minTileWidth: 180
readonly property int minTileHeight: 240
readonly property int minTileWidth: 172
readonly property int tilesPerRow: root.width / minTileWidth
cellWidth: width / tilesPerRow

View File

@ -56,8 +56,7 @@ MouseArea {
id: gridView
anchors.fill: parent
anchors.margins: app.margins / 2
readonly property int minTileWidth: 180
readonly property int minTileHeight: 240
readonly property int minTileWidth: 172
readonly property int tilesPerRow: root.width / minTileWidth
cellWidth: gridView.width / tilesPerRow

View File

@ -48,8 +48,7 @@ MouseArea {
anchors.margins: app.margins / 2
readonly property int minTileWidth: 180
readonly property int minTileHeight: 180
readonly property int minTileWidth: 172
readonly property int tilesPerRow: root.width / minTileWidth
model: TagListModel {
@ -409,6 +408,7 @@ MouseArea {
id: mediaControllerDelegate
MediaControls {
property var devices: null
iconSize: app.iconSize
DevicesProxy {
id: mediaControllers
engine: _engine

View File

@ -49,8 +49,7 @@ MouseArea {
anchors.fill: parent
anchors.margins: app.margins / 2
readonly property int minTileWidth: 180
readonly property int minTileHeight: 180
readonly property int minTileWidth: 172
readonly property int tilesPerRow: root.width / minTileWidth
model: RulesFilterModel {