diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 663d370..67ea10b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -530,7 +530,10 @@ jobs: # 必须先于 Qt 库收集:下面第 2 步要从「主程序 + 所有插件」的 ldd 里收集 # 它们依赖的 libQt6*,插件得先在位才能被 ldd 扫到。 mkdir -p dist/bin/plugins - for p in platforms platformthemes imageformats multimedia tls xcbglintegrations; do + # platforminputcontexts:输入法前端插件(compose/ibus)。缺失则 + # QT_IM_MODULE=ibus 的目标机上无法唤起输入法、中文无法输入 + # (Qt6 已移除 XIM 兜底,不能省)。 + for p in platforms platformthemes platforminputcontexts imageformats multimedia tls xcbglintegrations; do [ -d "$QT_PLUGINS/$p" ] && cp -r "$QT_PLUGINS/$p" dist/bin/plugins/ done diff --git a/README.md b/README.md index caf7b68..50e5ebc 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ cmake --build build --config Release -j$(sysctl -n hw.ncpu) ```bash # 安装系统依赖 sudo apt-get install -y build-essential cmake pkg-config \ - qt6-base-dev qt6-tools-dev libgl1-mesa-dev + qt6-base-dev qt6-tools-dev libgl1-mesa-dev qt6-multimedia-dev qt6-serialport-dev # 安装 vcpkg(如未安装) git clone https://github.com/microsoft/vcpkg.git diff --git a/src/ui/status_box_item.cpp b/src/ui/status_box_item.cpp index 7008711..ac9f445 100644 --- a/src/ui/status_box_item.cpp +++ b/src/ui/status_box_item.cpp @@ -31,11 +31,13 @@ StatusBoxItem::StatusBoxItem(const QString &iconColor, const QString &iconChar, "border: none; padding: 0px;").arg(iconColor)); layout->addWidget(m_iconLabel); - // 文字标签 + // 文字标签。颜色用 palette(window-text) 跟随主题调色板:亮色主题下为深色、 + // 暗色主题下为浅色,随 ThemeManager 应用主题自动切换。 + // (此前硬编码 #cccccc,亮色主题浅底上几乎不可见。) m_textLabel = new QLabel(text, this); m_textLabel->setStyleSheet(QStringLiteral( - "color: #cccccc; background: transparent; border: none; " - "font-size: 11px; padding: 0px;")); + "color: palette(window-text); background: transparent; " + "border: none; font-size: 11px; padding: 0px;")); layout->addWidget(m_textLabel); }