PatTheMav
b81ab5a32b
UI: Fix small font size on macOS and fallback font
...
Qt uses a default font size of 13pt for QWidgets on macOS. By setting
the default font size to 10pt, text becomes too small for comfortable
use on macOS.
This PR patches the font files copied into the macOS bundle to use a
larger font-size of 12pt. It also sets the fallback font to the more
modern SF Display-based `.AppleSystemUIFont` used by default in macOS
if Open Sans is not found.
2022-08-25 18:02:22 +02:00
jp9000
896de392cd
UI: Copy va_list in strprintf on non-Windows
...
On operating systems other than Windows, va_list has to be copied when
you pass it to a new function otherwise it becomes corrupted
2022-08-24 20:23:13 -07:00
Georges Basile Stavracas Neto
20892a172d
UI: Force expand.svg in menu arrows
...
This should fix the inconsistency in macOS.
2022-08-24 05:47:04 -07:00
Georges Basile Stavracas Neto
bf035f5b67
UI: Increase QGroupBox title padding
...
So that it matches the padding declared just a few lines above.
2022-08-24 05:47:04 -07:00
Georges Basile Stavracas Neto
faefd6cb54
UI: Unify context menus
...
- Make context menus match list style
- Add padding around menus, like lists
2022-08-24 05:47:04 -07:00
Georges Basile Stavracas Neto
fd6633f74d
UI: Cleanup QMenu QSS
...
Trivial cleanup. The same selector was declared twice in every file.
2022-08-24 05:47:04 -07:00
Georges Basile Stavracas Neto
2403dd70f4
UI: Unify all border radii
...
Make the border radius value of combo boxes, entries, and toolbar
buttons consistent at 4px.
2022-08-24 05:47:04 -07:00
Richard Stanway
ac55328e7f
UI: Simplify multiview projector removal
2022-08-24 05:33:47 -07:00
Richard Stanway
5e6cbebcb9
UI: Remove allProjectors list
...
Seems like this wasn't used anywhere and projectors were not being
removed on destruction, resulting in a memory leak.
2022-08-24 05:33:47 -07:00
cg2121
a9ae9ca123
UI: Fix extra browsers trash icon
...
The trash icon in the extra browsers dock would be rendered
incorrectly with the Yami based themes.
2022-08-24 05:15:44 -07:00
Richard Stanway
c64997ed80
UI: Fix crash when toggling volume control mode
...
The toggleControlLayoutAction (change between horizontal and vertical
display mode) deletes and re-recreates the volume controls, meaning we
were writing to freed memory. This is a kind of hacky fix but it's the
only action we need to be concerned with for now.
2022-08-24 05:14:56 -07:00
cg2121
0061d95483
UI: Fix color select buttons with Yami
...
The color select buttons would not be rendered properly with the
Yami based themes.
2022-08-24 20:42:40 +10:00
cg2121
ed32dcc677
UI: Force fixed font in plain text edits
...
Since the Yami QSS changes the default font for widgets, we need
to force the system fixed font for plain text edits.
2022-08-22 17:26:50 -07:00
cg2121
a92c439af9
UI: Fix scripts dialog buttons
...
The tool buttons would be rendered incorrectly in the Yami based
themes.
2022-08-22 16:33:31 -07:00
cg2121
f7d815b79b
UI: Fix disabled sliders color
...
The disabled sliders would be the same color as the window background.
2022-08-22 15:42:19 -07:00
jp9000
7b3ae0b03c
UI: Fix fields not growing in FFmpeg output settings
...
Wasn't consistent with how it is with the rest of the user interface
Fixes obsproject/obs-studio#7147
2022-08-22 14:40:59 -07:00
jp9000
b4b01e2054
UI: Use bigger default size for button dock
...
Due to the new virtual camera button set being ridiculously large, the
main window needs a larger default dock size for the button dock.
Annoyingly.
2022-08-22 14:07:00 -07:00
Richard Stanway
ef48f5b28d
UI/installer: Update references to dependencies for 28.0.0
2022-08-21 17:26:27 +02:00
gxalpha
97f76f99e5
UI: Remove separate trash icon themeID
...
The removeIconSmall is now also a trash icon, so we don't need a
separate (now duplicate) themeID for it anymore.
The icon itself of course needs to stay as it's still needed.
2022-08-20 16:46:02 -07:00
gxalpha
8cf46ca68c
UI: Properly register VoidFunc in Meta Object System
2022-08-20 16:45:07 -07:00
cg2121
0afcb71122
UI: Reset volume/media sliders on theme change
...
Since volume/media sliders are using QProxyStyle, they are not
updated when themes are changed, so re-initialize them.
2022-08-20 16:29:16 -07:00
gxalpha
a7419a9809
UI: Use backspace icon to indicate "Clear" in hotkey-edit
2022-08-20 02:02:21 -07:00
tytan652
5d5ecf17b4
UI: Check for virtual camera enablement before loading config
2022-08-18 06:47:42 -07:00
Matt Gajownik
c7da23bf96
UI: Remove spaces from translation keys
...
Qt translation strings use the full English string as an identifier,
rather than a standardised key. Meanwhile, .ini files aren't designed
for keys with spaces, so a translation string for "Restore Defaults"
won't match unless the ini line is
"Restore Defaults"="Defaults"
which is inconsistent, unpleasant and harder to read.
2022-08-18 03:35:51 -07:00
jp9000
3ae1c1470f
Revert "UI: Don't set theme if it didn't change"
...
This reverts commit b4a2eacba7
.
2022-08-18 03:21:49 -07:00
tududweb
a772e74286
UI: Correctly draw sub-item SpacingHelper on group
2022-08-18 02:35:34 -07:00
tududweb
122b83f4c1
UI: Don't show sub-item SpacingHelper on locked group
2022-08-18 02:35:34 -07:00
tytan652
f41404528a
UI: Save virtual camera outside of the modules object
...
Save the configuration outside of the modules object meant for plugins
in the scene collection.
2022-08-18 02:35:13 -07:00
cg2121
ccfe300f72
UI: Reintroduce faster theme switching
...
Based on (was reverted):
08cee21158
This simplifies the faster switching code, as setting an empty
stylesheet resets it to default.
2022-08-18 02:34:47 -07:00
cg2121
5412b000ab
UI: Remove unused stylesheet code
...
This code is from before custom stylesheets were introduced.
2022-08-17 23:22:05 -07:00
Chip Bradford
590fa1ffe6
UI: Free virtual cam memory on shutdown
2022-08-17 23:21:28 -07:00
gxalpha
0a94b3ce16
UI: Only set QStyle on app start
...
Setting a QStyle resets the color palette. This is unhelpful when a few
lines before that we set a new palette. In theory the setStyle call
could just be moved up, but we don't need to since we always set the
same style so there's no reason to call it multiple times.
2022-08-18 14:22:55 +10:00
gxalpha
b4a2eacba7
UI: Don't set theme if it didn't change
...
If the user just reselects the theme they're already on, we shouldn't
set it again, as setting a theme always introduces issues (that are
especially visible on macOS and Linux).
2022-08-17 13:45:40 -07:00
gxalpha
07c54e1b18
UI: Use user application support as base_module_dir
2022-08-17 17:03:48 +02:00
gxalpha
b543f96a3b
UI: Only load legacy macOS .so plugins on x86_64
...
Plugins are expected to be in the .plugin bundle format. We do not want
to encourage usage of the old .so format, this is only kept at all for
backwards compatibility with existing plugins.
2022-08-17 17:03:48 +02:00
gxalpha
4998fddf6b
UI: Don't load macOS plugin bundles from global library
...
Plugins are supposed to go into the user application support directory,
so we shouldn't load them from the system one.
2022-08-17 17:03:48 +02:00
cg2121
be98abc088
UI: Fix crash when hiding audio mixer item
...
This crash is suspected to be a QT bug that happens in 6.2.4, as
it only happens in this version. This is the QT version that is in
the Ubuntu 22.04 ppa, so this fix is a necessary evil as it affects
Ubuntu users.
This fixes the crash by deferring the hiding of the audio mixer
item to the next event loop.
2022-08-17 05:43:02 -07:00
Richard Stanway
abedc7d08b
UI: Fix use-after-free in properties view
2022-08-17 05:30:57 -07:00
Translation Updater
4aaa07f93d
Update translations from Crowdin
2022-08-17 04:22:50 +00:00
Georges Basile Stavracas Neto
87b5f17b2f
UI: Update windowaudio.svg
...
Update it to match the style of the rest of the icon theme.
2022-08-16 22:32:24 -03:00
Georges Basile Stavracas Neto
3ad4e5a251
UI: Update icons for interact and refresh
2022-08-16 22:32:24 -03:00
pkv
3191c73e16
UI: Fix theme leak
...
This fixes leaks when loading and switching themes.
Signed-off-by: pkv <pkv@obsproject.com>
2022-08-16 07:36:18 -07:00
tytan652
fe889ec28e
UI: Fix settings properties view background on Yami variants
2022-08-15 19:07:19 -03:00
tytan652
0f63967ee0
UI: Fix grid mode spacing with Yami variants
2022-08-15 19:07:19 -03:00
tytan652
29d40bb7fb
UI/themes: Disable QDialog button icons on Yami new variants
2022-08-15 19:07:19 -03:00
cg2121
92624565a6
UI: Fix Yami list widget hover color
...
With Yami, when hovering a list widget (ie. scenes/settings), the
background wouldn't change like the sources list.
2022-08-15 18:37:40 -03:00
gxalpha
b7e7bf192c
UI/themes: Add macOS separator fix to Dark and System
2022-08-15 18:04:14 -03:00
Warchamp7
66e01d2c5d
UI: Add Yami variants for Acri and Rachni
2022-08-15 18:01:36 -03:00
Warchamp7
99363e2137
UI: Add Yami greyscale variant
2022-08-15 18:01:36 -03:00
Warchamp7
a1efc73e6a
UI: Add Yami light variant
2022-08-15 18:01:36 -03:00