From 19571cf3fdba826e8c631ad468fd96abb5be8c4a Mon Sep 17 00:00:00 2001 From: Rory Fewell Date: Tue, 19 Aug 2025 22:10:26 +0100 Subject: [PATCH] Prelim: Further style improvements --- base/logonui/src/main.c | 3 +++ base/logonui/src/res/welcome-ui.css | 4 +++- base/logonui/src/res/welcome.ui | 4 ++-- base/logonui/src/res/welcphs1.ui | 4 +++- base/logonui/src/res/welcphs2.ui | 6 ++++-- base/logonui/src/welcome/userlist.c | 2 +- 6 files changed, 16 insertions(+), 7 deletions(-) diff --git a/base/logonui/src/main.c b/base/logonui/src/main.c index 6c97b24..76fa31d 100644 --- a/base/logonui/src/main.c +++ b/base/logonui/src/main.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "settings.h" @@ -30,6 +31,8 @@ int main( NULL ); + wintc_ctl_install_default_styles(); + // Create the window and launch // GtkWidget* window = wintc_logonui_window_new(settings); diff --git a/base/logonui/src/res/welcome-ui.css b/base/logonui/src/res/welcome-ui.css index e25f806..2a2fd3e 100644 --- a/base/logonui/src/res/welcome-ui.css +++ b/base/logonui/src/res/welcome-ui.css @@ -5,6 +5,7 @@ .header-separator { background: linear-gradient(45deg, #5B7EDC, #C3D9FD 20%, #ADC6F6, #5A7EDC 90%); + min-height: 2px; } .content { @@ -13,6 +14,7 @@ .vertical-separator { background-image: linear-gradient(to bottom, #5B7EDC, #91AEEE, #5A7EDC ); + min-width: 1px; } .footer { @@ -21,6 +23,7 @@ .footer-separator { background: linear-gradient(45deg, #5076D4, #F99736 20%, #C2814D, #00309C); + min-height: 2px; } @@ -87,7 +90,6 @@ } .user-label { - font-weight: 600; color: #ffffff; font-size: 14pt; font-family: Tahoma, inherit; diff --git a/base/logonui/src/res/welcome.ui b/base/logonui/src/res/welcome.ui index be3b215..2626be4 100644 --- a/base/logonui/src/res/welcome.ui +++ b/base/logonui/src/res/welcome.ui @@ -29,7 +29,6 @@ True False - 2 @@ -159,6 +158,7 @@ Just go to Control Panel and click User Accounts. diff --git a/base/logonui/src/res/welcphs1.ui b/base/logonui/src/res/welcphs1.ui index 22737d0..0d113df 100644 --- a/base/logonui/src/res/welcphs1.ui +++ b/base/logonui/src/res/welcphs1.ui @@ -4,7 +4,8 @@ True False GTK_ALIGN_CENTER - horizontal + vertical + GTK_ALIGN_CENTER @@ -30,6 +31,7 @@ diff --git a/base/logonui/src/res/welcphs2.ui b/base/logonui/src/res/welcphs2.ui index 30536f0..ed2dbe1 100644 --- a/base/logonui/src/res/welcphs2.ui +++ b/base/logonui/src/res/welcphs2.ui @@ -38,6 +38,7 @@ @@ -60,10 +61,11 @@ True False vertical - 1 @@ -73,7 +75,7 @@ True False - vertical + horizontal diff --git a/base/logonui/src/welcome/userlist.c b/base/logonui/src/welcome/userlist.c index e32fdd0..208bd1e 100644 --- a/base/logonui/src/welcome/userlist.c +++ b/base/logonui/src/welcome/userlist.c @@ -779,7 +779,7 @@ static GtkWidget *build_userlist_widget(WinTCWelcomeUserList *user_list) g_object_unref(go_activated); } - gtk_style_context_add_class(gtk_widget_get_style_context(item->go_button), "plain-button"); + gtk_style_context_add_class(gtk_widget_get_style_context(item->go_button), "undecorated"); gtk_widget_set_can_focus(item->go_button, FALSE); gtk_widget_set_size_request(item->go_button, 22, 27); gtk_widget_set_margin_start(item->go_button, 13);