Исправлен дизайн

pull/16/head
Igor Belitskiy 3 years ago
parent 90f957b99e
commit 9269cc1396

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 38 KiB

@ -81,7 +81,7 @@ void MainWindow::lacalization(){
_cbDhcp->append(gettext("DHCP"));
_cbDhcp->append(gettext("Manually"));
_lblDateTimeSetting->set_text(gettext("Settings the date and time"));
//_lblNtpServer1->set_text(gettext("Settings the date and time"));
_lblHead->set_text(gettext("Settings the date and time"));
_lblTime->set_text(gettext("Time"));
_lblData->set_text(gettext("Date"));
_lblTimeZone->set_text(gettext("Time zone"));
@ -129,6 +129,7 @@ void MainWindow::flag_block_gui(){
_lblZone1Glob->set_sensitive(false);
_cbZoneGlob->set_sensitive(false);
_txtNtpServer->set_sensitive(false);
_cbDhcp->set_sensitive(false);
}
}
@ -139,7 +140,9 @@ void MainWindow::add_CSS(){
Glib::RefPtr<Gdk::Screen> 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<Gtk::StyleContext> context = _boxColor->get_style_context();
Glib::RefPtr<Gtk::StyleContext> context_lbl_head = _lblHead->get_style_context();
context->add_class("cssboxColor1");
context_lbl_head->add_class("textHead");
}
void MainWindow::get_builder(){
@ -162,7 +165,7 @@ void MainWindow::get_builder(){
builder->get_widget("mess_dchp", _mess_dchp);
builder->get_widget("lblMessage", _lblMessage);
builder->get_widget("lblDateTimeSetting",_lblDateTimeSetting);
builder->get_widget("lblNtpServer1",_lblNtpServer1);
builder->get_widget("lblHead",_lblHead);
builder->get_widget("lblTime",_lblTime);
builder->get_widget("lblData",_lblData);
builder->get_widget("lblTimeZone",_lblTimeZone);

@ -97,7 +97,7 @@ class MainWindow : public Gtk::ApplicationWindow {
Gtk::Calendar *_cldrDate;
Gtk::Label *_lblMessage;
Gtk::Label *_lblDateTimeSetting;
Gtk::Label *_lblNtpServer1;
Gtk::Label *_lblHead;
Gtk::Label *_lblTime;
Gtk::Label *_lblData;
Gtk::Label *_lblTimeZone;

@ -1,3 +1,6 @@
.cssboxColor1{
background-image: url("/usr/share/ubl-settings-datetime/images/bg_top.png");
background: url("/usr/share/ubl-settings-datetime/images/bg_top.png") no-repeat;
}
.textHead{
text-shadow: 1px 1px #ffffff;
}

@ -88,7 +88,7 @@
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<object class="GtkBox" id="boxColor">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
@ -120,18 +120,24 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkBox" id="boxColor">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="lblNtpServer1">
<object class="GtkLabel" id="lblHead">
<property name="width-request">255</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Настройки даты и времени</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="foreground" value="#000023233232"/>
<attribute name="size" value="12288"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
@ -179,13 +185,12 @@
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-left">6</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
@ -197,6 +202,7 @@
<property name="can-focus">False</property>
<property name="margin-left">6</property>
<property name="margin-start">5</property>
<property name="margin-bottom">5</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="cbxSynchronizeNtp">
@ -450,10 +456,10 @@
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label-xalign">0.019999999552965164</property>
<property name="shadow-type">in</property>
@ -461,6 +467,8 @@
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">6</property>
<property name="margin-start">5</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
@ -662,7 +670,6 @@
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame">
@ -678,8 +685,9 @@
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-left">6</property>
<property name="margin-start">5</property>
<property name="margin-bottom">5</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
@ -751,6 +759,7 @@
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>

Loading…
Cancel
Save