added group style

This commit is contained in:
DYefremov
2020-04-22 09:53:06 +03:00
parent 8f591a8b9a
commit a433e01b65
4 changed files with 32 additions and 12 deletions

View File

@@ -243,17 +243,7 @@ Author: Dmitriy Yefremov
<property name="focus_on_click">False</property>
<property name="active">0</property>
<property name="has_frame">False</property>
<property name="has_entry">True</property>
<signal name="changed" handler="on_profile_changed" swapped="no"/>
<child internal-child="entry">
<object class="GtkEntry">
<property name="can_focus">True</property>
<property name="has_tooltip">True</property>
<property name="editable">False</property>
<property name="has_frame">False</property>
<property name="max_width_chars">9</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
@@ -614,6 +604,9 @@ Author: Dmitriy Yefremov
<property name="position">2</property>
</packing>
</child>
<style>
<class name="group"/>
</style>
</object>
</child>
</object>
@@ -724,4 +717,11 @@ Author: Dmitriy Yefremov
</object>
</child>
</object>
<object class="GtkSizeGroup" id="settings_size_group">
<widgets>
<widget name="ftp_radio_button"/>
<widget name="http_radio_button"/>
<widget name="telnet_radio_button"/>
</widgets>
</object>
</interface>

View File

@@ -1208,7 +1208,6 @@ Author: Dmitriy Yefremov
<object class="GtkBox" id="search_bar_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">1</property>
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="visible">True</property>
@@ -1270,6 +1269,9 @@ Author: Dmitriy Yefremov
<property name="position">2</property>
</packing>
</child>
<style>
<class name="group"/>
</style>
</object>
</child>
</object>

View File

@@ -744,7 +744,7 @@ class SettingsDialog:
def init_appearance(self):
t_support = self._ext_settings.is_themes_support
self._themes_support_switch.set_active(t_support)
if t_support or True:
if t_support:
# GTK
try:
for t in os.listdir(self._ext_settings.themes_path):

View File

@@ -10,3 +10,21 @@
#textview-large {
font-size: 14px;
}
.group {}
.group :first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.group :last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.group :not(:first-child):not(:last-child) {
border-radius: 0;
border-left-width: 0;
border-right-width: 0;
}