style changes for some ui elements

This commit is contained in:
DYefremov
2020-04-10 23:09:17 +03:00
parent 8cb413ec92
commit 0a5b51de6e
5 changed files with 88 additions and 7 deletions

View File

@@ -1635,7 +1635,7 @@ class Application(Gtk.Application):
self.update_fav_num_column(self._fav_model)
@run_idle
def on_iptv_list_configuration(self, action, value):
def on_iptv_list_configuration(self, action, value=None):
if self._s_type is SettingsType.NEUTRINO_MP:
self.show_error_dialog("Neutrino at the moment not supported!")
return

View File

@@ -1211,7 +1211,6 @@ Author: Dmitriy Yefremov
<property name="spacing">1</property>
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="height_request">32</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="primary_icon_stock">gtk-find</property>
@@ -1304,7 +1303,6 @@ Author: Dmitriy Yefremov
</child>
<child>
<object class="GtkSearchEntry" id="filter_entry">
<property name="height_request">32</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="primary_icon_stock">gtk-spell-check</property>

View File

@@ -1,8 +1,91 @@
#digit-entry {
border-color: Red;
border-color: Red;
}
#status-bar-button {
padding: 1px;
margin: 1px;
}
#textview-large {
font-size: 14px;
}
* {
-GtkDialog-action-area-border: 5;
}
entry {
min-height: 24px;
}
button {
min-height: 20px;
padding-top: 1px;
padding-bottom: 1px;
}
button.image-button {
min-height: 24px;
padding-left: 2px;
padding-right: 2px;
}
button.text-button.image-button {
min-height: 24px;
padding-left: 2px;
padding-right: 2px;
}
spinbutton {
min-height: 20px;
}
toolbutton {
padding: 2px;
}
spinner {
padding-left: 10px;
padding-right: 10px;
}
headerbar {
min-height: 34px;
padding-top: 1px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 1px;
}
headerbar button {
min-height: 24px;
min-width: 24px;
padding-left: 2px;
padding-right: 2px;
}
box button {
padding-left: 4px;
padding-right: 4px;
}
infobar {
min-height: 24px;
}
infobar button {
min-height: 16px;
min-width: 16px;
padding-left: 2px;
padding-right: 2px;
}
switch {
border-radius: 50px;
}
switch slider {
min-height: 18px;
min-width: 18px;
}

View File

@@ -69,6 +69,7 @@ Author: Dmitriy Yefremov
<property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="text_view">
<property name="name">textview-large</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">char</property>

View File

@@ -68,10 +68,9 @@ class TelnetDialog:
self._end_tag = builder.get_object("end_tag")
self._connect_button = builder.get_object("connect_button")
self._connect_button.bind_property("visible", builder.get_object("disconnect_button"), "visible", 4)
# Font style
provider = Gtk.CssProvider()
provider.load_from_data(b"textview {font-size: 14px;}")
self._text_view.get_style_context().add_provider(provider, Gtk.STYLE_PROVIDER_PRIORITY_USER)
provider.load_from_path(UI_RESOURCES_PATH + "style.css")
builder.get_object("main_box").get_style_context().add_provider(provider, Gtk.STYLE_PROVIDER_PRIORITY_USER)
window_size = settings.get("telnet_dialog_window_size")
if window_size: