Added opaque tweak (Closes #35)

This commit is contained in:
Vladyslav Hroshev
2024-09-01 21:23:19 +03:00
parent 7c7a474ad0
commit a0e8f9d112

9
tweaks/opaque/tweak.py Executable file
View File

@@ -0,0 +1,9 @@
def define_arguments(parser):
color_args = parser.add_argument_group('Color tweaks')
color_args.add_argument('-O', '--opaque', action='store_true', help='make the background in menus/popovers opaque')
def apply_tweak(args, theme, colors):
if args.opaque:
colors["elements"]["BACKGROUND-COLOR"]["light"]["a"] = 1
colors["elements"]["BACKGROUND-COLOR"]["dark"]["a"] = 1