zhiyiYo / PyQt-Frameless-Window

A cross-platform frameless window based on pyqt5, support Win32, Linux and macOS.
https://pyqt-frameless-window.readthedocs.io
GNU General Public License v3.0
473 stars 66 forks source link

Mica Title bar on Latest windows update #53

Closed Cowski0 closed 1 year ago

Cowski0 commented 1 year ago

When i test my app on the latest windows update, a title bar shows up, i was wondering if there was a way to make this transparent, as it ruins some past apps, thanks. Screenshot_20230209_091241


import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication
from qframelesswindow import AcrylicWindow

class Window(AcrylicWindow):

    def __init__(self, parent=None):
        super().__init__(parent=parent)
        self.setWindowTitle("Acrylic Window")
        self.titleBar.raise_()
        self.windowEffect.setMicaEffect(self.winId(), True)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    demo = Window()
    demo.show()
    sys.exit(app.exec_())
zhiyiYo commented 1 year ago

Please provide your system version

Cowski0 commented 1 year ago

22H2 2261.1105

zhiyiYo commented 1 year ago

My Windows11 version is 22H2 22623.1250 and does not have this problem. see https://github.com/zhiyiYo/PyQt-Frameless-Window/issues/14.

Cowski0 commented 1 year ago

show accent colour was the cause of the issue, thanks