This commit is contained in:
Auric Vente 2024-07-25 20:04:52 -06:00
parent 99b2e85c3c
commit 876140252b
4 changed files with 26 additions and 1 deletions

View File

@ -11,6 +11,8 @@ from .argspec import ArgSpec
class Args:
names: Path | None = None
images: bool = True
header: bool = True
footer: bool = True
@staticmethod
def prepare() -> None:
@ -22,6 +24,8 @@ class Args:
other_name = [
("no_images", "images"),
("no_header", "header"),
("no_footer", "footer"),
]
for r_item in other_name:

View File

@ -81,3 +81,15 @@ class ArgSpec:
action="store_false",
info="Don't show the images on the left",
)
ArgSpec.add_argument(
"no_header",
action="store_false",
info="Don't show the header controls",
)
ArgSpec.add_argument(
"no_footer",
action="store_false",
info="Don't show the footer controls",
)

View File

@ -1,5 +1,5 @@
{
"version": "2.0.0",
"version": "2.1.0",
"title": "Cromulant",
"program": "cromulant",
"author": "madprops",

View File

@ -30,6 +30,7 @@ from PySide6.QtMultimedia import QMediaPlayer # type: ignore
from PySide6.QtMultimedia import QAudioOutput
from .config import Config
from .args import Args
from .utils import Utils
@ -284,6 +285,10 @@ class Window:
container.addWidget(Window.filter, 1)
root.setLayout(container)
if not Args.header:
root.setVisible(False)
Window.root.addWidget(root)
@staticmethod
@ -375,6 +380,10 @@ class Window:
Window.info.setMinimumSize(35, 35)
container.addWidget(Window.info)
root.setLayout(container)
if not Args.footer:
root.setVisible(False)
Window.root.addWidget(root)
@staticmethod