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 @@
(6,14,"GtkWidget",1,1,None,None,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",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_arg>
(6,4,"GtkWidget",2,2,"name","title-3"),
......
/* style.css */
.box-border {
border-style: solid;
border-color: @theme_selected_bg_color; /* Цвет обводки */
border-color: @accent_bg_color; /* Цвет обводки */
border-width: 2px; /* Ширина обводки */
border-radius: 10px; /* Радиус закругления углов */
padding: 15px; /* Внутренние отступы */
}
.maintoggle:checked {
color: @theme_selected_bg_color; /* темный цвет фона */
font-size: 14px;
font-weight: bold;
box-shadow: inset 0 0 0 9999px @accent_bg_color;
}
.maintoggle:checked .maintogglelabel {
......
......@@ -59,7 +59,7 @@ class XimperUnifiedThemeSwitcherGuiGtk4Window(Adw.ApplicationWindow):
else:
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):
cfg_new_value = cr.props.selected_item.props.string
......
......@@ -103,6 +103,7 @@
<property name="icon-name">ru.ximperlinux.UnifiedThemeSwitcher</property>
<property name="icon-size">large</property>
<property name="valign">center</property>
<style/>
</object>
</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