Commit graph

3380 commits

Author SHA1 Message Date
Warchamp7 7843a822e0 UI: Adjust font size on macOS 2024-05-14 17:40:01 -04:00
gxalpha 41650479fe UI: Center preview spacing lines
Currently, the spacing lines begin in the middle of the box and then are
their width wide towards one direction. This means that the larger they
are, the more off-center their middle is.
This commit changes them to start at half their width left/top of the
center and end half the width to the right/bottom of the center, putting
the middle in the center.
2024-05-11 23:12:36 -04:00
gxalpha 67e4853b7d UI: Give private spacing helper sources names 2024-05-11 22:13:42 -04:00
gxalpha 03313a6af4 UI: Fix visibility and lock checkbox styling on system theme
In 7931f2acb8 the classes have been
removed in favor of properties, but this styling change appears to have
been reverted by accident, likely by the theming overhaul.
2024-05-11 21:52:42 -04:00
cg2121 b82a49e881 UI: Use OBSSourceLabel for VolControl
The OBSSourceLabel handles renaming of a source, so we don't have
to use the rename signals for volume controls.
2024-05-11 18:18:13 -07:00
cg2121 272a5edbaa UI: Use vector for volume control signals
This cleans up the volume control code by using a vector for
signals.
2024-05-11 18:18:13 -07:00
cg2121 cd918a7f4c UI: Move projector rename signal
This moves the renaming of projectors from OBSBasic to OBSProjector.
2024-05-11 17:51:47 -07:00
cg2121 023d9bd851 UI: Use OBSSourceLabel for item widget labels
This changes the labels for the source tree/visibility item widgets
to use OBSSourceLabel, as it handles the renaming of sources.
2024-05-11 17:35:04 -07:00
Warchamp7 af685be40d UI: Add OS specific theme variables via prefix 2024-05-10 18:39:18 -04:00
gxalpha 79f680cab6 UI: Use weak_source_expired instead of getting the source 2024-05-10 17:42:28 -04:00
tytan652 92822311a8 UI: Improve and update app CMake 3 metainfo file
CMake 2 path have a newer version of this file.

See the following commits for metainfo change details:
- 853ae5ea6e
- 904fe87f83
- 0cc6068ed4
2024-05-10 16:21:36 -04:00
tytan652 0fc4eb8c96 UI: Restore MuteCheckBox indeterminate state icon in Yami 2024-05-06 17:36:57 -03:00
gxalpha fad6f43608 UI: Set default recording format to Fragmented MOV on macOS
In 22205d582c, the change to default to
Fragmented MP4/MOV on all platforms was reverted due to compatibility
issues with the default video player on Windows.
On macOS however, the default player (QuickTime Player) works fine with
fragmented formats, and instead is unable to play MKV files (which have
always been the default format for OBS). This change makes videos with
the default settings playable on macOS with the default player.
2024-05-04 17:20:05 -07:00
Warchamp7 a3876a41d6 UI: Adjust styling of QTabBar tabs 2024-05-04 17:10:26 -07:00
Warchamp7 8721bf6107 UI: Update media source time labels while seeking 2024-05-04 16:37:17 -07:00
Warchamp7 c54f4371d6 UI: Adjust preview scrolling clamp values 2024-05-04 16:17:12 -07:00
Aleks Todorov bad7b78fe4 UI: Fix text stacking in paused indicator
Currently, the paused indicator is never undone, instead relying on the
update timer to eventually erase it away when the recording duration is
updated. If the user spams pause fast enough, the indicator will stack
several times before it is erased - especially if the unpaused branch in
the update timer never has a chance to run.

Instead of mutating the recordTime text on pause and requiring an undo,
extract the UI update to a separate function which computes the full
text based on the current state. Call this function when pause is
toggled, thereby forcing an accurate UI update that either does or does
not incude the paused text.

An added benefit is that the paused indicator now disappears
immediately.
2024-05-04 13:39:34 -07:00
Aleks Todorov ec31c7e5bf UI: Set recording paused before anything else
When this call was first introduced in eab10d48b2, it was at top of this
block, albeit after the calls to `pause`. Over time it has slowly
shifted lower and lower in the block.

In reality, it should be the first thing in the block to ensure that
further calls have accurate information about the pause state to update
themselves.
2024-05-04 13:39:34 -07:00
Paul Hindt 182410cf6c aja: Prepare plugins for new libajantv2 repo
Support building AJA plugins with either the new libajantv2 library, or
the deprecated ntv2 library.

