diff --git a/containments/homescreens/folio/qml/gaming/GamingQuickSettings.qml b/containments/homescreens/folio/qml/gaming/GamingQuickSettings.qml index b49b56a2..f7f10104 100644 --- a/containments/homescreens/folio/qml/gaming/GamingQuickSettings.qml +++ b/containments/homescreens/folio/qml/gaming/GamingQuickSettings.qml @@ -21,6 +21,7 @@ Item { id: root anchors.fill: parent + property bool compactMode: false property bool opened: false readonly property string acceptButtonLabel: GamingShell.GamepadManager.buttonLabel(GamingShell.GamepadManager.ButtonA) readonly property string closeButtonLabel: GamingShell.GamepadManager.buttonLabel(GamingShell.GamepadManager.ButtonB) @@ -150,7 +151,9 @@ Item { // Panel sliding in from the right Rectangle { id: panel - width: Math.min(root.width * 0.35, Kirigami.Units.gridUnit * 22) + width: root.compactMode + ? Math.min(root.width * 0.92, Kirigami.Units.gridUnit * 26) + : Math.min(root.width * 0.35, Kirigami.Units.gridUnit * 24) height: root.height anchors.top: root.top anchors.bottom: root.bottom @@ -189,7 +192,7 @@ Item { Flickable { anchors.fill: parent - anchors.margins: Kirigami.Units.largeSpacing * 2 + anchors.margins: root.compactMode ? Kirigami.Units.largeSpacing : Kirigami.Units.largeSpacing * 2 contentHeight: settingsColumn.implicitHeight clip: true diff --git a/containments/homescreens/folio/qml/gaming/RunningGamesView.qml b/containments/homescreens/folio/qml/gaming/RunningGamesView.qml index 78c16bf7..80e8e0a8 100644 --- a/containments/homescreens/folio/qml/gaming/RunningGamesView.qml +++ b/containments/homescreens/folio/qml/gaming/RunningGamesView.qml @@ -15,6 +15,8 @@ import plasma.applet.org.kde.plasma.mobile.homescreen.folio as Folio Item { id: root + property bool compactMode: false + implicitHeight: taskList.count > 0 ? column.implicitHeight : 0 readonly property bool hasTasks: taskList.count > 0 readonly property int taskCount: taskList.count @@ -73,7 +75,7 @@ Item { visible: taskList.count > 0 Kirigami.Heading { - level: 2 + level: root.compactMode ? 3 : 2 text: i18n("Running") } @@ -120,8 +122,8 @@ Item { required property var decoration required property var winIdList - width: Kirigami.Units.gridUnit * 8 - height: Kirigami.Units.gridUnit * 5 + width: root.compactMode ? Kirigami.Units.gridUnit * 6.4 : Kirigami.Units.gridUnit * 8 + height: root.compactMode ? Kirigami.Units.gridUnit * 4.2 : Kirigami.Units.gridUnit * 5 readonly property var modelIndex: tasks.makeModelIndex(index) readonly property bool isCurrent: ListView.isCurrentItem && taskList.activeFocus