浏览代码

Seperate the control box better

Martijn Braam 4 年之前
父节点
当前提交
8393a9a906
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      camera.css
  2. 4 0
      main.c

+ 4 - 0
camera.css

@@ -6,3 +6,7 @@
     background: #dd0000;
     color: #ffffff;
 }
+
+.controlbox {
+    background: rgba(0,0,0,0.2);
+}

+ 4 - 0
main.c

@@ -1517,6 +1517,10 @@ main(int argc, char *argv[])
 		GTK_STYLE_PROVIDER(provider),
 		GTK_STYLE_PROVIDER_PRIORITY_USER);
 	context = gtk_widget_get_style_context(error_box);
+	gtk_style_context_add_provider(context,
+		GTK_STYLE_PROVIDER(provider),
+		GTK_STYLE_PROVIDER_PRIORITY_USER);
+	context = gtk_widget_get_style_context(control_box);
 	gtk_style_context_add_provider(context,
 		GTK_STYLE_PROVIDER(provider),
 		GTK_STYLE_PROVIDER_PRIORITY_USER);