Skip to content

Commit

Permalink
text-freetype2: Add alpha channel property
Browse files Browse the repository at this point in the history
Use obs_properties_add_color_alpha to set alpha for text colors.
  • Loading branch information
norihiro authored and jp9000 committed Jul 4, 2021
1 parent 49cfd24 commit ed76a30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/text-freetype2/text-freetype2.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ static obs_properties_t *ft2_source_properties(void *unused)
OBS_PATH_FILE,
obs_module_text("TextFileFilter"), NULL);

obs_properties_add_color(props, "color1", obs_module_text("Color1"));
obs_properties_add_color_alpha(props, "color1",
obs_module_text("Color1"));

obs_properties_add_color(props, "color2", obs_module_text("Color2"));
obs_properties_add_color_alpha(props, "color2",
obs_module_text("Color2"));

obs_properties_add_bool(props, "outline", obs_module_text("Outline"));

Expand Down

0 comments on commit ed76a30

Please sign in to comment.