Commit graph

8 commits

Author SHA1 Message Date
derrod 75c6322ec6 UI: Return std::optional from ParseThemeMeta 2024-06-13 00:51:49 +02:00
derrod 718bd0b265 UI: Use unique_ptr for theme objects 2024-06-12 18:41:11 -04:00
derrod 4a46d2d722 UI: Fix themeDir buffer being resized incorrectly
c677bac875 changed the order here, but
this also resulted in the string having whatever size was necessary for
the install data path, rather than being large enough to fit a userdata
path. To fix this, move the resize operaetion *after* the buit-in
themes are searched, and also bump it to 1024 just to be sure.

This resulted in a crash due to a bug in os_get_path_internal() which
will need to be fixed separately.
2024-06-12 17:57:02 -04:00
derrod 21adf0930f UI: Prevent recursion in theme dependencies 2024-06-11 18:25:40 -04:00
tytan652 c677bac875 UI: Avoid allowing to override provided themes 2024-06-10 17:01:21 -04:00
tytan652 34d577d748 UI: Enforce completely Fusion Qt style on Linux
As of 8dcfae9a39, indicating the base
style to the proxy is completely functional.

It also bypasses QT_STYLE_OVERRIDE and -style, but since the system
theme is no longer available on Linux this is a non-issue.
2024-05-25 16:58:26 -07:00
Warchamp7 af685be40d UI: Add OS specific theme variables via prefix 2024-05-10 18:39:18 -04:00
derrod 503968671d UI: Add composable themes feature
Co-authored-by: Warchamp7 <warchamp2003@hotmail.com>
2024-04-21 00:01:16 -04:00