Yuhang Zhao
8367331278
Win32: move all win32 staff to one header
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-05 13:24:12 +08:00
Yuhang Zhao
a5a5942d80
Win32: Add some useful functions back
...
1. Also rename some leftovers to more appropriate names
2. Be more verbose to help debugging
TODO: improve widget example, make use of the these functions
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-05 09:20:19 +08:00
Yuhang Zhao
bc8a70dbb2
Win32: Fix window content will be cut-off for some pixels when window is fullscreened
...
1. Fix that bug
2. Some adjustments of the variable names to make them more clear
3. Some tweaks to the title bar height value
TODO: Add a button to switch between fullscreen and windowed mode for the widget example
TODO: Add a title text to the widget example
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-04 22:40:13 +08:00
Yuhang Zhao
2c106ffef9
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-09-01 15:26:36 +08:00
Yuhang Zhao
523e35fdb1
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-22 15:14:42 +08:00
Yuhang Zhao
89027ec0c8
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-11 19:48:02 +08:00
Yuhang Zhao
5a2d498445
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-11 17:58:47 +08:00
Yuhang Zhao
c6e5545b4d
Fixed a bug caused by typo
...
My bad
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-26 20:02:39 +08:00
Yuhang Zhao
da4269bbd6
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-23 21:05:35 +08:00
Yuhang Zhao
2b6d0fccb6
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-23 11:04:48 +08:00
Yuhang Zhao
b44cfb4474
Refactor UNIX version
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-21 17:14:55 +08:00
Yuhang Zhao
233ebba3ec
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-20 09:58:00 +08:00
Yuhang Zhao
f30339ff54
Minor cleanup
...
1. Remove unneeded functions
2. Rename some functions and variables to match their real functionality
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-19 10:43:10 +08:00
Yuhang Zhao
bdbfc96eb0
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-17 15:35:55 +08:00
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