Skip to content

Commit

Permalink
Merge pull request #2 from arch-linux-gui/devel
Browse files Browse the repository at this point in the history
Changed Theme Names in XFCE & KDE
  • Loading branch information
harshau007 authored Jul 7, 2024
2 parents 232f082 + 597f9cd commit 47e5916
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ func (a *App) ToggleTheme(dark bool) {
}
} else {
if dark {
style = "Qogirdark"
winDeco = "__aurorae__svg__Qogir-dark-circle"
style = "QogirDark"
winDeco = "__aurorae__svg__Qogir-Dark-circle"
} else {
style = "Qogirlight"
winDeco = "__aurorae__svg__Qogir-light"
style = "QogirLight"
winDeco = "__aurorae__svg__Qogir-Light-circle"
}
cmd := exec.Command("sh", "-c", fmt.Sprintf("plasma-apply-colorscheme %s && kwriteconfig6 --file %s/.config/kwinrc --group org.kde.kdecoration2 --key theme %s && qdbus6 org.kde.KWin /KWin reconfigure", style, os.Getenv("HOME"), winDeco))
_, err := cmd.Output()
Expand Down Expand Up @@ -201,9 +201,9 @@ func (a *App) ToggleTheme(dark bool) {
xfceThemeName := getThemeNameXFCE()
if strings.Contains(xfceThemeName, "Qogir") {
if dark {
style = "Qogir-dark"
style = "Qogir-Dark"
} else {
style = "Qogir-light"
style = "Qogir-Light"
}
cmd := exec.Command("sh", "-c", fmt.Sprintf("xfconf-query -c xsettings -p /Net/ThemeName -s %s && xfconf-query -c xfwm4 -p /general/theme -s %s", style, style))
_, err := cmd.Output()
Expand Down

0 comments on commit 47e5916

Please sign in to comment.