Commit 02c7c0ac authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

general: Move Animations, Power and Sound to new General panel

Since Power and Sound currently only have one item each,
combine them to a new General panel.

Also, move the Animations tweak there.

https://gitlab.gnome.org/Community/Design/app-mockups/blob/master/tweaks/tweaks-wires.png
parent a58a5980
......@@ -256,7 +256,6 @@ TWEAK_GROUPS = [
ListBoxTweakGroup(_("Appearance"),
#GSettingsSwitchTweak("Buttons Icons","org.gnome.desktop.interface", "buttons-have-icons"),
#GSettingsSwitchTweak("Menu Icons","org.gnome.desktop.interface", "menus-have-icons"),
GSettingsSwitchTweak(_("Animations"), "org.gnome.desktop.interface", "enable-animations"),
Title(_("Themes"), "", uid="title-theme"),
GtkThemeSwitcher(),
CursorThemeSwitcher(),
......
......@@ -6,7 +6,7 @@ from gi.repository import Gio, GLib, Gtk
import gtweak
from gtweak.tweakmodel import Tweak
from gtweak.widgets import ListBoxTweakGroup, GetterSetterSwitchTweak
from gtweak.widgets import ListBoxTweakGroup, GetterSetterSwitchTweak, GSettingsSwitchTweak
from gtweak.utils import AutostartFile
......@@ -43,7 +43,10 @@ class IgnoreLidSwitchTweak(GetterSetterSwitchTweak):
return False
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Power"),
ListBoxTweakGroup(_("General"),
GSettingsSwitchTweak(_("Animations"), "org.gnome.desktop.interface", "enable-animations"),
IgnoreLidSwitchTweak(),
GSettingsSwitchTweak(_("Over-Amplification"), "org.gnome.desktop.sound", "allow-volume-above-100-percent",
desc=_("Allows raising the volume above 100%. This can result in a loss of audio quality; it is better to increase application volume settings, if possible.")),
),
]
# Copyright (c) 2017 Canonical
# SPDX-License-Identifier: GPL-3.0+
# License-Filename: LICENSES/GPL-3.0
from gi.repository import Gio, GLib, Gtk
import gtweak
from gtweak.tweakmodel import Tweak
from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Sound"),
GSettingsSwitchTweak(_("Over-Amplification"), "org.gnome.desktop.sound", "allow-volume-above-100-percent",
desc=_("Allows raising the volume above 100%. This can result in a loss of audio quality; it is better to increase application volume settings, if possible.")),
)
]
......@@ -8,10 +8,9 @@ gtweak/tweakview.py
gtweak/tweaks/tweak_group_appearance.py
gtweak/tweaks/tweak_group_desktop.py
gtweak/tweaks/tweak_group_font.py
gtweak/tweaks/tweak_group_general.py
gtweak/tweaks/tweak_group_keymouse.py
gtweak/tweaks/tweak_group_power.py
gtweak/tweaks/tweak_group_shell_extensions.py
gtweak/tweaks/tweak_group_sound.py
gtweak/tweaks/tweak_group_startup.py
gtweak/tweaks/tweak_group_title_bar.py
gtweak/tweaks/tweak_group_top_bar.py
......
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