Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FUSS
fuss-welcome
Commits
7a9274f5
Commit
7a9274f5
authored
Sep 11, 2020
by
Simone Piccardi
Browse files
Removing unneeded code for color changes (mint specific, not present
in fuss).
parent
9fe3e64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
usr/lib/linuxmint/mintwelcome/mintwelcome.py
View file @
7a9274f5
...
...
@@ -226,37 +226,6 @@ class MintWelcome():
settings
.
set_string
(
"panel-zone-icon-sizes"
,
"[{
\"
panelId
\"
: 1,
\"
left
\"
: %s,
\"
center
\"
: %s,
\"
right
\"
: %s}]"
%
(
left_icon_size
,
center_icon_size
,
right_icon_size
))
os
.
system
(
"cinnamon --replace &"
)
def
on_color_button_clicked
(
self
,
button
,
color
):
self
.
color
=
color
self
.
change_color
()
def
change_color
(
self
):
theme
=
"Mint-Y"
wm_theme
=
"Mint-Y"
cinnamon_theme
=
"Mint-Y-Dark"
if
self
.
dark_mode
:
theme
=
"%s-Dark"
%
theme
wm_theme
=
"Mint-Y-Dark"
if
self
.
color
!=
"green"
:
theme
=
"%s-%s"
%
(
theme
,
self
.
color
.
title
())
cinnamon_theme
=
"Mint-Y-Dark-%s"
%
self
.
color
.
title
()
if
os
.
getenv
(
"XDG_CURRENT_DESKTOP"
)
in
[
"Cinnamon"
,
"X-Cinnamon"
]:
settings
=
Gio
.
Settings
(
schema
=
"org.cinnamon.desktop.interface"
)
settings
.
set_string
(
"gtk-theme"
,
theme
)
settings
.
set_string
(
"icon-theme"
,
theme
)
Gio
.
Settings
(
schema
=
"org.cinnamon.desktop.wm.preferences"
).
set_string
(
"theme"
,
wm_theme
)
Gio
.
Settings
(
schema
=
"org.cinnamon.theme"
).
set_string
(
"name"
,
cinnamon_theme
)
elif
os
.
getenv
(
"XDG_CURRENT_DESKTOP"
)
==
"MATE"
:
settings
=
Gio
.
Settings
(
schema
=
"org.mate.interface"
)
settings
.
set_string
(
"gtk-theme"
,
theme
)
settings
.
set_string
(
"icon-theme"
,
theme
)
Gio
.
Settings
(
schema
=
"org.mate.Marco.general"
).
set_string
(
"theme"
,
wm_theme
)
elif
os
.
getenv
(
"XDG_CURRENT_DESKTOP"
)
==
"XFCE"
:
subprocess
.
call
([
"xfconf-query"
,
"-c"
,
"xsettings"
,
"-p"
,
"/Net/ThemeName"
,
"-s"
,
theme
])
subprocess
.
call
([
"xfconf-query"
,
"-c"
,
"xsettings"
,
"-p"
,
"/Net/IconThemeName"
,
"-s"
,
theme
])
subprocess
.
call
([
"xfconf-query"
,
"-c"
,
"xfwm4"
,
"-p"
,
"/general/theme"
,
"-s"
,
theme
])
def
visit
(
self
,
button
,
url
):
subprocess
.
Popen
([
"xdg-open"
,
url
])
...
...
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