mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-frontend-api: Add theme functions
This adds a frontend function to check if a theme is dark and also adds an event for when the theme is changed.
This commit is contained in:
@@ -10316,4 +10316,7 @@ void OBSBasic::ResetProxyStyleSliders()
|
||||
ActivateAudioSource(source);
|
||||
|
||||
UpdateContextBar(true);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_THEME_CHANGED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user