0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
Commit Graph

3506 Commits

Author SHA1 Message Date
Norihiro Kamae
58a8d79be1 UI: Remove min and max macro workaround 2024-08-03 16:57:17 -07:00
pkv
19abab097d UI: Fix leak with paint event of volume slider
This fixes a memory leak introduced in [1] where a new QColor is not
balanced by a delete.

[1] UI: Update volume meter appearance
52ae5fc4bd

Signed-off-by: pkv <pkv@obsproject.com>
2024-08-03 16:27:17 -07:00
tytan652
5e5865b716 frontend-tools: Avoid initializing the scene switcher on Wayland
The Linux implementation of the automatic scene switcher is X11-only and
the design itself of the feature is incompatible with how Wayland works.
2024-07-29 22:26:15 -04:00
derrod
e12ef51068 UI: Return std::optional from ParseThemeMeta 2024-07-29 19:52:42 -04:00
derrod
f6097cacfb UI: Remove legacy migrations 2024-07-29 18:54:01 -04:00
Ryan Foster
b9f63632a1
Merge pull request #10019 from derrod/remove-ftl
Remove FTL.
2024-07-29 16:41:31 -04:00
tytan652
4214050cda UI: Remove obs-ui-support
The remaining files are only used by the UI, so those are restored in
the obs-studio target
2024-07-27 07:38:36 +02:00
tytan652
f051fdd75e UI,shared: Move OBSPropertiesView to its own directory 2024-07-27 07:38:36 +02:00
tytan652
390429c838 frontend-tools: Remove unused source files in legacy path 2024-07-27 07:38:36 +02:00
tytan652
5eb10135da UI,shared: Move SliderIgnoreScroll to its own directory 2024-07-27 07:38:36 +02:00
tytan652
5e25041491 UI,shared: Move VScrollArea to its own directory 2024-07-27 07:38:36 +02:00
tytan652
f5c25c66af UI,shared: Move OBSPlainTextEdit to its own directory 2024-07-27 07:38:36 +02:00
tytan652
48f139729f UI,shared: Move Qt Wrappers to its own directory 2024-07-27 07:38:36 +02:00
tytan652
4882db4ec4 UI: Move QTToGSWindow outside of Qt wrappers 2024-07-27 07:38:36 +02:00
tytan652
f5e2f15d28 deps,shared,frontend-tools: Move obs-scripting to shared folder 2024-07-27 07:38:36 +02:00
Norihiro Kamae
2fa77c4021 UI: Fix cast of pointer type at invalid current scene setting on load 2024-07-20 16:49:21 -07:00
Translation Updater
e7d6707fa7 Update translations from Crowdin 2024-07-17 09:34:12 +00:00
Warchamp7
ec5297b549 UI: Adjust sizing of Classic audio meter elements 2024-07-15 18:43:46 -03:00
Warchamp7
0e84188f37 UI: Fix read-only QTextEdit background color 2024-07-15 18:41:40 -03:00
Warchamp7
bde68fed32 UI: Fix source tree icon spacing 2024-07-15 18:39:35 -03:00
derrod
1206870cef UI: Remove FTL support 2024-07-14 06:09:49 +02:00
Ruwen Hahn
3a884277ea UI: Fix qt-helpers.{c,h}pp not being removed from legacy.cmake
Follow-up to https://github.com/obsproject/obs-studio/pull/10957
2024-07-11 13:45:19 -04:00
Warchamp7
da997d9648 UI: Add field growth policy to form layouts 2024-07-10 19:53:30 -04:00
Ruwen Hahn
7327663112 UI: Remove QFuture usage
`QFuture`s are broken on older Qt versions, even with the deadlock
workaround (see <https://github.com/obsproject/obs-studio/issues/10929>)
2024-07-10 16:12:53 -04:00
Ruwen Hahn
b74e7ede0e UI: Move code out of unnamed lambdas
This is in preparation of the next change, to hopefully minimize
the resulting diff
2024-07-10 16:12:53 -04:00
Ruwen Hahn
7d19add10b UI: Display dialog for multitrack video output audio channels mismatch 2024-06-26 16:10:15 -04:00
Vainock
4830d6903e UI: Fix capitalization of 'OBS' and 'RTMP' 2024-06-26 15:01:01 -04:00
Warchamp7
47fb194223 UI: Adjust Yami (Classic) styling 2024-06-26 14:58:13 -04:00
Ed Maste
fd34bab615 UI: Link Qt::DBus on FreeBSD
As with Linux we need to link Qt::DBus on FreeBSD now that there's a
HighContrastEnabled implementation that makes use of it.

Fixes: 41ba8bdfdd ("UI: Add HighContrastEnabled implementation fo...")
2024-06-25 22:37:14 -04:00
Alex Luccisano
5f98d34e2c UI: Fix multitrack-video audio track index
Fix a minor oversight from a recent commit. Audio
track indexing in the UI is 1-based while underlying
code uses 0-based indexing.
2024-06-20 06:44:33 +02:00
Ruwen Hahn
aa096e2ad0 UI: Disable multitrack video settings on non-win32 platforms 2024-06-19 12:50:34 -04:00
Ruwen Hahn
9d1ac8816e UI: Add supported codecs to GetClientConfiguration request 2024-06-19 12:27:13 -04:00
Ruwen Hahn
8a8019db3f UI: Only cache multitrack config URL startup argument 2024-06-19 12:08:52 -04:00
Ruwen Hahn
fb3e571ce8 UI: Use advanced mode audio track in multitrack video output 2024-06-18 14:13:42 -04:00
Ryan Foster
48b1298faf UI: Fix parsing of Multitrack Video stream key query parameters
The code was checking stream_key, but stream_key could be the
user-supplied value (in_stream_key) or the server-supplied value
(endpoint.authentication). The server-supplied value may lack the query
parameters set in the user-supplied value. To ensure that user-specified
query parameters (such as bandwidthtest) are passed along, parse the
user-supplied key instead of the server-supplied key.
2024-06-18 12:39:56 -04:00
derrod
608d3bfc26 UI: Set default container for beta builds to hybrid MP4 2024-06-17 12:12:20 -04:00
tt2468
e215502b62 libobs, UI: Normalize encoder group API
Modifies the encoder group API added previously to better follow the
existing libobs API naming paradigms. This also produces much more
readable code, and allows a few small benefits like only needing to
hold a reference to the encoder group, instead of every encoder.
2024-06-17 08:20:01 -07:00
Ryan Foster
9d88b632ae UI: Add step value to Multitrack Video maximum bitrate control
All other bitrate setting fields in the UI have a single-step value of
50. Without setting this, the single-step value is 1, which makes using
the scroll wheel a bit tedious.

While this could arguably be higher, let's make this consistent first
and then consider changing the values across the application later.
2024-06-17 10:36:17 -04:00
Ryan Foster
0d7478c017 UI: Set Multitrack Video maximum bitrate limit default to 0/Auto
There were some reports that the default value of 8000 was confusing
because it implies that the automaticaly selected and used value is 8000
Kbps. Set it to 0 which should hopefully make it more obvious that OBS
is not sending 0 Kbps.
2024-06-15 16:40:53 -07:00
Ryan Foster
62830cd8c7 UI: Fix icon-size values in theme files
The Qt docs on icon-size say its Type is Length, which is further
defined as, "A number followed by a measurement unit."

https://doc.qt.io/qt-6/stylesheet-reference.html#icon-size
https://doc.qt.io/qt-6/stylesheet-reference.html#length

This fixes the following logged Qt warning:
QCssParser::sizeValue: Too many values provided
2024-06-15 16:11:49 -07:00
cg2121
dcd2f19c83 UI: Remove redundant addAction call
This removes a redundant addAction call in the studio mode program
context menu.
2024-06-15 16:08:24 -07:00
gxalpha
7cd5ede1e0 UI: Initialize YoutubeChatDock chat input members in constructor
Currently, the chat input elements (lineEdit, sendButton, and
chatLayout) are initialized when the QCefWidget gets set. This is
problematic behavior that only happened to work because we're a bit
lucky: The chat is only enabled after a widget is set, and it's only set
once. Without those conditions, the chat dock would crash when enabling
the chat before a widget is set, and the elements would get recreated if
the widget is set a second time, resulting in the original elements not
getting freed and leaking.
Moving the element creation to the constructor fixes both of these
problems, as now they're created immediately and only once.

Detected by PVS-Studio.
2024-06-15 16:06:38 -07:00
gxalpha
f462ffb224 UI: Initialize max length of LineEditAutoResize in constructor
LineEditAutoResize didn't have its maxLength initialized in the
constructor, leaving it to be a random value until set via setMaxLength.
The one place where LineEditAutoResize was used immediately set this
after calling the constructor, but if we use this anywhere else in the
future it makes sense to have this initialized.
As it is meant to mostly behave like a QLineEdit, lets use the same
default value of 32767.

Detected by PVS-Studio.
2024-06-15 16:06:38 -07:00
Ruwen Hahn
600a564039 UI: Add composition_gpu_index to multitrack video postdata 2024-06-14 20:08:26 -04:00
Alex Luccisano
d7e2636316 UI: Change multitrack video configId
Schema has changed this field from "obsConfigId" to
"clientConfigId". Updated the name to match.
2024-06-14 20:08:26 -04:00
derrod
d2a7f01295 updater: Use static blake2 and fix building with Debug runtimes 2024-06-14 18:10:04 -04:00
Ruwen Hahn
e4305b0a50 UI: Hide multitrack video options for custom output
Custom output doesn't currently allow specifying a config URL, so
disable relevant settings for now
2024-06-14 17:39:11 -04:00
Ruwen Hahn
40bf8b3c06 UI: Make audio_configurations.vod optional
This is only required if VOD is supported by the service and VOD
track is enabled; otherwise there's no need to supply the key
or an empty array
2024-06-14 17:33:31 -04:00
Ryan Foster
021adac2d0 UI: Fix submenu arrow indicator position in menus
Commit b11d61c89f added padding-right to
provide some minimal padding for this element. This was seemingly
accounted for in the Yami Base Theme (Yami.obt), but was missed in the
Yami Classic Variant Theme (Yami_Classic.ovt).

Re-add the padding-right to restore the padding.
2024-06-14 14:43:40 -04:00
Ryan Foster
b1643c2ac9 UI: Add unit suffix to Multitrack Video bitrate limit control 2024-06-14 14:42:03 -04:00