mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
lockscreen: Only show widescreen mode for short height devices
This commit is contained in:
parent
75e5b79103
commit
baabcfe335
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue