Commit cac35223 authored by Roman Alifanov's avatar Roman Alifanov

Replaced deprecated 'toggled' to 'clicked' +fixed button color (it is not the…

Replaced deprecated 'toggled' to 'clicked' +fixed button color (it is not the correct fix, I think..)
parent 5bfabc0f
...@@ -105,7 +105,8 @@ ...@@ -105,7 +105,8 @@
(6,14,"GtkWidget",1,1,None,None,None,None,None,None), (6,14,"GtkWidget",1,1,None,None,None,None,None,None),
(6,14,"GtkWidget",2,2,None,1,None,None,None,None), (6,14,"GtkWidget",2,2,None,1,None,None,None,None),
(6,17,"GtkWidget",1,1,None,None,None,None,None,None), (6,17,"GtkWidget",1,1,None,None,None,None,None,None),
(6,17,"GtkWidget",2,2,None,1,None,None,None,None) (6,17,"GtkWidget",2,2,None,1,None,None,None,None),
(6,16,"GtkWidget",1,1,None,None,None,None,None,None)
</object_data> </object_data>
<object_data_arg> <object_data_arg>
(6,4,"GtkWidget",2,2,"name","title-3"), (6,4,"GtkWidget",2,2,"name","title-3"),
......
/* style.css */ /* style.css */
.box-border { .box-border {
border-style: solid; border-style: solid;
border-color: @theme_selected_bg_color; /* Цвет обводки */ border-color: @accent_bg_color; /* Цвет обводки */
border-width: 2px; /* Ширина обводки */ border-width: 2px; /* Ширина обводки */
border-radius: 10px; /* Радиус закругления углов */ border-radius: 10px; /* Радиус закругления углов */
padding: 15px; /* Внутренние отступы */ padding: 15px; /* Внутренние отступы */
} }
.maintoggle:checked { .maintoggle:checked {
color: @theme_selected_bg_color; /* темный цвет фона */ box-shadow: inset 0 0 0 9999px @accent_bg_color;
font-size: 14px;
font-weight: bold;
} }
.maintoggle:checked .maintogglelabel { .maintoggle:checked .maintogglelabel {
......
...@@ -59,7 +59,7 @@ class XimperUnifiedThemeSwitcherGuiGtk4Window(Adw.ApplicationWindow): ...@@ -59,7 +59,7 @@ class XimperUnifiedThemeSwitcherGuiGtk4Window(Adw.ApplicationWindow):
else: else:
self.change_style_btn.set_active(False) self.change_style_btn.set_active(False)
self.change_style_btn.connect('toggled', self.change_style, "1") self.change_style_btn.connect('clicked', self.change_style, "1")
def cr_theme_selected(self, cr, _pspec, cfg_key): def cr_theme_selected(self, cr, _pspec, cfg_key):
cfg_new_value = cr.props.selected_item.props.string cfg_new_value = cr.props.selected_item.props.string
......
...@@ -103,6 +103,7 @@ ...@@ -103,6 +103,7 @@
<property name="icon-name">ru.ximperlinux.UnifiedThemeSwitcher</property> <property name="icon-name">ru.ximperlinux.UnifiedThemeSwitcher</property>
<property name="icon-size">large</property> <property name="icon-size">large</property>
<property name="valign">center</property> <property name="valign">center</property>
<style/>
</object> </object>
</child> </child>
<child> <child>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment