From 1237f7667cd35138f98cb9c84ef516c49f70dfbc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 3 May 2025 10:47:03 +0530 Subject: [PATCH] ... --- kitty_tests/panels.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/kitty_tests/panels.py b/kitty_tests/panels.py index 8074d7ece..a0c639a30 100755 --- a/kitty_tests/panels.py +++ b/kitty_tests/panels.py @@ -16,16 +16,17 @@ def r(msg: str, cmdline: str) -> None: except KeyboardInterrupt: raise SystemExit(1) -r('top panel check transpareny, no input focus, margins and struts', - 'panel -o background_opacity=0.2 --edge=top --lines=2 --margin-left=50 --margin-right=100') +if __name__ == '__main__': + r('top panel check transpareny, no input focus, margins and struts', + 'panel -o background_opacity=0.2 --edge=top --lines=2 --margin-left=50 --margin-right=100') -r('bottom panel, check struts', 'panel -o background_opacity=0.2 --edge=bottom --lines=2 --margin-left=100 --margin-right=50') + r('bottom panel, check struts', 'panel -o background_opacity=0.2 --edge=bottom --lines=2 --margin-left=100 --margin-right=50') -r('left panel, check struts', 'panel -o background_opacity=0.2 --edge=left --columns=2 --margin-top=50 --margin-bottom=100') + r('left panel, check struts', 'panel -o background_opacity=0.2 --edge=left --columns=2 --margin-top=50 --margin-bottom=100') -r('right panel, check struts', 'panel -o background_opacity=0.2 --edge=right --columns=2 --margin-top=50 --margin-bottom=100') + r('right panel, check struts', 'panel -o background_opacity=0.2 --edge=right --columns=2 --margin-top=50 --margin-bottom=100') -r('background, check transparency and margins and no input focus', - 'panel -o background_opacity=0.2 --edge=background --margin-top=50 --margin-bottom=50 --margin-left=100 --margin-right=100') + r('background, check transparency and margins and no input focus', + 'panel -o background_opacity=0.2 --edge=background --margin-top=50 --margin-bottom=50 --margin-left=100 --margin-right=100') -r('quake, check transparency and focus on show/re-show', 'quick-access-terminal') + r('quake, check transparency and focus on show/re-show', 'quick-access-terminal')