From 6664fc29e3c8ba8a65c1b4bce547637225092552 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 22 Apr 2019 14:02:55 -0400 Subject: [PATCH] Better default size for ApplicationWindow --- harmonyqml/components/UI.qml | 2 +- harmonyqml/components/Window.qml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/harmonyqml/components/UI.qml b/harmonyqml/components/UI.qml index b391ee78..3174bee7 100644 --- a/harmonyqml/components/UI.qml +++ b/harmonyqml/components/UI.qml @@ -27,7 +27,7 @@ Controls1.SplitView { onCurrentItemChanged: currentItem.forceActiveFocus() initialItem: Item { // TODO: (test, remove) - Keys.onPressed: pageStack.showRoom( + Keys.onEnterPressed: pageStack.showRoom( "@test_mary:matrix.org", "!TSXGsbBbdwsdylIOJZ:matrix.org" //"@test_mary:matrix.org", "!TEXkdeErtVCMqClNfb:matrix.org" ) diff --git a/harmonyqml/components/Window.qml b/harmonyqml/components/Window.qml index 1560094f..f8f80c9b 100644 --- a/harmonyqml/components/Window.qml +++ b/harmonyqml/components/Window.qml @@ -1,10 +1,11 @@ import QtQuick 2.7 import QtQuick.Controls 2.2 +import QtQuick.Window 2.7 ApplicationWindow { visible: true - width: 640 - height: 700 + width: Math.min(Screen.width, 1152) + height: Math.min(Screen.height, 768) Loader { anchors.fill: parent