From 0c2229bcd5afa11d484ff9a8ea88358fa550cf0e Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 16 Apr 2026 11:48:35 +0600 Subject: [PATCH] Added app/service startup add window highlight for required field --- locale/ubinstall-gtk.pot | 3 +++ locale/ubinstall-gtk_ru.po | 5 ++++- source/ubinstall-gtk-startup-apps.c | 1 + source/ubinstall-gtk-startup-services.c | 1 + source/ubl-strings.h | 1 + ubinstall-gtk-service-window.glade | 3 +++ ubinstall-gtk.css | 5 +++++ 7 files changed, 18 insertions(+), 1 deletion(-) diff --git a/locale/ubinstall-gtk.pot b/locale/ubinstall-gtk.pot index 5a173c2..8968599 100644 --- a/locale/ubinstall-gtk.pot +++ b/locale/ubinstall-gtk.pot @@ -5360,4 +5360,7 @@ msgid "Select installation sources" msgstr "" msgid "Database update" +msgstr "" + +msgid "The required field is highlighted in green" msgstr "" \ No newline at end of file diff --git a/locale/ubinstall-gtk_ru.po b/locale/ubinstall-gtk_ru.po index b786b71..e862f0c 100644 --- a/locale/ubinstall-gtk_ru.po +++ b/locale/ubinstall-gtk_ru.po @@ -5555,4 +5555,7 @@ msgid "Select installation sources" msgstr "Выберите источники для " msgid "Database update" -msgstr "Обновление баз данных" \ No newline at end of file +msgstr "Обновление баз данных" + +msgid "The required field is highlighted in green" +msgstr "Обязательное поле подсвечено зелёным" \ No newline at end of file diff --git a/source/ubinstall-gtk-startup-apps.c b/source/ubinstall-gtk-startup-apps.c index b034cc8..ce73dfa 100644 --- a/source/ubinstall-gtk-startup-apps.c +++ b/source/ubinstall-gtk-startup-apps.c @@ -165,6 +165,7 @@ startup_service_window *yon_startup_app_window_new(){ g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_object_set_data(G_OBJECT(window->AcceptButton),"startup_service_window",window); + yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),IMPORTANT_OUTLINE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE); return window; } diff --git a/source/ubinstall-gtk-startup-services.c b/source/ubinstall-gtk-startup-services.c index 418adae..17cd010 100644 --- a/source/ubinstall-gtk-startup-services.c +++ b/source/ubinstall-gtk-startup-services.c @@ -168,6 +168,7 @@ startup_service_window *yon_startup_service_window_new(){ g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_object_set_data(G_OBJECT(window->AcceptButton),"startup_service_window",window); + yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),IMPORTANT_OUTLINE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE); return window; } diff --git a/source/ubl-strings.h b/source/ubl-strings.h index 2a8bf70..aa585bf 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -306,6 +306,7 @@ NULL) #define INFO_LABEL _("Package information") #define ALREADY_RUNNING_LABEL _("Application is already running") #define DB_UPDATE_LABEL _("Database update") +#define IMPORTANT_OUTLINE_LABEL _("The required field is highlighted in green") // #define _LABEL _("Chosen size:") // #define _LABEL _("Overall size:") diff --git a/ubinstall-gtk-service-window.glade b/ubinstall-gtk-service-window.glade index e2fa23d..922f61b 100644 --- a/ubinstall-gtk-service-window.glade +++ b/ubinstall-gtk-service-window.glade @@ -72,6 +72,9 @@ True True + True diff --git a/ubinstall-gtk.css b/ubinstall-gtk.css index 61ab5cb..bd3e79f 100644 --- a/ubinstall-gtk.css +++ b/ubinstall-gtk.css @@ -20,6 +20,11 @@ background:transparent; background:transparent; } +.important_border { + border-color: #009e0f; + border-style: solid; +} + .bgcommon { background:@theme_bg_color; }