mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-02-23 07:01:29 +01:00
style changes for some ui elements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user