mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-11-22 05:26:02 -08:00
13 lines
468 B
Python
Executable File
13 lines
468 B
Python
Executable File
from scripts.install.colors_definer import ColorsDefiner
|
|
|
|
|
|
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: ColorsDefiner):
|
|
if args.opaque:
|
|
colors.replacers["BACKGROUND-COLOR"]["light"]["a"] = 1
|
|
colors.replacers["BACKGROUND-COLOR"]["dark"]["a"] = 1
|