mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86b4f023ac | |||
| 006da55aa0 | |||
| 214a389ad3 | |||
| d4005d7e86 |
@@ -67,7 +67,7 @@ def settings_dialog(self):
|
|||||||
|
|
||||||
transparent_window_checkbox = QCheckBox()
|
transparent_window_checkbox = QCheckBox()
|
||||||
transparent_window_container.setLayout(transparent_window_layout)
|
transparent_window_container.setLayout(transparent_window_layout)
|
||||||
transparent_window_layout.addWidget(QLabel("Window Transparency (requires restart): "))
|
transparent_window_layout.addWidget(QLabel("Window Transparency (requires restart) (Linux/MacOS only): "))
|
||||||
|
|
||||||
transparent_window_layout.addStretch()
|
transparent_window_layout.addStretch()
|
||||||
transparent_window_checkbox.setChecked(state.window_transparency)
|
transparent_window_checkbox.setChecked(state.window_transparency)
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
|
|
||||||
# Table Widget for Item List
|
# Table Widget for Item List
|
||||||
self.qtablewidget = QTableWidget()
|
self.qtablewidget = QTableWidget()
|
||||||
|
|
||||||
self.qtablewidget.setColumnCount(2)
|
self.qtablewidget.setColumnCount(2)
|
||||||
self.qtablewidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
self.qtablewidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||||
self.qtablewidget.verticalHeader().setVisible(False)
|
self.qtablewidget.verticalHeader().setVisible(False)
|
||||||
@@ -206,8 +206,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
status = magnetdl.status()
|
status = magnetdl.status()
|
||||||
|
|
||||||
if col == 0:
|
if col == 0:
|
||||||
is_paused = magnetdl.status().paused
|
pass
|
||||||
return "▶︎" if is_paused else "⏸︎"
|
|
||||||
elif col == 1:
|
elif col == 1:
|
||||||
return status.name if status.has_metadata else "Fetching metadata..."
|
return status.name if status.has_metadata else "Fetching metadata..."
|
||||||
elif col == 2:
|
elif col == 2:
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ from PySide6 import QtWidgets
|
|||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
import qdarktheme
|
import qdarktheme
|
||||||
import threading
|
import threading
|
||||||
|
import platform
|
||||||
import signal
|
import signal
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
@@ -21,18 +22,16 @@ parser.add_argument("--debug", action="store_true")
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
def run_gui():
|
def run_gui():
|
||||||
app = QtWidgets.QApplication([])
|
app = QtWidgets.QApplication.instance() or QtWidgets.QApplication(sys.argv)
|
||||||
|
qdarktheme.setup_theme("auto")
|
||||||
widget = MainWindow()
|
widget = MainWindow()
|
||||||
if state.window_transparency is True:
|
|
||||||
qdarktheme.setup_theme("auto", custom_colors={"background": "#00000000"})
|
if state.window_transparency and platform.system() != "Windows":
|
||||||
widget.setWindowFlags(Qt.WindowType.FramelessWindowHint)
|
|
||||||
widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
else:
|
widget.setStyleSheet("MainWindow { background: transparent; }")
|
||||||
qdarktheme.setup_theme("auto")
|
|
||||||
|
|
||||||
from core.utils.general.logs import set_main_window
|
from core.utils.general.logs import set_main_window
|
||||||
set_main_window(widget)
|
set_main_window(widget)
|
||||||
|
|
||||||
widget.show()
|
widget.show()
|
||||||
sys.exit(app.exec())
|
sys.exit(app.exec())
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ PySide6==6.10.1
|
|||||||
beautifulsoup4==4.13.5
|
beautifulsoup4==4.13.5
|
||||||
darkdetect==0.7.1
|
darkdetect==0.7.1
|
||||||
pyinstaller==6.15.0
|
pyinstaller==6.15.0
|
||||||
pyqtdarktheme==2.1.0
|
PyQtDarkTheme-fork==2.3.4
|
||||||
aiohttp==3.13.0
|
aiohttp==3.13.0
|
||||||
plyer==2.1.0
|
plyer==2.1.0
|
||||||
psutil==7.1.0
|
psutil==7.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user