Finder scripts updated to search for libajantv2 and fall back to ntv2 if
not found. This allows this PR to be merged without requiring a
corresponding update to the pre-built obs-deps packages.
2024-05-02 14:31:16 -04:00
cg2121 dfd5798e6c UI: Fix volume control button styling
The config button and mute checkbox were different sizes.
2024-04-29 14:56:59 -04:00
cg2121 ee72927ad2 UI: Fix styling of appearance tab
This makes the appearance tab look the same as other settings
tabs.
2024-04-29 14:55:01 -04:00
Warchamp7 1ba54adb85 UI: Clean up theme file formatting 2024-04-25 16:10:56 -04:00
Georges Basile Stavracas Neto df1ec719d1 UI: Update appearance icon
- Use the monitor with brush symbolic
2024-04-24 21:48:04 -04:00
Georges Basile Stavracas Neto 402ba09a77 UI: Update filters icon
- Add rounder borders
- Adjust fills
2024-04-24 21:48:04 -04:00
Warchamp7 93bedd21c8 UI: Reset duration when removing show/hide transition 2024-04-22 16:39:21 -04:00
Warchamp7 a3a8f6dbfb UI: Convert themes to composable format 2024-04-21 00:01:16 -04:00
derrod 503968671d UI: Add composable themes feature
Co-authored-by: Warchamp7 <warchamp2003@hotmail.com>
2024-04-21 00:01:16 -04:00
derrod b76e0cd31b UI: Add 'Appearance' settings page 2024-04-21 00:01:16 -04:00
tytan652 41ba8bdfdd UI: Add HighContrastEnabled implementation for Linux 2024-04-21 00:01:16 -04:00
derrod 0a9f1e7391 UI: Add HighContrastEnabled() to platform utilities 2024-04-21 00:01:16 -04:00
Warchamp7 7a3f5d784a UI: Clean up main window dock structure 2024-04-20 16:53:40 -07:00
Norihiro Kamae 7b2d555061 UI: Set dock floating after hiding it
Setting the dock floating before hiding it created a transparent window
on X11.
2024-04-20 16:49:19 -07:00
derrod 83383c13bc UI: Reformat .ui files with Qt Designer
Files have been formatted with Qt Designer (bin\designer.exe) 6.6.2.
2024-04-18 17:26:30 -04:00
Ryan Foster eb65ebdc5e UI: Use System theme volume meter colors
These comments do not actually match the color values here:
 * (0xff, 0xff, 0xff) is white
 * (0xcc, 0xcc, 0xcc) is light gray

Instead of just fixing the comments, use the values from the System
theme and also correct the comments.
2024-04-18 13:59:44 -04:00
Penwywern 731c2d9c82 UI: Change advanced audio controls to use audio_active 2024-04-16 15:48:42 -04:00
PatTheMav 34c846cad9 UI: Fix relocatable Linux builds using legacy portable build flag 2024-04-16 12:46:51 -04:00
tytan652 d88e788f7f UI: Reduce settings dialog height if greater than the desktop
Co-authored-by: Warchamp7 <warchamp2003@hotmail.com>
Co-authored-by: derrod <dennis@obsproject.com>
Co-authored-by: Ryan Foster <ryan@obsproject.com>
2024-04-15 18:15:17 -04:00
PatTheMav 53c9f79f4d UI: Make Sparkle updater a macOS-only feature 2024-04-13 23:48:38 -04:00
PatTheMav 1f911dd0d0 UI: Update Linux slice for CMake build framework 3.0 2024-04-13 23:48:38 -04:00
tytan652 3b87098508 UI: Fix double confirmation dialog while discarding source change
QDialog::closeEvent() already calls the reject() function, the override
of the former function was actually allowing a first confirmation dialog
which once discarded gets re-openned by QDialog::closeEvent().

Removing most of the closeEvent() override code is enough to fix the issue
since reject() will be called showing the confirmation dialog.
2024-04-13 16:54:32 -07:00
Warchamp7 ac160c906d UI: Include duration when copy/pasting scene item transitions 2024-04-13 16:44:51 -07:00
Warchamp7 cb3955f8bc UI: Fix Top Patron threshold 2024-04-13 16:42:33 -07:00
derrod 31aa700d22 UI: Always retain collection data of unloaded modules 2024-04-13 16:06:28 -07:00
Warchamp7 16e86f2d49 UI: Use existing path for file dialogs 2024-04-09 21:10:50 -04:00
derrod 2c62909d9b UI: Fix filter undo action using UUID instead of name 2024-04-09 21:10:19 -04:00
powersagitar b5b9d1c373 Extend min panel width to eliminate text clipping
Change size policy of "Start Virtual Camera" button to ensure the
minimum width of `Controls` panel is the same as "Start Virtual
Camera" button plus the gear (settings) icon, therefore to
eliminate text clipping when overflow.
2024-04-09 20:57:37 -04:00
Penwywern b80d45f132 UI: Log available encoders on load 2024-04-08 16:35:16 -04:00
GPattenden 60dd0c3ba6 UI: Move recording warnings to bottom of window 2024-04-07 00:39:22 -04:00
Ryan Foster 22205d582c Revert "UI: Change default format for release builds to fMP4/fMOV"
This reverts commit 9488bb20b6.

This is currently a frequent support issue as Windows Media Player,
Movies & TV, and File Explorer all cannot seem to handle fMP4 files
correctly. Windows Media Player and Movies & TV will play the files
fine, but no duration is listed and the applications cannot seek the
file. File Explorer will simply not list the file's length/duration (the
field is shown as having no set value). This was somehow not caught
during a year's worth of beta and RC builds. The world just wasn't ready
for this. =(

We have reported these issues to Microsoft, and we will revisit this in
the future.
2024-04-05 14:46:53 -04:00
Ryan Foster 28d7d4fe60 UI: Use spacers instead of widgets in macOS Permissions UI
The macOS Permissions dialog was using empty widgets to force other
widgets into position. Instead, use horizontal spacers.
2024-04-04 14:42:19 -04:00