0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

UI: Adjust appearance of multiview labels

This commit is contained in:
Warchamp7 2024-05-23 14:14:40 -04:00 committed by Lain
parent 5eeae2d8b2
commit 8500515d27
2 changed files with 5 additions and 4 deletions

View File

@ -34,9 +34,9 @@ static OBSSource CreateLabel(const char *name, size_t h)
OBSDataAutoRelease font = obs_data_create();
std::string text;
text += " ";
text += " ";
text += name;
text += " ";
text += " ";
#if defined(_WIN32)
obs_data_set_string(font, "face", "Arial");
@ -51,6 +51,7 @@ static OBSSource CreateLabel(const char *name, size_t h)
obs_data_set_obj(settings, "font", font);
obs_data_set_string(settings, "text", text.c_str());
obs_data_set_bool(settings, "outline", false);
obs_data_set_int(settings, "opacity", 50);
#ifdef _WIN32
const char *text_source_id = "text_gdiplus";

View File

@ -47,8 +47,8 @@ private:
siScaleY, fw, fh, ratio;
// argb colors
static const uint32_t outerColor = 0xFFD0D0D0;
static const uint32_t labelColor = 0xD91F1F1F;
static const uint32_t outerColor = 0xFF999999;
static const uint32_t labelColor = 0x33000000;
static const uint32_t backgroundColor = 0xFF000000;
static const uint32_t previewColor = 0xFF00D000;
static const uint32_t programColor = 0xFFD00000;