diff --git a/src/remote_list.ui b/src/remote_list.ui index 2760d3d..81fdf37 100644 --- a/src/remote_list.ui +++ b/src/remote_list.ui @@ -12,10 +12,8 @@ False 0 32 - 12 - 6 - 6 - 6 + 12 + 16 center @@ -26,6 +24,10 @@ end Jan's Librem True + + 0 diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..ca45399 --- /dev/null +++ b/src/style.css @@ -0,0 +1,4 @@ +.device-name { + font-size: 20px; + font-weight: bold; +} diff --git a/src/teleport-app.c b/src/teleport-app.c index 613aef2..724ca88 100644 --- a/src/teleport-app.c +++ b/src/teleport-app.c @@ -171,6 +171,8 @@ callback_notify_user (GObject *instance, gchar *name, gpointer window) { static void teleport_app_startup (GApplication *app) { TeleportAppPrivate *priv; + GtkStyleProvider *provider; + mainApplication = TELEPORT_APP (app); priv = mainApplication->priv; @@ -181,10 +183,22 @@ teleport_app_startup (GApplication *app) { G_APPLICATION_CLASS (teleport_app_parent_class)->startup (app); + /* window */ priv->window = GTK_WIDGET (teleport_window_new (TELEPORT_APP (app))); + /* CSS style */ + provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ()); + gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider), + "com/frac_tion/teleport/style.css"); + gtk_style_context_add_provider_for_screen (gdk_screen_get_default(), + provider, + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + g_object_unref (provider); + + /* PeerList */ priv->peerList = g_object_new (TELEPORT_TYPE_PEER, NULL); + /* Add signals */ g_signal_connect (priv->peerList, "addpeer", (GCallback)callback_add_peer, priv->window); g_signal_connect (priv->peerList, "removepeer", (GCallback)callback_remove_peer, priv->window); g_signal_connect (app, "notify_user", (GCallback)callback_notify_user, priv->window); diff --git a/src/window.ui b/src/window.ui index a500e6d..2ab890b 100644 --- a/src/window.ui +++ b/src/window.ui @@ -44,17 +44,37 @@ in 12 12 - 0.45 none - + True - False - 0 - This device - - - + vertical + + + True + False + start + This device + + + + + + + + True + False + start + How your device appears to others + + + + + + + @@ -80,18 +100,19 @@ False 0 16 - 12 - 6 - 6 - 6 + 12 + 16 True False - True - 0 + True + start Angela's Thinkpad True + 0 @@ -100,29 +121,6 @@ 1 - - - True - False - 0 - 20 - True - word - How your device appears to others - - - - - - - 0 - 1 - 1 - 1 - - True @@ -177,16 +175,38 @@ none 0.45 - + True - False - 0 - Other devices on the local network - - - + vertical + + + True + False + 0 + Other devices on the local network + + + + + + + + True + False + start + Drag and drop files on devices to send them + + + + + + + + True