Browse Source

text-freetype2: Add alpha channel property

Use obs_properties_add_color_alpha to set alpha for text colors.
Norihiro Kamae 4 years ago
parent
commit
ed76a3032b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      plugins/text-freetype2/text-freetype2.c

+ 4 - 2
plugins/text-freetype2/text-freetype2.c

@@ -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"));