Skip to content

Commit

Permalink
Updates Magnet tab layout
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Mar 31, 2022
1 parent eabe9f6 commit f2f22fe
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 42 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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)
Binary file removed assets/screenshots/checktorrent.png
Binary file not shown.
Binary file added assets/screenshots/create-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/screenshots/createtorrent.png
Binary file not shown.
Binary file added assets/screenshots/edit-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/screenshots/edittorrent.png
Binary file not shown.
Binary file added assets/screenshots/info-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/recheck-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/screenshots/torrentinfo.png
Binary file not shown.
58 changes: 33 additions & 25 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="6.3.2" timestamp="1648697057692" lines-valid="2032" lines-covered="2032" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="6.3.2" timestamp="1648757446830" lines-valid="2040" lines-covered="2040" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -1822,48 +1822,41 @@
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="38" hits="1"/>
<line number="39" hits="1"/>
<line number="40" hits="1"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="44" hits="1"/>
<line number="45" hits="1"/>
<line number="46" hits="1"/>
<line number="47" hits="1"/>
<line number="48" hits="1"/>
<line number="49" hits="1"/>
<line number="50" hits="1"/>
<line number="51" hits="1"/>
<line number="52" hits="1"/>
<line number="53" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="1"/>
<line number="56" hits="1"/>
<line number="57" hits="1"/>
<line number="58" hits="1"/>
<line number="59" hits="1"/>
<line number="60" hits="1"/>
<line number="61" hits="1"/>
<line number="62" hits="1"/>
<line number="63" hits="1"/>
<line number="64" hits="1"/>
<line number="65" hits="1"/>
<line number="66" hits="1"/>
<line number="67" hits="1"/>
<line number="68" hits="1"/>
<line number="69" hits="1"/>
<line number="70" hits="1"/>
<line number="71" hits="1"/>
<line number="72" hits="1"/>
<line number="73" hits="1"/>
<line number="74" hits="1"/>
<line number="75" hits="1"/>
<line number="76" hits="1"/>
<line number="77" hits="1"/>
<line number="78" hits="1"/>
<line number="79" hits="1"/>
<line number="80" hits="1"/>
<line number="81" hits="1"/>
<line number="82" hits="1"/>
<line number="83" hits="1"/>
<line number="84" hits="1"/>
<line number="85" hits="1"/>
<line number="86" hits="1"/>
<line number="87" hits="1"/>
<line number="88" hits="1"/>
<line number="89" hits="1"/>
<line number="91" hits="1"/>
<line number="93" hits="1"/>
<line number="94" hits="1"/>
Expand All @@ -1875,16 +1868,31 @@
<line number="102" hits="1"/>
<line number="103" hits="1"/>
<line number="104" hits="1"/>
<line number="105" hits="1"/>
<line number="106" hits="1"/>
<line number="107" hits="1"/>
<line number="110" hits="1"/>
<line number="113" hits="1"/>
<line number="115" hits="1"/>
<line number="116" hits="1"/>
<line number="117" hits="1"/>
<line number="118" hits="1"/>
<line number="119" hits="1"/>
<line number="120" hits="1"/>
<line number="121" hits="1"/>
<line number="122" hits="1"/>
<line number="123" hits="1"/>
<line number="124" hits="1"/>
<line number="125" hits="1"/>
<line number="126" hits="1"/>
<line number="136" hits="1"/>
<line number="129" hits="1"/>
<line number="139" hits="1"/>
<line number="141" hits="1"/>
<line number="142" hits="1"/>
<line number="143" hits="1"/>
<line number="144" hits="1"/>
<line number="145" hits="1"/>
<line number="146" hits="1"/>
<line number="148" hits="1"/>
<line number="158" hits="1"/>
</lines>
</class>
<class name="menu.py" filename="torrentfileQt/menu.py" complexity="0" line-rate="1" branch-rate="0">
Expand Down Expand Up @@ -2036,11 +2044,11 @@
<line number="22" hits="1"/>
<line number="24" hits="1"/>
<line number="27" hits="1"/>
<line number="603" hits="1"/>
<line number="706" hits="1"/>
<line number="721" hits="1"/>
<line number="736" hits="1"/>
<line number="744" hits="1"/>
<line number="602" hits="1"/>
<line number="705" hits="1"/>
<line number="720" hits="1"/>
<line number="735" hits="1"/>
<line number="743" hits="1"/>
</lines>
</class>
<class name="version.py" filename="torrentfileQt/version.py" complexity="0" line-rate="1" branch-rate="0">
Expand Down
32 changes: 27 additions & 5 deletions torrentfileQt/magnetTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down
9 changes: 4 additions & 5 deletions torrentfileQt/qss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -463,7 +461,8 @@
}
QTableWidget::item:hover {
background-color: #225;
background-color: #7c7d7b;
border: dotted #ded 1px;
}
QTableWidget QTableCornerButton::section{
Expand Down
2 changes: 1 addition & 1 deletion torrentfileQt/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit f2f22fe

Please sign in to comment.