Commit Graph

20 Commits

Author SHA1 Message Date
Yuhang Zhao 5938fcb475 Internal refactor
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-25 14:17:32 +08:00
Yuhang Zhao 28144b1e74 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-09 13:27:11 +08:00
Yuhang Zhao e0b5244420 Rename function
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-01 13:10:05 +08:00
Yuhang Zhao 4139cf0ab2 redesign API 2021-05-31 11:52:32 +08:00
Yuhang Zhao fca63dbf54 Minor improvement
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-28 11:39:51 +08:00
Yuhang Zhao cdb7b87eb4 Remove acrylic related things
They'll be moved to a separate repo instead

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-02 12:02:46 +08:00
Yuhang Zhao 16f7d78035 Win32: Fix the flickering issue when resizing
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-31 20:35:21 +08:00
Yuhang Zhao 42ee3f8a91 Minor improvements
1. QScopedPointer's get() function was introduced in Qt 5.11, too new, don't use it, use data() instead. They are the same.
2. Fixed a typo.
3. Use QGuiApplication::isRightToLeft() to simplify the code.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-20 11:19:10 +08:00
Yuhang Zhao 0f699161cd Simplify code
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-18 15:58:42 +08:00
Yuhang Zhao 86dcad3f3a Simplify code
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-18 10:42:08 +08:00
Yuhang Zhao 6bc6ed63cc Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-18 09:48:55 +08:00
Yuhang Zhao 6adbefa814 Simplify code
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-18 09:12:19 +08:00
Yuhang Zhao c19a4f7f74 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-11 21:07:06 +08:00
Yuhang Zhao 21774f9fbc Disable dynamic switching of Acrylic blur and wallpaper blur
After some testing, it's found that it's not reliable.
Maybe we should use another windows message to do this?
To be investigated.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-11 09:20:09 +08:00
Yuhang Zhao c9be4858ec Use the official Acrylic blur whenever possible
And switch back to the wallpaper blur when the window is being moved or resized.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-10 17:28:48 +08:00
Yuhang Zhao a183a6d4a1 Make the wallpaper blur dynamic update
The window background will update dynamically once
it's being moved.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-10 14:18:08 +08:00
Yuhang Zhao 0931b73671 Some refactor
Rename some functions to make it more clear.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-10 10:05:23 +08:00
Yuhang Zhao 44ed5fcf3d Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-09 11:32:30 +08:00
Yuhang Zhao 21f1f69684 Use wallpaper blur by default
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-08 21:10:11 +08:00
Yuhang Zhao f70158a276 Add cross-platform Acrylic Effect
Currently still lacking Linux and macOS support,
but will be added sooner.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-08 14:10:55 +08:00