Yuhang Zhao
74d865a3e3
Fix a multi-screen bug
...
Before this patch, the maximum size of a frameless window
will be limited to the primary screen's size if the user
doesn't set a maximum window size explicitly.
It works fine on single screen cases, however, if you have
multiple screens and when you are trying to resize the window
to some size bigger than the primary screen, such as expand
it from one screen to another, the window will refuse to
continue resizing after it reaches the primary screen's size.
The solution is simple and straightforward: if the user doesn't
set the maximum window size explicitly, just don't set the maximum
size to let it can be resized without any limitations.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-16 18:13:52 +08:00
Yuhang Zhao
8ca84fd435
Fix a regression.
...
If the user set a custom title bar height, just return
the original value, don't plus the border height afterwards,
this is not what the user would want.
But if we are querying the standard value, it should be
border height + caption height.
Border width and border height don't have this issue.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-16 17:15:06 +08:00
Yuhang Zhao
9cb3392ce4
Fix system metric is double scaled
...
Fixes : #36
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-14 20:42:16 +08:00
Yuhang Zhao
9cd7e368de
Minor improvement.
...
It turns out that the final title bar height contains
the border height as well.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-14 16:27:20 +08:00
Yuhang Zhao
1822333268
Remove unnecessary cast to QWidget.
...
TO BE VARIFIED!
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-14 10:22:38 +08:00
Yuhang Zhao
5fe936f631
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-13 09:56:11 +08:00
Yuhang Zhao
ddef1cab43
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 21:20:20 +08:00
Yuhang Zhao
13e974a078
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 20:58:04 +08:00
Yuhang Zhao
f35407ce5c
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 20:34:12 +08:00
Yuhang Zhao
c783bc1fe2
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-12 11:34:41 +08:00
Yuhang Zhao
1bf0d59efa
Fix Qt5 and Qt6 build.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-07 00:29:36 +08:00
Yuhang Zhao
fd3fb7deda
Fix Qt6 build.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-06 10:31:19 +08:00
Yuhang Zhao
d06a5ccab9
Merge pull request #31 from SBG-Systems/fix_dual_screen
...
Fix object detection with dual screen
2020-11-03 14:25:03 +08:00
Yuhang Zhao
9964d97374
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-30 16:18:38 +08:00
Yuhang Zhao
f5a6493364
Minor improvements.
...
If there is a API, use API instead of reading registry.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-29 12:16:25 +08:00
Alexandre Petitjean
bf2c085519
Fix object detection with dual screen
2020-10-28 17:06:06 +01:00
Yuhang Zhao
c302bf331c
Fix regression.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-26 18:12:51 +08:00
Yuhang Zhao
1cc4d92aca
Minor improvements.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-26 17:36:40 +08:00
Yuhang Zhao
10876e6f0b
Fix DPI functions are link to system libraries directly.
...
Forgot to change them during refactor.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-25 11:26:06 +08:00
Yuhang Zhao
7c255ea79e
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-25 09:57:11 +08:00
Yuhang Zhao
955961cf9b
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-24 23:45:23 +08:00
Yuhang Zhao
b21f1023b5
Fix wrong size of the 3 system buttons.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-22 16:36:00 +08:00
Yuhang Zhao
6a12cb1a30
Minor improvements.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-21 21:21:56 +08:00
Yuhang Zhao
8c21be9e64
Fixed two issues.
...
1. The border color on Win10 when in light theme is also #707070 , not pure white.
2. The brush color of the Acrylic effect is reversed before, it is now correct.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-21 11:10:51 +08:00
Yuhang Zhao
a8f7fdef1d
A little simplify.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-20 14:07:32 +08:00
Yuhang Zhao
17b35173ef
Minor improvements to the Win32Demo project.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-20 09:55:20 +08:00
Yuhang Zhao
47910161c9
Fix build for old Qt versions.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-19 18:24:38 +08:00
Yuhang Zhao
72db8e7043
Improve the Win32Demo project.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-19 14:54:13 +08:00
Yuhang Zhao
f38b86e992
Fix the context menu issue.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-18 11:53:04 +08:00
Yuhang Zhao
d3f58ae98f
Use blur instead of Acrylic on Win10.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-17 20:19:52 +08:00
Yuhang Zhao
226bc52ece
Fix the acrylic effect.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-17 18:09:59 +08:00
Yuhang Zhao
073ad117ba
Minor tweaks.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-17 13:08:47 +08:00
Yuhang Zhao
ff10ae21f4
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-16 20:02:38 +08:00
Yuhang Zhao
208e831fc5
Add a full-featured win32 example.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-16 15:48:01 +08:00
Yuhang Zhao
c95e8fc806
Fix direct link build for WNEF.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-16 10:32:53 +08:00
Yuhang Zhao
e1656a9636
Move all function pointers to the core data struct.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 22:00:13 +08:00
Yuhang Zhao
904bbb8576
Remove QPointer usages.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 21:06:58 +08:00
Yuhang Zhao
b736936a8a
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-15 10:41:35 +08:00
Yuhang Zhao
7aae486ba9
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-14 14:06:12 +08:00
Yuhang Zhao
09100a1845
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-14 12:39:23 +08:00
Yuhang Zhao
eb1c189c0f
Fix the flickering problem.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-13 20:30:24 +08:00
Yuhang Zhao
acb99935c0
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-12 20:09:21 +08:00
Yuhang Zhao
756354a98c
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-12 19:06:00 +08:00
Yuhang Zhao
54d208ec5c
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-12 18:01:32 +08:00
Yuhang Zhao
50036371a3
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-11 11:35:57 +08:00
Yuhang Zhao
e14f027277
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-11 11:23:28 +08:00
Yuhang Zhao
7880fbfb16
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-11 10:36:20 +08:00
Yuhang Zhao
4f06aa1206
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-11 10:24:54 +08:00
Yuhang Zhao
fc1566897f
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-10 20:51:07 +08:00
Yuhang Zhao
3ffc8fd681
Update.
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-10 17:18:17 +08:00