Skip to content

obs-frontend-api: Add theme functions#7583

Merged
jp9000 merged 1 commit intoobsproject:masterfrom
cg2121:theme-frontend-event
Oct 15, 2022
Merged

obs-frontend-api: Add theme functions#7583
jp9000 merged 1 commit intoobsproject:masterfrom
cg2121:theme-frontend-event

Conversation

@cg2121
Copy link
Copy Markdown
Contributor

@cg2121 cg2121 commented Oct 11, 2022

Description

This adds a frontend function to check if a theme is dark and also adds an event for when the theme is changed.

Motivation and Context

If a plugin uses their own icons, for example, they can determine whether to use light or dark ones.

How Has This Been Tested?

Tested with one of my plugins.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

This adds a frontend function to check if a theme is dark and also
adds an event for when the theme is changed.
@WizardCM WizardCM added the New Feature New feature or plugin label Oct 15, 2022
@jp9000 jp9000 merged commit 3c7b1c8 into obsproject:master Oct 15, 2022
@RytoEX RytoEX added this to the OBS Studio 29.0 milestone Oct 15, 2022
@cg2121 cg2121 deleted the theme-frontend-event branch May 1, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants