Make installation undependable from tweaks

Updated copyright years ("better late than never" ahh change)
This commit is contained in:
Vladyslav Hroshev
2024-09-01 21:21:46 +03:00
parent 4d2269664c
commit 7c7a474ad0
10 changed files with 141 additions and 39 deletions

15
tweaks/overview/tweak.py Executable file
View File

@@ -0,0 +1,15 @@
from scripts import config
overview_folder = f"{config.tweaks_folder}/overview"
def define_arguments(parser):
overview_args = parser.add_argument_group('Overview tweaks')
overview_args.add_argument('--launchpad', action='store_true', help='change Show Apps icon to macOS Launchpad icon')
def apply_tweak(args, theme, colors):
if args.launchpad:
with open(f"{overview_folder}/launchpad/launchpad.css", "r") as f:
theme += f.read()
theme *= f"{overview_folder}/launchpad/launchpad.png"