Commit e924691d authored by Filip Fila's avatar Filip Fila 🌆
Browse files

Set minimum window size

Summary:
Kamoso currently doesn't have a minimum window size set so it can be resized into a short vertical line.

This patch sets a minimum window size that matches the 240p webcam resolution (320x240) when the toolbar is subtracted.

Test Plan:
Before:
At its smallest
{F8133972}

After:
At its smallest
{F8133973}

Reviewers: apol, #vdg, #plasma, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D27688
parent 0610848b
......@@ -31,6 +31,8 @@ Kirigami.ApplicationWindow
visible: true
title: i18n("Kamoso")
pageStack.globalToolBar.toolbarActionAlignment: Qt.AlignCenter
minimumWidth: 320
minimumHeight: 240 + pageStack.globalToolBar.height
Component.onCompleted: {
width = 700
height = width*3/4
......
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