Jelajahi Sumber

UI: Adjust appearance of multiview labels

Warchamp7 1 tahun lalu
induk
melakukan
8500515d27
2 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 3 2
      UI/multiview.cpp
  2. 2 2
      UI/multiview.hpp

+ 3 - 2
UI/multiview.cpp

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

+ 2 - 2
UI/multiview.hpp

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