From ba63017a376265495267972433ca2725dcceccdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=AD=90=E6=98=82?= <929110464@qq.com> Date: Mon, 27 Oct 2025 21:35:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(word=5Fmain=5Fwindow):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=8F=E5=9C=A8macOS=E4=B8=8A=E7=9A=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置menubar.setNativeMenuBar(False)以确保菜单栏样式在macOS上正确应用 --- src/word_main_window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/word_main_window.py b/src/word_main_window.py index 91a4217..3a18006 100644 --- a/src/word_main_window.py +++ b/src/word_main_window.py @@ -247,6 +247,7 @@ class WordStyleMainWindow(QMainWindow): def create_menu_bar(self): """创建菜单栏""" menubar = self.menuBar() + menubar.setNativeMenuBar(False) menubar.setStyleSheet(""" QMenuBar { background-color: #f3f2f1;