Skip to content

Commit 42587e9

Browse files
committed
Merge branch 'marcus/bluetooth_0412' into 'main'
[Frontend & Backend] Implemented: Bluetooth flyout See merge request MarcusPy827/husky-panel!33
2 parents 7017a53 + 90b2735 commit 42587e9

103 files changed

Lines changed: 6154 additions & 514 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog | 更新信息
22
## VERSION 0.9.5 (UNSTABLE/WIP)
3+
* marcus/bluetooth_0412
4+
* Implemented a bluetooth control panel.
5+
* 新增了蓝牙控制面板
6+
* Fixed main window translation missing issue.
7+
* 修复了主窗口关于「翻译缺失」的报错
8+
39
* marcus/volume_control_0411
410
* Implemented a volume control panel.
511
* 新增了音量控制面板

‎CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ set(BACKEND_SOURCES
179179
src/info_server/session_handler/session_handler.cc
180180
src/info_server/volume_control/volume_control.h
181181
src/info_server/volume_control/volume_control.cc
182+
src/info_server/bluetooth/bluetooth_info.h
183+
src/info_server/bluetooth/bluetooth_info.cc
182184
)
183185

184186
set(FRONTEND_SOURCES
@@ -207,6 +209,8 @@ set(FRONTEND_SOURCES
207209
src/components/calendar/calendar.cc
208210
src/components/volume_control/volume_control_handler.h
209211
src/components/volume_control/volume_control_handler.cc
212+
src/components/bluetooth/bluetooth_handler.h
213+
src/components/bluetooth/bluetooth_handler.cc
210214
)
211215

212216
set(CONFIG_LOADER_SOURCES

‎README.md‎

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[简体中文](./README.zh.md) | English
22

3-
VERSION 0.9.3
3+
VERSION 0.9.4
44

55
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
66
<a id="readme-top"></a>
@@ -22,7 +22,7 @@ VERSION 0.9.3
2222
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
2323
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
2424
-->
25-
![Static Badge](https://img.shields.io/badge/Qt-Target%20version%206.10.2-green?style=flat-square&logo=qt&link=qt.io) ![Static Badge](https://img.shields.io/badge/C%2B%2B%20standard-20-blue?style=flat-square&logo=c%2B%2B&link=https%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2F20.html) ![Static Badge](https://img.shields.io/badge/Material%20Symbols%20version-4.0.0-yellow?style=flat-square&logo=materialdesign&color=%236750A4&link=https%3A%2F%2Ffonts.google.com%2Ficons) ![Static Badge](https://img.shields.io/badge/Version-0.9_alpha-yellow?style=flat-square) ![Static Badge](https://img.shields.io/badge/Made%20with-Love-red?style=flat-square)
25+
![Static Badge](https://img.shields.io/badge/Qt-Target%20version%206.10.2-green?style=flat-square&logo=qt&link=qt.io) ![Static Badge](https://img.shields.io/badge/C%2B%2B%20standard-17-blue?style=flat-square&logo=c%2B%2B&link=https%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2F17.html) ![Static Badge](https://img.shields.io/badge/Material%20Symbols%20version-4.0.0-yellow?style=flat-square&logo=materialdesign&color=%236750A4&link=https%3A%2F%2Ffonts.google.com%2Ficons) ![Static Badge](https://img.shields.io/badge/Version-0.9_alpha-yellow?style=flat-square) ![Static Badge](https://img.shields.io/badge/Made%20with-Love-red?style=flat-square)
2626

2727

2828

@@ -89,7 +89,7 @@ VERSION 0.9.3
8989

9090
<!-- ABOUT THE PROJECT -->
9191
## About The Project
92-
`HuskyPanel` is another shell bar panel for Linux Wayland session. This is an experimental project that trys to utilize QWidget to bring a Material design 3 styled UI to your desktop environment.
92+
`HuskyPanel` is another shell bar panel for Linux Wayland session. This is an experimental project that uses Qt Quick (QML) to bring a Material Design 3 styled UI to your desktop environment.
9393

9494
Currenty we are focusing on KWin/KDE Plasma 6.
9595

@@ -115,8 +115,6 @@ Currenty we are focusing on KWin/KDE Plasma 6.
115115

116116
<!-- GETTING STARTED -->
117117
## Getting Started
118-
> ⚠️ **WARNING**: For the Debian-based distro part, I haven't finished writting the documentation yet, please ignore that part for now.
119-
120118
Ensure that you have Qt version 6.5+ avaliable in your system. This bar uses a new API provided by Qt 6.5+ to aware the change in light/dark scheme. Without the proper version of Qt, the bar could NOT be complied.
121119

122120
Currently only Plasma 6 is supported, we recommend you to login a Plasma 6.5 session to use this bar. Wlroots WM support is planned.
@@ -178,10 +176,19 @@ If more than one version is printed, your system is at risk of ABI breakage —
178176
> Fedora packages `layer-shell-qt` and ECM from KDE Frameworks, so you generally do **not** need `-DUSE_VENDORED_LIBS=ON` or the manual ECM build step.
179177
180178
##### On OpenSUSE
179+
> **Note**: OpenSUSE Tumbleweed is recommended. Leap may ship Qt versions that are too old.
180+
181181
```bash
182-
sudo zypper in wayland-devel wayland-protocols-devel libxkbcommon-devel
182+
sudo zypper in \
183+
libwayland-devel wayland-protocols-devel libxkbcommon-devel \
184+
qt6-base-devel qt6-wayland-devel qt6-declarative-devel qt6-tools-devel \
185+
layer-shell-qt-devel libdbusmenu-lxqt-devel \
186+
kf6-kservice-devel extra-cmake-modules \
187+
libpulse-devel
183188
```
184189

190+
> If `layer-shell-qt-devel` or `libdbusmenu-lxqt-devel` are not available, pass `-DUSE_VENDORED_LIBS=ON` at configure time and build ECM first (see [Building ECM](#building-ecm-only-needed-when-use_vendored_libson)).
191+
185192
##### On Debian-Based Distros
186193
> ⚠️ **Note**: Ubuntu LTS releases (e.g. 24.04) ship Qt 6.4, which is **too old** — this project requires Qt 6.5+. You need at least **Ubuntu 24.10** or **Kubuntu 24.10** (or newer) to build. If you are on an LTS release, consider using [KDE Neon](https://neon.kde.org/) which ships up-to-date Qt and KDE Frameworks.
187194
@@ -262,10 +269,10 @@ For more details about the plugin, read the README in `plugins/kde/app-bridge`.
262269
- [X] KWin support (via KWin script)
263270
- [X] Niri/Hyprland support
264271
- [ ] Notification manager
265-
- [ ] Network manager
266-
- [ ] Battery manager
267-
- [ ] Volume manager
268-
- [ ] Bluetooth manager
272+
- [X] Network manager
273+
- [X] Battery manager
274+
- [X] Volume manager
275+
- [X] Bluetooth manager
269276
- [X] App drawer
270277

271278
<p align="right">(<a href="#readme-top">back to top</a>)</p>
@@ -278,7 +285,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md).
278285

279286
### Top contributors
280287

281-
<a href="https://github.com/github_username/MarcusPy827/Husky-Panel/contributors">
288+
<a href="https://github.com/MarcusPy827/Husky-Panel/contributors">
282289
<img src="https://contrib.rocks/image?repo=MarcusPy827/Husky-Panel" alt="contrib.rocks image" />
283290
</a>
284291

‎README.zh.md‎

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
简体中文 | [English](./README.md)
22

3-
VERSION 0.9.3
3+
VERSION 0.9.4
44

55
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
66
<a id="readme-top"></a>
@@ -22,7 +22,7 @@ VERSION 0.9.3
2222
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
2323
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
2424
-->
25-
![Static Badge](https://img.shields.io/badge/Qt-Target%20version%206.10.2-green?style=flat-square&logo=qt&link=qt.io) ![Static Badge](https://img.shields.io/badge/C%2B%2B%20standard-20-blue?style=flat-square&logo=c%2B%2B&link=https%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2F20.html) ![Static Badge](https://img.shields.io/badge/Material%20Symbols%20version-4.0.0-yellow?style=flat-square&logo=materialdesign&color=%236750A4&link=https%3A%2F%2Ffonts.google.com%2Ficons) ![Static Badge](https://img.shields.io/badge/Version-0.9_alpha-yellow?style=flat-square) ![Static Badge](https://img.shields.io/badge/Made%20with-Love-red?style=flat-square)
25+
![Static Badge](https://img.shields.io/badge/Qt-Target%20version%206.10.2-green?style=flat-square&logo=qt&link=qt.io) ![Static Badge](https://img.shields.io/badge/C%2B%2B%20standard-17-blue?style=flat-square&logo=c%2B%2B&link=https%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2F17.html) ![Static Badge](https://img.shields.io/badge/Material%20Symbols%20version-4.0.0-yellow?style=flat-square&logo=materialdesign&color=%236750A4&link=https%3A%2F%2Ffonts.google.com%2Ficons) ![Static Badge](https://img.shields.io/badge/Version-0.9_alpha-yellow?style=flat-square) ![Static Badge](https://img.shields.io/badge/Made%20with-Love-red?style=flat-square)
2626

2727

2828

@@ -89,7 +89,7 @@ VERSION 0.9.3
8989

9090
<!-- ABOUT THE PROJECT -->
9191
## 关于项目
92-
`HuskyPanel`是又一款Linux Wayland会话上的Shell状态栏,这是一个尝试使用QWidget的实验性项目,目的是为您的桌面环境带来Material Design 3风格的状态栏与面板。
92+
`HuskyPanel`是又一款Linux Wayland会话上的Shell状态栏,这是一个使用Qt Quick(QML)构建的实验性项目,目的是为您的桌面环境带来Material Design 3风格的状态栏与面板。
9393

9494
当前我们主要支持的平台是KWin/KDE Plasma 6。
9595

@@ -115,8 +115,6 @@ VERSION 0.9.3
115115

116116
<!-- GETTING STARTED -->
117117
## 快速上手
118-
> ⚠️ **警告**:对于基于Debian的发行版的文档还没有施工完成,目前请忽略该部分。
119-
120118
请确保本机有可用的Qt 6.5+,状态栏使用了此版本新引入的API以感知系统深色/浅色模式变化,如果Qt版本低于此版本,则此项目将无法编译。
121119

122120
当前本项目仅支持Plasma 6桌面,我们推荐的版本是Plasma 6.5。Wlroots系的窗口管理器支持在规划之中。
@@ -213,11 +211,20 @@ rpm -qa 'qt6*' --qf '%{NAME}-%{VERSION}\n' | awk -F- '{print $NF}' | sort -u
213211
> Fedora 的 KDE Frameworks 包中已经包含 `layer-shell-qt` 和 ECM,因此通常**不需要**传入 `-DUSE_VENDORED_LIBS=ON`,也不需要手动构建 ECM。
214212
215213
##### 在OpenSUSE上
214+
> **注意**:推荐使用 OpenSUSE Tumbleweed,Leap 发行版附带的 Qt 版本可能过旧。
215+
216216
```bash
217-
sudo zypper in wayland-devel wayland-protocols-devel libxkbcommon-devel
217+
sudo zypper in \
218+
libwayland-devel wayland-protocols-devel libxkbcommon-devel \
219+
qt6-base-devel qt6-wayland-devel qt6-declarative-devel qt6-tools-devel \
220+
layer-shell-qt-devel libdbusmenu-lxqt-devel \
221+
kf6-kservice-devel extra-cmake-modules \
222+
libpulse-devel
218223
```
219224

220-
##### 在基于Debian的发行半上
225+
> 如果 `layer-shell-qt-devel` 或 `libdbusmenu-lxqt-devel` 在软件源中不可用,请在配置时传入 `-DUSE_VENDORED_LIBS=ON` 并先构建 ECM(参见[构建 ECM](#构建ecm仅在-use_vendored_libson-时需要))。
226+
227+
##### 在基于Debian的发行版上
221228
> ⚠️ **注意**:Ubuntu LTS 版本(如 24.04)自带的 Qt 版本为 6.4,**过于陈旧**——本项目要求 Qt 6.5+。你至少需要 **Ubuntu 24.10** 或 **Kubuntu 24.10**(或更新版本)才能构建。如果你使用的是 LTS 版本,建议考虑 [KDE Neon](https://neon.kde.org/),它提供最新的 Qt 和 KDE Frameworks。
222229
223230
> Ubuntu / Kubuntu **没有**提供 `layer-shell-qt` 和 `libdbusmenu-lxqt` 的开发包,因此你**必须**使用 `-DUSE_VENDORED_LIBS=ON`,并且需要先构建 ECM(参见上方的[构建 ECM](#构建ecm仅在-use_vendored_libson-时需要) 章节)。
@@ -297,10 +304,10 @@ KWin app-bridge 脚本插件会在执行 `cmake --install .`(见上方)时
297304
- [X] KWin支持(通过KWin脚本)
298305
- [X] Niri/Hyprland支持
299306
- [ ] 通知管理器
300-
- [ ] 网络管理器
301-
- [ ] 电量管理器
302-
- [ ] 音量管理器
303-
- [ ] 蓝牙管理器
307+
- [X] 网络管理器
308+
- [X] 电量管理器
309+
- [X] 音量管理器
310+
- [X] 蓝牙管理器
304311
- [X] 应用抽屉
305312

306313
<p align="right">(<a href="#readme-top">返回顶部</a>)</p>
@@ -313,7 +320,7 @@ KWin app-bridge 脚本插件会在执行 `cmake --install .`(见上方)时
313320

314321
### 最活跃的贡献者
315322

316-
<a href="https://github.com/github_username/MarcusPy827/Husky-Panel/contributors">
323+
<a href="https://github.com/MarcusPy827/Husky-Panel/contributors">
317324
<img src="https://contrib.rocks/image?repo=MarcusPy827/Husky-Panel" alt="contrib.rocks image" />
318325
</a>
319326

0 commit comments

Comments
 (0)