From ffbcbaece8b85592e154da20a419d23cac2a0873 Mon Sep 17 00:00:00 2001 From: cg2121 Date: Fri, 2 Sep 2022 01:09:01 -0500 Subject: [PATCH] UI: Refine YouTube dialog - Make the settings a scroll area. This makes it work on smaller screens and if more items are added in the future, the dialog doesn't get bigger. - Made the additional settings label bold to distinguish better. Also removed the colon, as I felt it wasn't needed because it is now bold. - Made the margins consistent between the settings and events pages - Made the scrollbar show only when needed in the events page - Moved the remember settings checkbox to the top of the settings because it just seems better to be there. --- UI/data/locale/en-US.ini | 2 +- UI/forms/OBSYoutubeActions.ui | 1057 ++++++++++++++++----------------- 2 files changed, 515 insertions(+), 544 deletions(-) diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini index e036f1f8b..9039eb067 100644 --- a/UI/data/locale/en-US.ini +++ b/UI/data/locale/en-US.ini @@ -1357,7 +1357,7 @@ YouTube.Actions.MadeForKids="Is this video made for kids?*" YouTube.Actions.MadeForKids.Yes="Yes, it's made for kids" YouTube.Actions.MadeForKids.No="No, it's not made for kids" YouTube.Actions.MadeForKids.Help="(?)" -YouTube.Actions.AdditionalSettings="Additional settings:" +YouTube.Actions.AdditionalSettings="Additional settings" YouTube.Actions.Latency="Latency" YouTube.Actions.Latency.Normal="Normal" YouTube.Actions.Latency.Low="Low" diff --git a/UI/forms/OBSYoutubeActions.ui b/UI/forms/OBSYoutubeActions.ui index 1ef6227bd..5825a2314 100644 --- a/UI/forms/OBSYoutubeActions.ui +++ b/UI/forms/OBSYoutubeActions.ui @@ -6,8 +6,8 @@ 0 0 - 616 - 645 + 821 + 738 @@ -23,6 +23,12 @@ true + + 6 + + + QLayout::SetMinimumSize + @@ -38,527 +44,450 @@ YouTube.Actions.CreateNewEvent - - - QFormLayout::ExpandingFieldsGrow + + + 0 - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + 0 + + + 0 + + + 0 + + + 0 - - - YouTube.Actions.Title - - - title - - - - - - - YouTube.Actions.MyBroadcast - - - 100 - - - - - - - YouTube.Actions.Description - - - description - - - - - - - true - - - - - - - YouTube.Actions.Privacy - - - privacyBox - - - - - + - - 0 - 0 - - - - QComboBox::AdjustToContentsOnFirstShow - - - - - - - YouTube.Actions.Category - - - categoryBox - - - - - - - - 0 - 0 - - - - - - - - YouTube.Actions.MadeForKids - - - - - - - - - YouTube.Actions.MadeForKids.No - - - - - - - - 0 - 0 - - - - YouTube.Actions.MadeForKids.Help - - - Qt::RichText - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - YouTube.Actions.MadeForKids.Yes - - - - - - - - - YouTube.Actions.Thumbnail - - - - - - - YouTube.Actions.AdditionalSettings - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - YouTube.Actions.Latency - - - latencyBox - - - - - - - - 0 - 0 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - YouTube.Actions.EnableDVR - - - true - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - YouTube.Actions.360Video - - - - - - - - 0 - 0 - - - - YouTube.Actions.360Video.Help - - - Qt::RichText - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - true - - - YouTube.Actions.ScheduleForLater - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - true - - - YouTube.Actions.EnableAutoStart - - - true - - - true - - - - - - - - 0 - 0 - - - - <a href=".">(?)</a> - - - Qt::RichText - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - true - - - YouTube.Actions.EnableAutoStop - - - true - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - true - - - - 0 - 0 - - - - true - - - - - - - - - - - YouTube.Actions.RememberSettings - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - 0 - - - 0 - - - - - YouTube.Actions.Thumbnail.SelectFile - - - - - - - YouTube.Actions.Thumbnail.NoFileSelected - - - - - - - - - true - - - + 0 0 - 162 - 92 + 0 + 0 - - - 162 - 92 - - - - QFrame::Box - - - - - - Qt::AlignCenter + + true + + + + 0 + 0 + 783 + 666 + + + + + QFormLayout::ExpandingFieldsGrow + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 9 + + + + + YouTube.Actions.Title + + + title + + + + + + + YouTube.Actions.MyBroadcast + + + 100 + + + + + + + YouTube.Actions.Description + + + description + + + + + + + true + + + + + + + YouTube.Actions.Privacy + + + privacyBox + + + + + + + + 0 + 0 + + + + QComboBox::AdjustToContentsOnFirstShow + + + + + + + YouTube.Actions.Category + + + categoryBox + + + + + + + + 0 + 0 + + + + + + + + YouTube.Actions.MadeForKids + + + + + + + + + YouTube.Actions.MadeForKids.No + + + + + + + + 0 + 0 + + + + YouTube.Actions.MadeForKids.Help + + + Qt::RichText + + + + + + + + + YouTube.Actions.MadeForKids.Yes + + + + + + + YouTube.Actions.Thumbnail + + + + + + + true + + + + 0 + 0 + + + + + 162 + 92 + + + + + 162 + 92 + + + + QFrame::Box + + + + + + Qt::AlignCenter + + + + + + + 0 + + + 0 + + + + + YouTube.Actions.Thumbnail.SelectFile + + + + + + + YouTube.Actions.Thumbnail.NoFileSelected + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 75 + true + + + + YouTube.Actions.AdditionalSettings + + + + + + + true + + + YouTube.Actions.ScheduleForLater + + + + + + + + + YouTube.Actions.360Video + + + + + + + + 0 + 0 + + + + YouTube.Actions.360Video.Help + + + Qt::RichText + + + + + + + Qt::Horizontal + + + + 40 + 0 + + + + + + + + + + + + true + + + YouTube.Actions.EnableAutoStart + + + true + + + true + + + + + + + + 0 + 0 + + + + <a href=".">(?)</a> + + + Qt::RichText + + + + + + + Qt::Horizontal + + + + 40 + 0 + + + + + + + + + + true + + + YouTube.Actions.EnableAutoStop + + + true + + + + + + + true + + + + 0 + 0 + + + + true + + + + + + + Qt::Horizontal + + + + 40 + 0 + + + + + + + + YouTube.Actions.EnableDVR + + + true + + + + + + + YouTube.Actions.Latency + + + latencyBox + + + + + + + + 0 + 0 + + + + + + + + YouTube.Actions.RememberSettings + + + + + @@ -568,10 +497,22 @@ YouTube.Actions.ChooseEvent + + 0 + + + 0 + + + 0 + + + 0 + - Qt::ScrollBarAlwaysOn + Qt::ScrollBarAsNeeded true @@ -581,8 +522,8 @@ 0 0 - 555 - 192 + 218 + 200 @@ -677,36 +618,66 @@ - - - - - Cancel - - - - - - - YouTube.Actions.Dashboard - - - - - - - YouTube.Actions.Create_Ready - - - - - - - YouTube.Actions.Create_GoLive - - - - + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + QLayout::SetNoConstraint + + + + + Cancel + + + + + + + YouTube.Actions.Dashboard + + + + + + + YouTube.Actions.Create_Ready + + + + + + + YouTube.Actions.Create_GoLive + + + + + + +