mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
fix: disable transparency on windows as it is broken
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -24,11 +25,11 @@ def run_gui():
|
|||||||
app = QtWidgets.QApplication([])
|
app = QtWidgets.QApplication([])
|
||||||
widget = MainWindow()
|
widget = MainWindow()
|
||||||
if state.window_transparency is True:
|
if state.window_transparency is True:
|
||||||
qdarktheme.setup_theme("auto", custom_colors={"background": "#00000000"})
|
if platform.system() != "Windows":
|
||||||
widget.setWindowFlags(Qt.WindowType.FramelessWindowHint)
|
qdarktheme.setup_theme("auto", custom_colors={"background": "#00000000"})
|
||||||
widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
else:
|
else:
|
||||||
qdarktheme.setup_theme("auto")
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user