Yuhang Zhao
d46ec0c1b6
wip
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-03-15 13:02:59 +08:00
Yuhang Zhao
f68665298b
wip
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-03-14 20:59:38 +08:00
Yuhang Zhao
d0e19a2b1e
wip
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-03-12 16:58:58 +08:00
Yuhang Zhao
0e4f95fe2c
wip
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-03-11 16:23:12 +08:00
Yuhang Zhao
8e69a57039
wip
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-03-11 09:33:27 +08:00
Yuhang Zhao
330669e34a
Quality improvements
...
1. Use native frame color in the MainWindow example, just like the Widget example. Fixes #87
2. Rename setHitTestVisibleInChrome() to setHitTestVisible(): This name was taken from Microsoft's WindowChrome class in WPF. Now they removed the legacy "Chrome" suffix in their new products, so we removed it as well.
3. Fix build with Qt older than 5.15: Q_NAMESPACE_EXPORT was introduced in Qt 5.14
4. Removed code that supports native frame: they are just leftovers of the previous refactoring.
4. Correctly detect SetWindowLongPtrW() and GetWindowLongPtrW() 's operation result: they won't modify the Last Error state on success, so we have to set Last Error state to ERROR_SUCCESS before calling them to make sure we get the correct error code.
5. Remove implicitly conversions, use explicit casts where possible
6. Fixed FormatMessage() usage, correctly retrieve the error message: According to MSDN, we should pass the address of a LPWSTR, not the LPWSTR itself.
7. Removed the special handing of WM_SIZE: It turns out that this handling is not needed at all and it's causing new issues, so just remove it.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-10-08 15:43:33 +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
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
c29c4cc409
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-28 11:08:12 +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
987a8397dc
Fix old Qt build
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-02 13:26:40 +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
38a64e25b3
Minor cleanup
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-05-31 12:02:43 +08:00
Yuhang Zhao
4139cf0ab2
redesign API
2021-05-31 11:52:32 +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
95d72997ed
Update comment
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-01 09:56:27 +08:00
Yuhang Zhao
ef34a7c699
Minor fixes
...
1. Fix MainWindow example issue
2. Add a comment about the inverted argument
3. Fix some memory leaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-01 09:52:38 +08:00
Yuhang Zhao
d4a5239d26
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-26 09:27:43 +08:00
Yuhang Zhao
43d0e5f95d
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-21 20:38:33 +08:00
Yuhang Zhao
8ebf9cfc58
Disable acrylic blur by default
...
If the user want to use it, the user should enable it.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-21 11:13:09 +08:00
Yuhang Zhao
39232babdd
Add a warning message
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-21 10:43:22 +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
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
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
bc9edaf78a
Minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-09 20:24:51 +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