lockscreen: Only show widescreen mode for short height devices

This commit is contained in:
Devin Lin 2022-07-11 22:11:33 -04:00
parent 75e5b79103
commit baabcfe335

View file

@ -26,7 +26,8 @@ PlasmaCore.ColorScope {
property var lockScreenState: LockScreenState {} property var lockScreenState: LockScreenState {}
property var notifModel: Notifications.WatchedNotificationsModel {} property var notifModel: Notifications.WatchedNotificationsModel {}
property bool isWidescreen: root.height < root.width * 0.75 // only show widescreen mode for short height devices (ex. phone landscape)
property bool isWidescreen: root.height < 720 && (root.height < root.width * 0.75)
property bool notificationsShown: false property bool notificationsShown: false
readonly property bool drawerOpen: flickable.openFactor >= 1 readonly property bool drawerOpen: flickable.openFactor >= 1