Always show black background

parent 5426c9cd
......@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/de/haeckerfelix/Remotely">
<file>ui/window.ui</file>
<file>ui/style.css</file>
</gresource>
</gresources>
.display{
background-color: black;
}
......@@ -309,6 +309,7 @@
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkStack" id="vnc_stack">
<property name="visible">True</property>
......@@ -641,6 +642,9 @@
</child>
</object>
</child>
<style>
<class name="display"/>
</style>
</object>
</child>
</object>
......
......@@ -61,6 +61,11 @@ public class Remotely.Window : Gtk.ApplicationWindow {
public Window (Gtk.Application app) {
Object (application: app);
// Apply stylesheet
var provider = new CssProvider ();
provider.load_from_resource ("/de/haeckerfelix/Remotely/ui/style.css");
StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), provider, Gtk.STYLE_PROVIDER_PRIORITY_USER);
display = new Display();
display.local_pointer = true;
display.set_visible(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment