Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-unified-theme-switcher
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-unified-theme-switcher
Commits
cac35223
Commit
cac35223
authored
Jul 18, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
window.cmb
src/window.cmb
+2
-1
window.css
src/window.css
+2
-4
window.py
src/window.py
+1
-1
window.ui
src/window.ui
+1
-0
No files found.
src/window.cmb
View file @
cac35223
...
...
@@ -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"),
...
...
src/window.css
View file @
cac35223
/* 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
{
...
...
src/window.py
View file @
cac35223
...
...
@@ -59,7 +59,7 @@ class XimperUnifiedThemeSwitcherGuiGtk4Window(Adw.ApplicationWindow):
else
:
self
.
change_style_btn
.
set_active
(
False
)
self
.
change_style_btn
.
connect
(
'
toggl
ed'
,
self
.
change_style
,
"1"
)
self
.
change_style_btn
.
connect
(
'
click
ed'
,
self
.
change_style
,
"1"
)
def
cr_theme_selected
(
self
,
cr
,
_pspec
,
cfg_key
):
cfg_new_value
=
cr
.
props
.
selected_item
.
props
.
string
...
...
src/window.ui
View file @
cac35223
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment