diff --git a/README.md b/README.md index 6964977..e4c4237 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,12 @@ --------- [![Codacy Badge](https://app.codacy.com/project/badge/Grade/065ca999772a434ba1aadae05f8b6bc7)](https://www.codacy.com/gh/alexpdev/torrentfileQt/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfileQt&utm_campaign=Badge_Grade) -[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/065ca999772a434ba1aadae05f8b6bc7)](https://www.codacy.com/gh/alexpdev/torrentfileQt/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfileQt&utm_campaign=Badge_Coverage) [![codecov](https://codecov.io/gh/alexpdev/torrentfileQt/branch/main/graph/badge.svg?token=S5Q9CRD6C2)](https://codecov.io/gh/alexpdev/torrentfileQt) -![PyPI - Downloads](https://img.shields.io/pypi/dw/torrentfileQt?style=plastic) ![PyPI - License](https://img.shields.io/pypi/l/torrentfileQt?color=orange&style=plastic) +![PyPI - Downloads](https://img.shields.io/pypi/dw/torrentfileQt?style=plastic) +![CI Workflow](https://img.shields.io/github/workflow/status/alexpdev/torrentfileQt/CI) +![last commit](https://img.shields.io/github/last-commit/alexpdev/torrentfileQt?color=blue) +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/065ca999772a434ba1aadae05f8b6bc7)](https://www.codacy.com/gh/alexpdev/torrentfileQt/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/torrentfileQt&utm_campaign=Badge_Coverage) TorrentFileQt is a GUI Frontend for [TorrentFile CLI](https://github.com/alexpdev/torrentfile) project. @@ -22,16 +24,16 @@ TorrentFileQt is a GUI Frontend for [TorrentFile CLI](https://github.com/alexpde ## ScreenShots -![checktorrent.png](./assets/screenshots/checktorrent.png) +![createtorrent.png](./assets/screenshots/create-tab.png) --------- -![createtorrent.png](./assets/screenshots/createtorrent.png) +![checktorrent.png](./assets/screenshots/recheck-tab.png) --------- -![edittorrent.png](./assets/screenshots/edittorrent.png) +![edittorrent.png](./assets/screenshots/edit-tab.png) --------- -![torrentinfo.png](./assets/screenshots/torrentinfo.png) +![torrentinfo.png](./assets/screenshots/info-tab.png) diff --git a/assets/screenshots/checktorrent.png b/assets/screenshots/checktorrent.png deleted file mode 100644 index ca734a5..0000000 Binary files a/assets/screenshots/checktorrent.png and /dev/null differ diff --git a/assets/screenshots/create-tab.png b/assets/screenshots/create-tab.png new file mode 100644 index 0000000..7cec083 Binary files /dev/null and b/assets/screenshots/create-tab.png differ diff --git a/assets/screenshots/createtorrent.png b/assets/screenshots/createtorrent.png deleted file mode 100644 index b9afde9..0000000 Binary files a/assets/screenshots/createtorrent.png and /dev/null differ diff --git a/assets/screenshots/edit-tab.png b/assets/screenshots/edit-tab.png new file mode 100644 index 0000000..2d1bcf0 Binary files /dev/null and b/assets/screenshots/edit-tab.png differ diff --git a/assets/screenshots/edittorrent.png b/assets/screenshots/edittorrent.png deleted file mode 100644 index 614e1c7..0000000 Binary files a/assets/screenshots/edittorrent.png and /dev/null differ diff --git a/assets/screenshots/info-tab.png b/assets/screenshots/info-tab.png new file mode 100644 index 0000000..1a6769e Binary files /dev/null and b/assets/screenshots/info-tab.png differ diff --git a/assets/screenshots/recheck-tab.png b/assets/screenshots/recheck-tab.png new file mode 100644 index 0000000..b96a00b Binary files /dev/null and b/assets/screenshots/recheck-tab.png differ diff --git a/assets/screenshots/torrentinfo.png b/assets/screenshots/torrentinfo.png deleted file mode 100644 index 84c9e3a..0000000 Binary files a/assets/screenshots/torrentinfo.png and /dev/null differ diff --git a/coverage.xml b/coverage.xml index c814c9b..f90a6ea 100644 --- a/coverage.xml +++ b/coverage.xml @@ -1,5 +1,5 @@ - + @@ -1822,20 +1822,6 @@ - - - - - - - - - - - - - - @@ -1843,27 +1829,34 @@ + + + + + + - - + + + @@ -1875,16 +1868,31 @@ + + + + + + + - - + - + + + + + + + + + + @@ -2036,11 +2044,11 @@ - - - - - + + + + + diff --git a/torrentfileQt/magnetTab.py b/torrentfileQt/magnetTab.py index e285578..9cb174b 100644 --- a/torrentfileQt/magnetTab.py +++ b/torrentfileQt/magnetTab.py @@ -35,24 +35,46 @@ def __init__(self, parent=None): """Initialize the widget form for creating magnet URI's from a metafile.""" super().__init__(parent=parent) self.window = parent.window + self.setStyleSheet(""" + QLabel { + font-size: 14pt; + font-weight: bold; + } + QLineEdit { + margin: 15px; + padding: 5px; + font-size: 12pt; + } + QPushButton { + margin-left: 30px; + margin-right: 30px; + } + """) self.layout = QVBoxLayout() self.setLayout(self.layout) self.hlayout = QHBoxLayout() self.top_spacer = QSpacerItem(0, 50) - self.bottom_spacer = QSpacerItem(0, 400) - self.metafile_label = QLabel("Metafile", parent=self) + self.bottom_spacer = QSpacerItem(0, 100) + self.metafile_label = QLabel("Torrent Meta File", parent=self) + font = self.metafile_label.font() + font.setPointSize(12) + self.metafile_label.setFont(font) + self.magnet_label = QLabel("Magnet Link", parent=self) + self.magnet_label.setFont(font) + self.magnet_label.setAlignment(Qt.AlignmentFlag.AlignCenter) self.metafile_label.setAlignment(Qt.AlignmentFlag.AlignCenter) self.metafile_input = QLineEdit(parent=self) - self.metafile_input.setStyleSheet("QLineEdit {margin: 10px;}") + self.metafile_input.setStyleSheet("QLineEdit {margin-right: 4px;}") self.output = QLineEdit(parent=self) - self.output.setStyleSheet("QLineEdit {margin: 10px;}") self.file_button = MetafileButton(parent=self) self.submit_button = SubmitButton(parent=self) + self.hlayout = QHBoxLayout() self.hlayout.addWidget(self.metafile_input) self.hlayout.addWidget(self.file_button) self.layout.addSpacerItem(self.top_spacer) self.layout.addWidget(self.metafile_label) self.layout.addLayout(self.hlayout) + self.layout.addWidget(self.magnet_label) self.layout.addWidget(self.output) self.layout.addWidget(self.submit_button) self.layout.addSpacerItem(self.bottom_spacer) @@ -119,7 +141,7 @@ def __init__(self, parent=None): super().__init__(parent=parent) self.window = parent.window self.widget = parent - self.setText("...") + self.setText("Select File") self.setCursor(Qt.CursorShape.PointingHandCursor) self.pressed.connect(self.select_metafile) diff --git a/torrentfileQt/qss.py b/torrentfileQt/qss.py index 3fc4e72..03fc3de 100644 --- a/torrentfileQt/qss.py +++ b/torrentfileQt/qss.py @@ -445,16 +445,14 @@ } QTableWidget { - background-color: #5a5a5a; - color: #ccc; - border-color: #e57e22; + color: #fff; + border-color: #f71; border-width: 2px; border-style: ridge; border-radius: 4px; margin: 10px; font-size: 11pt; selection-background-color: #3a3a3a; - selection-color: #fff; gridline-color: #ac4a02; } @@ -463,7 +461,8 @@ } QTableWidget::item:hover { - background-color: #225; + background-color: #7c7d7b; + border: dotted #ded 1px; } QTableWidget QTableCornerButton::section{ diff --git a/torrentfileQt/window.py b/torrentfileQt/window.py index 4f1a53b..b3b5349 100644 --- a/torrentfileQt/window.py +++ b/torrentfileQt/window.py @@ -63,7 +63,7 @@ def __init__(self, parent=None, app=None): self.setWindowTitle("TorrentfileQt") self.setWindowIcon(self.icon) self.setMenuBar(self.menubar) - self.resize(750, 600) + self.resize(700, 600) self._setupUI() self.settings = {"theme": dark_theme} self.setStyleSheet(self.settings.get("theme"))