From 3cc612cb1ca973da5c3116dd2c793198e65f7c62 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sat, 5 Jun 2021 21:20:11 -0700 Subject: [PATCH] SettingsDialog: Redesign settings sections --- data/locale/en-US.ini | 10 +- src/forms/SettingsDialog.ui | 287 +++++++++++++++++++++--------------- 2 files changed, 177 insertions(+), 120 deletions(-) diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 65833154..d00e16fe 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -1,15 +1,19 @@ -OBSWebSocket.Settings.DialogTitle="WebSocket Server Settings" +OBSWebSocket.Settings.DialogTitle="obs-websocket Settings" + +OBSWebSocket.Settings.PluginSettingsTitle="Plugin Settings" OBSWebSocket.Settings.ServerEnable="Enable WebSocket server" OBSWebSocket.Settings.AlertsEnable="Enable System Tray Alerts" OBSWebSocket.Settings.DebugEnable="Enable Debug Logging" OBSWebSocket.Settings.DebugEnableHoverText="Changing this requires the WebSocket server to restart. However, changing this will not automatically restart the obs-websocket server." + +OBSWebSocket.Settings.ServerSettingsTitle="Server Settings" OBSWebSocket.Settings.AuthRequired="Enable Authentication" OBSWebSocket.Settings.Password="Server Password" OBSWebSocket.Settings.GeneratePassword="Generate Password" -OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info" OBSWebSocket.Settings.ServerPort="Server Port" -OBSWebSocket.Settings.ConnectedSessionsTitle="Connected WebSocket Sessions" +OBSWebSocket.Settings.ShowConnectInfo="Show Connect Info" +OBSWebSocket.SessionTable.Title="Connected WebSocket Sessions" OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Remote Address" OBSWebSocket.SessionTable.SessionDurationColumnTitle="Session Duration" OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Messages In/Out" diff --git a/src/forms/SettingsDialog.ui b/src/forms/SettingsDialog.ui index 59a0b544..cb1431c3 100644 --- a/src/forms/SettingsDialog.ui +++ b/src/forms/SettingsDialog.ui @@ -7,7 +7,7 @@ 0 0 675 - 437 + 565 @@ -25,126 +25,169 @@ OBSWebSocket.Settings.DialogTitle - - - - - Qt::Horizontal + + + + + + 0 + 0 + - - QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + OBSWebSocket.Settings.PluginSettingsTitle + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 2 + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 150 + 20 + + + + + + + + OBSWebSocket.Settings.ServerEnable + + + true + + + + + + + OBSWebSocket.Settings.AlertsEnable + + + + + + + OBSWebSocket.Settings.DebugEnableHoverText + + + OBSWebSocket.Settings.DebugEnable + + + + - - - - - - OBSWebSocket.Settings.ServerEnable - - - - - - - true - - - - - - - OBSWebSocket.Settings.AlertsEnable - - - - - - - - - - OBSWebSocket.Settings.DebugEnableHoverText - - - OBSWebSocket.Settings.DebugEnable - - - - - - - OBSWebSocket.Settings.DebugEnableHoverText - - - - - - - OBSWebSocket.Settings.AuthRequired - - - - - - - - - - OBSWebSocket.Settings.Password - - - - - - - - - QLineEdit::Password - - - - - - - OBSWebSocket.Settings.GeneratePassword - - - - - - - - - OBSWebSocket.Settings.ServerPort - - - - - - - 1 - - - 65534 - - - 4444 - - - - - - - OBSWebSocket.Settings.ShowConnectInfo - - - - + + + + + 0 + 0 + + + + OBSWebSocket.Settings.ServerSettingsTitle + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 2 + + + + + OBSWebSocket.Settings.ServerPort + + + + + + + 1 + + + 65534 + + + 4444 + + + + + + + OBSWebSocket.Settings.AuthRequired + + + + + + + OBSWebSocket.Settings.Password + + + + + + + + + QLineEdit::Password + + + + + + + OBSWebSocket.Settings.GeneratePassword + + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 150 + 20 + + + + + + + + OBSWebSocket.Settings.ShowConnectInfo + + + + + - - + + 0 @@ -152,7 +195,7 @@ - OBSWebSocket.Settings.ConnectedSessionsTitle + OBSWebSocket.SessionTable.Title @@ -208,6 +251,16 @@ + + + + Qt::Horizontal + + + QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + +