Commit 0403d9e8 authored by Nate Graham's avatar Nate Graham 🔩

Allow Compact view with narrower windows

Summary:
When the width of the sidebar was reduced, I didn't change the threshold at which the window uses Compact View when it becomes narrower. As a result, Compact View was almost never used in desktop mode, because the threshold at which it triggered was close to the threshold at which the window changes over to mobile view.

This patch corrects the issue and allows the window to switch to Compact View more often.

Test Plan:
Discover's main window can now be made small and narrow and it will switch more quickly to Compact view:

{F5891140}

Looks really really good now IMHO!

Reviewers: apol, #discover_software_store

Reviewed By: apol, #discover_software_store

Subscribers: sharvey, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D13361
parent 33860e06
......@@ -43,7 +43,7 @@ DiscoverPage {
property alias count: apps.count
property alias listHeader: apps.header
property alias listHeaderPositioning: apps.headerPositioning
property bool compact: page.width < 500 || !applicationWindow().wideScreen
property bool compact: page.width < 550 || !applicationWindow().wideScreen
property bool showRating: true
property bool canNavigate: true
......
......@@ -44,7 +44,7 @@ DiscoverPage
signal clearSearch()
readonly property bool compact: page.width < 500 || !applicationWindow().wideScreen
readonly property bool compact: page.width < 550 || !applicationWindow().wideScreen
Kirigami.CardsListView {
model: FeaturedModel {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment