Mods
This commit is contained in:
parent
99b2e85c3c
commit
876140252b
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"title": "Cromulant",
|
||||
"program": "cromulant",
|
||||
"author": "madprops",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue