diff --git a/#ubl-settings-datetime.glade# b/#ubl-settings-datetime.glade#
deleted file mode 100644
index 26f879f..0000000
--- a/#ubl-settings-datetime.glade#
+++ /dev/null
@@ -1,1344 +0,0 @@
-
-
-
-
-
-
-
-
-
- 659
- False
-
-
- True
- False
- vertical
-
-
- True
- False
- vertical
-
-
- True
- False
-
-
- True
- False
- 5
- 5
- 5
- 5
- 6
- 6
- 25
- 1
-
-
- False
- True
- 0
-
-
-
-
- True
- False
- start
- 5
- 5
- 5
- 5
- 6
- 6
-
-
-
-
-
-
- True
- True
- 1
-
-
-
-
- False
- True
- 0
-
-
-
-
- True
- False
- vertical
-
-
- True
- False
-
-
- True
- False
-
-
- 90
- True
- False
- 5
- 5
- 5
- 5
- 6
- 6
- 69
- com.ublinux.ubl-settings-datetime
-
-
- False
- True
- 0
-
-
-
-
- True
- False
-
-
- True
- False
-
-
- True
- False
- vertical
-
-
- 255
- True
- False
- Date and time settings
-
-
-
-
-
-
-
-
- True
- True
- 0
-
-
-
-
- False
- True
- 0
-
-
-
-
- True
- True
- 0
-
-
-
-
- True
- False
-
-
- False
- True
- 1
-
-
-
-
- True
- True
- 1
-
-
-
-
- -1
-
-
-
-
- False
- True
- 0
-
-
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- vertical
-
-
- True
- False
- vertical
-
-
- True
- False
- 5
- 5
- 5
- 5
- 0.019999999552965164
- in
-
-
- True
- False
- 5
- 5
- 5
- vertical
-
-
- True
- False
-
-
- 0
- True
- False
- 5
- 5
- 5
- 5
- 6
- 6
- Time:
- True
- 0
-
-
- False
- True
- 0
-
-
-
-
- True
- True
- 5
- 5
- 5
- 5
- 6
- 6
- 2
- 0.099999999776482579
- True
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- :
-
-
- False
- True
- 2
-
-
-
-
- True
- True
- 5
- 5
- 5
- 5
- 6
- 6
- 2
- True
-
-
- False
- True
- 3
-
-
-
-
- 20
- True
- False
- 5
- 5
- 5
- 5
- 6
- 6
- Date:
- True
- 0
-
-
- False
- True
- 4
-
-
-
-
- -1
- True
- True
- Date
-Format: DD.MM.YYYY
- 5
- 5
- 5
- 5
- 6
- 6
-
-
- True
- True
- 5
-
-
-
-
- True
- True
- True
- Интерактивный выбор даты
- 5
- 10
- 5
- 10
- 6
- 6
-
-
- True
- False
- x-office-calendar
-
-
-
-
- False
- True
- 6
-
-
-
-
- False
- True
- 1
-
-
-
-
- True
- False
-
-
- 252
- True
- True
- True
- 7
- 5
- 7
- 5
- 6
- 6
-
-
- True
- False
- center
- center
-
-
- True
- False
- 5
- 5
- 5
- 5
- media-playlist-repeat
-
-
- False
- True
- 0
-
-
-
-
- True
- False
- center
- center
- Sync by
-
-
- False
- True
- 1
-
-
-
-
-
-
- True
- True
- 0
-
-
-
-
- True
- False
-
-
- False
- True
- 1
-
-
-
-
- True
- False
-
-
- False
- True
- 2
-
-
-
-
- True
- True
- True
- 5
- 10
- 5
- 10
- 6
- 6
-
-
- True
- False
- center
- center
- Synchronize hardware time
-
-
-
-
- True
- True
- 3
-
-
-
-
- False
- True
- 3
-
-
-
-
-
-
- True
- False
- Current date and time
-
-
-
-
- False
- True
- 0
-
-
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- vertical
-
-
- True
- False
- 5
- 5
- 5
- 5
- 0.019999999552965164
- in
-
-
- True
- False
- 5
- 5
- 5
- vertical
-
-
- True
- False
-
-
- True
- False
- 5
- 5
- 5
- 5
- 6
- 6
-
-
- False
- True
- 1
-
-
-
-
- True
- True
- Enter the name of the ntp server or its ip address. When entering multiple addresses, separate them with spaces.
- center
- 5
- 10
- 5
- 10
- 6
- 6
-
-
- True
- True
- 3
-
-
-
-
- False
- True
- 1
-
-
-
-
-
-
- True
- False
- Synchronize via NTP
-
-
-
-
- False
- True
- 0
-
-
-
-
- False
- True
- 2
-
-
-
-
- True
- False
- 5
- 5
- 5
- 5
- 5
- 0.019999999552965164
- in
-
-
- True
- False
- vertical
-
-
- True
- False
-
-
- True
- False
- start
- 8
- 5
- 8
- 5
- 6
- 13
- Synchronize hardware time:
-
-
- False
- True
- 0
-
-
-
-
- True
- False
- 10
- 5
- 5
- 10
- 6
- 10
- False
- False
-
-
- True
- True
- 2
-
-
-
-
- False
- True
- 0
-
-
-
-
- True
- False
-
-
- True
- False
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- 8
- 5
- 8
- 5
- 6
- 13
- Region:
- 0
-
-
- False
- True
- 2
-
-
-
-
- True
- False
- 5
- 5
- 5
- 5
- 6
- 10
- False
- False
-
-
- True
- True
- 3
-
-
-
-
- True
- False
- 5
- 5
- 5
- 5
- 6
- 13
- Area:
- 0
-
-
- False
- True
- 4
-
-
-
-
- True
- False
- 5
- 5
- 5
- 5
- 6
- 10
- False
- False
-
-
- True
- True
- 5
-
-
-
-
- 5
- True
- False
-
-
- False
- True
- 6
-
-
-
-
- True
- False
-
-
- False
- True
- 7
-
-
-
-
- False
- True
- 1
-
-
-
-
-
-
- True
- False
- Time Zone
-
-
-
-
- False
- True
- 3
-
-
-
-
- False
- True
- 2
-
-
-
-
- False
- True
- 0
-
-
-
-
-
-
-
-
-
- both
- True
-
-
-
-
-
-
- 240
- 185
- False
- btnChooseDate
- bottom
- none
-
-
- True
- True
- 10
- 10
- 10
- 10
- 10
- 10
- 2023
- 1
- 10
-
-
-
-
- False
- Внимание!
- com.ublinux.ubl-settings-datetime
- dialog
-
-
- True
- False
- vertical
-
-
- True
- False
- 5
- 5
- 5
- 5
-
-
- True
- False
- 5
- 5
- 5
- 6
- 6
- 50
- gtk-dialog-warning
-
-
- True
- True
- 0
-
-
-
-
- 160
- True
- False
- start
- center
- 6
- 6
- Enter DHCP !
-
-
- True
- True
- 1
-
-
-
-
- False
- True
- 1
-
-
-
-
- OK
- True
- True
- True
- 5
- 5
- 5
- 5
- 3
- 3
-
-
- False
- True
- 1
-
-
-
-
-
-
- False
- popup
- Внимание!
- center
- com.ublinux.ubl-settings-datetime
- dialog
-
-
- True
- False
- vertical
-
-
- True
- False
- 5
- 5
- 5
- 5
-
-
- True
- False
- 5
- 5
- 5
- 6
- 6
- 50
- gtk-dialog-warning
-
-
- True
- True
- 0
-
-
-
-
- 160
- True
- False
- start
- center
- 5
- 5
- 5
- 5
- 6
- 6
- Enter DHCP !
-
-
- True
- True
- 1
-
-
-
-
- False
- True
- 1
-
-
-
-
- OK
- True
- True
- True
- 5
- 5
- 5
- 5
- 3
- 3
-
-
- False
- True
- 1
-
-
-
-
-
-
diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc
index f363fe7..99a11c9 100755
--- a/source/ubl-settings-datetime.cc
+++ b/source/ubl-settings-datetime.cc
@@ -7,6 +7,7 @@ const string path_glade = "/usr/share/ubl-settings-datetime/ui/";
const string app_name = "ubl-settings-datetime";
const string path_locale = "/usr/share/locale/";
const string path_css = "/usr/share/ubl-settings-datetime/css/ubl-settings-datetime.css";
+const string path_img_head_background = "/usr/share/ubl-settings-datetime/images/logo-background.png";
bool flag_datetime = false;
bool flag_timezone = false;
bool flag_ntp_mode = false;
@@ -84,6 +85,10 @@ void MainWindow::settings() {
map_error["ubconfig --source default get clock HWCLOCK_SYNC"] = string(gettext(": \"Hardware time\""));
this->get_builder();
this->add_CSS();
+ Gtk::Widget *boxWidget;
+ builder->get_widget("boxColor", boxWidget);
+ overHead->add_overlay(*boxWidget);
+
ubl_make_plugs(boxSave,boxButton, socket_ext_id_I, socket_trd_id_I);
year = 0;
month = 0;
@@ -224,8 +229,7 @@ void MainWindow::add_CSS() {
Glib::RefPtr styleContext = Gtk::StyleContext::create();
Glib::RefPtr screen = Gdk::Screen::get_default();//get default screen
styleContext->add_provider_for_screen(screen, cssProvider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);//add provider for screen in all application
- Glib::RefPtr boxColor_css = boxColor->get_style_context();
- boxColor_css->add_class("cssboxColor1");
+ imgHeadBackground->set(path_img_head_background);
Glib::RefPtr lblHead_css = lblHead->get_style_context();
Glib::RefPtr boxButton_css = boxButton->get_style_context();
Glib::RefPtr boxSave_css = boxSave->get_style_context();
@@ -308,6 +312,9 @@ void MainWindow::get_builder() {
builder->get_widget("imgSettings", imgSettings);
builder->get_widget("imgSave", imgSave);
builder->get_widget("boxWidgetFunc", boxWidgetFunc);
+ builder->get_widget("overHead", overHead);
+ builder->get_widget("imgHeadBackground", imgHeadBackground);
+
}
void MainWindow::gui_exit() {
diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h
index 83ee0a5..cf0933d 100644
--- a/source/ubl-settings-datetime.h
+++ b/source/ubl-settings-datetime.h
@@ -27,6 +27,7 @@ extern const string path_glade;
extern const string app_name;
extern const string path_locale;
extern const string path_css;
+extern const string path_img_head_background;
extern bool flag_datetime;
extern bool flag_timezone;
extern bool flag_ntp_mode;
@@ -114,6 +115,8 @@ class MainWindow : public Gtk::ApplicationWindow {
Gtk::Image *imgLoad;
Gtk::Image *imgSave;
Gtk::Image *imgSettings;
+ Gtk::Overlay *overHead;
+ Gtk::Image *imgHeadBackground;
string array_hw[2];
string array_hw_local[2];
bool flag_load = false;
diff --git a/ubl-settings-datetime.css b/ubl-settings-datetime.css
index e323d55..57095ec 100644
--- a/ubl-settings-datetime.css
+++ b/ubl-settings-datetime.css
@@ -1,9 +1,7 @@
.boxInfoMessError{
background-color: #ea9999;
}
-.cssboxColor1{
- background: url("/usr/share/ubl-settings-datetime/images/logo-background.png") no-repeat;
-}
+
.boxInfoMessOK{
background-color: #f3f0ac;
}
diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade
index 47400a5..9b4cd2a 100644
--- a/ubl-settings-datetime.glade
+++ b/ubl-settings-datetime.glade
@@ -51,6 +51,94 @@
+
+ True
+ False
+
+
+ 90
+ True
+ False
+ 5
+ 5
+ 5
+ 5
+ 6
+ 6
+ 69
+ com.ublinux.ubl-settings-datetime
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ False
+
+
+ True
+ False
+
+
+ True
+ False
+ vertical
+
+
+ 255
+ True
+ False
+ Date and time settings
+
+
+
+
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ 0
+
+
+
+
+ True
+ False
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ True
+ 1
+
+
+