From 9959acb0e827eeb1b9872cdc79be2db5bb65d8e5 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 18 Nov 2022 02:09:03 -0800 Subject: [PATCH] forms: Various UI improvements --- src/forms/ConnectInfo.cpp | 2 +- src/forms/ConnectInfo.ui | 71 +++++++++++++++++++++++++++++++++---- src/forms/SettingsDialog.ui | 8 ++++- 3 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/forms/ConnectInfo.cpp b/src/forms/ConnectInfo.cpp index b3b77ede..ddb979d2 100644 --- a/src/forms/ConnectInfo.cpp +++ b/src/forms/ConnectInfo.cpp @@ -105,7 +105,7 @@ void ConnectInfo::SetClipboardText(QString text) void ConnectInfo::DrawQr(QString qrText) { - QPixmap map(230, 230); + QPixmap map(236, 236); map.fill(Qt::white); QPainter painter(&map); diff --git a/src/forms/ConnectInfo.ui b/src/forms/ConnectInfo.ui index 32b6b771..3e41c82f 100644 --- a/src/forms/ConnectInfo.ui +++ b/src/forms/ConnectInfo.ui @@ -7,7 +7,7 @@ 0 0 451 - 412 + 432 @@ -19,7 +19,7 @@ 451 - 412 + 432 @@ -31,12 +31,21 @@ 10 10 431 - 101 + 121 + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + 200 + 16777215 + + OBSWebSocket.ConnectInfo.ServerIp @@ -46,6 +55,12 @@ + + Qt::NoFocus + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + true @@ -53,6 +68,12 @@ + + + 75 + 16777215 + + OBSWebSocket.ConnectInfo.CopyText @@ -62,6 +83,12 @@ + + + 200 + 16777215 + + OBSWebSocket.ConnectInfo.ServerPort @@ -71,6 +98,12 @@ + + Qt::NoFocus + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + true @@ -78,6 +111,12 @@ + + + 75 + 16777215 + + OBSWebSocket.ConnectInfo.CopyText @@ -87,6 +126,12 @@ + + + 200 + 16777215 + + OBSWebSocket.ConnectInfo.ServerPassword @@ -96,9 +141,15 @@ + + Qt::NoFocus + OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + true @@ -106,6 +157,12 @@ + + + 75 + 16777215 + + OBSWebSocket.ConnectInfo.CopyText @@ -119,7 +176,7 @@ 10 - 120 + 140 431 281 @@ -131,9 +188,9 @@ 100 - 40 - 230 - 230 + 30 + 236 + 236 diff --git a/src/forms/SettingsDialog.ui b/src/forms/SettingsDialog.ui index 567b3a53..6eb40824 100644 --- a/src/forms/SettingsDialog.ui +++ b/src/forms/SettingsDialog.ui @@ -80,7 +80,7 @@ - 0 + 2 @@ -97,6 +97,12 @@ OBSWebSocket.Settings.DebugEnableHoverText + + true + + + Qt::AlignCenter +