Yuhang Zhao
2cd4d133f3
minor tweaks
2023-07-17 16:44:13 +08:00
Yuhang Zhao
d71dc75b77
mica material: fix drawing on multi-monitor scenario
2023-07-15 16:10:48 +08:00
Yuhang Zhao
d1b4aadb76
mica material: use separate thread to do time-consuming task
2023-07-02 13:48:38 +08:00
Yuhang Zhao
617a015b97
mica material: minor fixes of previous implementation
2023-07-02 11:44:54 +08:00
Yuhang Zhao
7c0d8c4b11
mica material: support reading very large image files
2023-07-01 18:16:57 +08:00
Yuhang Zhao
907fdeae67
fix ci: remove unused functions
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-06-03 15:24:04 +08:00
Yuhang Zhao
5a344f3e23
minor fixes & some refactorings
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-06-03 15:13:50 +08:00
Yuhang Zhao
1e754c1612
minor fixes
2023-06-02 14:51:12 +08:00
Dylan Liu
ec93740bd7
Add manual control of darkmode for Quick. ( #220 )
...
Add the function of manual control of dark mode in Quick module.
2023-05-19 13:12:25 +08:00
Yuhang Zhao
8d5ea49d52
allow user override system theme
...
Task-number: #216
2023-05-18 16:08:33 +08:00
Yuhang Zhao
a3cfa59d1d
improve dpi change experience
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-05-13 11:30:54 +08:00
Yuhang Zhao
b039a9130a
win: minor refactor
2023-04-28 09:14:06 +08:00
Yuhang Zhao
4d063369fa
mica material: add fallback color and fix the qtquick one
...
I don't understand why I didn't make QuickMicaMaterial configurable.
2023-04-27 10:36:47 +08:00
Yuhang Zhao
41e91bb39a
win: fix wrong restore geometry when after DPI changes
2023-04-25 15:19:31 +08:00
Yuhang Zhao
b2561c16ba
minor refactor
2023-04-23 13:42:27 +08:00
Yuhang Zhao
a203e2c3ca
win32: fix restore geometry bug
...
The upstream fix has not been merged yet, however, it will be in 6.5.1 for sure.
Fixes : #20
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-04-22 15:21:49 +08:00
Yuhang Zhao
3b8571401f
minor refactor
2023-04-11 17:09:58 +08:00
Yuhang Zhao
632a708c8a
fix white-line issue for QWidget applications
...
Fixes : #204
Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
2023-04-07 16:41:39 +08:00
Yuhang Zhao
b5c9f85f62
allow user force use system blur
...
Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
2023-03-30 14:16:34 +08:00
Yuhang Zhao
5ade3cfb74
fix hidpi position calculation
...
Task-number: #210
Signed-off-by: Yuhang Zhao <zhaoyuhang@rankyee.com>
2023-03-30 11:39:05 +08:00
Yuhang Zhao
2a6b8e6ebe
fix compilation error
...
Fixes : #211
2023-03-30 10:28:31 +08:00
Yuhang Zhao
a0c825930e
win: allow user disable specific system menu items
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-24 15:40:08 +08:00
Yuhang Zhao
598de50290
add synchronize api to wait for the ready signal
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-24 13:13:01 +08:00
Yuhang Zhao
9e341e4e40
examples: update cmake project
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-19 16:31:24 +08:00
Yuhang Zhao
f6383c5832
ci: fix ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-19 13:00:11 +08:00
Yuhang Zhao
9a81cf1503
cmake: improve the package code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-19 12:36:41 +08:00
Yuhang Zhao
a375bc6748
sysapiloader: minor improvements of previous refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-17 09:59:41 +08:00
Yuhang Zhao
4929707806
fix header search path
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-17 09:17:15 +08:00
Yuhang Zhao
02f70d1ade
sysapiloader: minor improvements
...
And some other minor refactors.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-16 14:55:26 +08:00
Yuhang Zhao
e7e6426dca
linux: another attempt to fix the segfault
...
Related: #202
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-07 14:38:18 +08:00
Yuhang Zhao
8b6dd746eb
refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-06 15:08:19 +08:00
Yuhang Zhao
fc92783af9
misc modifications
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-05 18:54:34 +08:00
Yuhang Zhao
9cadad625a
fix linux build
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-05 14:06:33 +08:00
Yuhang Zhao
14ccc990cf
general refactor, remove useless code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-05 14:01:46 +08:00
Yuhang Zhao
3d37d87c81
win: tweak some enum values
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-02-03 11:18:08 +08:00
Yuhang Zhao
ed75e2f3e8
adapt to latest Qt code style
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-27 18:16:32 +08:00
Yuhang Zhao
69ef2a6ca1
linux: fix potential segment faults
...
Fixes : #199
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-24 16:57:44 +08:00
Yuhang Zhao
7534a4631c
migrate to the <module/file> include pattern
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 14:27:10 +08:00
Yuhang Zhao
378aa7db12
fix nested frameless windows & other minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 13:43:51 +08:00
Yuhang Zhao
4896869123
use better name
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-18 10:00:18 +08:00
Yuhang Zhao
5e7ddb1864
quick: adapt macos updates
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-15 14:11:52 +08:00
Yuhang Zhao
819ffb79fb
macOS: widgets: preserve the native title bar elements
...
Quick part to be done.
2023-01-14 18:32:47 +08:00
Yuhang Zhao
eb6fc55006
quick: remove unneeded enums, fix warning
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2023-01-13 17:47:37 +08:00
Yuhang Zhao
8a1dcfb808
minor refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-23 10:11:59 +08:00
Yuhang Zhao
0924aeb51f
linux: finalize x11 function tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-21 11:43:37 +08:00
Yuhang Zhao
ea6a070766
linux: fix the regression caused by previous refactoring
...
Sadly we have to bring back the GTK dependency at compile time.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-20 16:39:20 +08:00
Yuhang Zhao
a381836ef7
linux: further improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 16:37:48 +08:00
Yuhang Zhao
840cf3060d
general fixes
...
fixed some minor issues
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-19 11:35:05 +08:00
Yuhang Zhao
c3fa2f6920
minor fixes of previous commit
2022-12-16 10:48:38 +08:00
Yuhang Zhao
34ba90376b
linux: remove the build-time dependency of libxcb and libgtk
...
We can load them dynamically at run-time.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-15 15:48:56 +08:00
Yuhang Zhao
8683a14a3c
fix compilation error
...
fixes : #191
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-15 13:09:51 +08:00
1bbb
4844257fc8
支持嵌套无边框组件
2022-12-15 11:32:57 +08:00
Yuhang Zhao
d5d1edd690
win: add ms license header
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-14 16:23:27 +08:00
Yuhang Zhao
d4293e0a55
win: refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-13 11:36:41 +08:00
Yuhang Zhao
c849217d43
fix build on linux and macos
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 14:55:17 +08:00
Yuhang Zhao
f00adba67c
replace QScopedPointer with std::unique_ptr
...
QScopedPointer is being deprecated in latest qtbase code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 11:59:53 +08:00
Yuhang Zhao
ed3771c949
replace qRound with std::round
...
It's better to do so.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 09:34:46 +08:00
Yuhang Zhao
b1f52837d2
replace qAsConst with std::as_const
...
qAsConst is being deprecated in latest qtbase code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-12 09:30:16 +08:00
Yuhang Zhao
cb88b602fe
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-05 14:33:38 +08:00
Yuhang Zhao
7daa1facc7
fix build on Qt version < 6.2.1
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-04 14:49:16 +08:00
Yuhang Zhao
48a1106fc0
Allow build with no private Qt modules
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-12-04 14:25:09 +08:00
Yuhang Zhao
1cf5a53ecb
fix build error
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-24 10:47:55 +08:00
Yuhang Zhao
a26df61c33
win: fix multi-monitor bug, take 3
...
#141
#184
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-24 10:38:21 +08:00
Yuhang Zhao
ff5b171566
win: final fix of the multi-monitor bug
...
#141
#184
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-23 14:54:46 +08:00
Yuhang Zhao
ebd3d6573f
win: fix the multi monitor window expand issue
...
#141
#184
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-22 15:03:11 +08:00
Yuhang Zhao
3961ecb505
quick: fix a regression
...
Looks like we can't use overloads in QML documents.
Should fix #183
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-21 17:12:33 +08:00
Yuhang Zhao
3791802d3b
win: add support for mica alt and other tweaks
...
Add some more comments to the windows header.
Remove the usages of UseRoundWindowCorner.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-16 14:10:49 +08:00
Yuhang Zhao
524f65cc9b
win: some minor improvements
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-11 15:25:39 +08:00
Yuhang Zhao
ddb2dcc7f7
win: fix some rare bugs, add more comments
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-10 16:53:25 +08:00
Yuhang Zhao
b8a3ff604f
win: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-10 11:17:29 +08:00
Yuhang Zhao
3842f4e353
win: fix typo
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-09 14:43:44 +08:00
Yuhang Zhao
c86a3fe35e
win: reshuffle code a bit
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-09 14:40:03 +08:00
Yuhang Zhao
07bd39d1aa
win: minor improvement
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-06 19:28:25 +08:00
Yuhang Zhao
ac6a2c11a7
win: minor improvement
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-06 15:52:25 +08:00
Yuhang Zhao
9715bd9d4b
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-03 13:52:57 +08:00
trbogdanov
31849d1c12
gcc and qt-5.12.0 compilation error fix ( #171 )
...
Compililation with gcc (any version) and Qt 5.12.0 (important) fails with error:
```
Core/private/sysapiloader_p.h:59:26: error: no matching function for call to ‘QMutex::QMutex()’
static inline QMutex m_mutex;
^~~~~~~
include/QtCore/qmutex.h:165:5: note: candidate: ‘QMutex::QMutex(const QMutex&)’ <deleted>
Q_DISABLE_COPY(QMutex)
^~~~~~~~~~~~~~
```
`QMutex` in Qt 5.12.0 has explicit (!) one-parameter constructor with a
default value: `QMutex(QMutex::RecursionMode mode = NonRecursive)` and no
default constructor. In this case declaring static inline member without
initializer causes the above error.
2022-10-26 17:13:53 +08:00
Yuhang Zhao
53bf6016df
win: simplify code a little
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-20 17:26:55 +08:00
Yuhang Zhao
af6d3c7380
win: minor tweaks
...
1. Avoid name collision of original Win SDK
2. Enable non-client area DPI scaling when building with Qt < 5.9.0
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-20 14:15:11 +08:00
Yuhang Zhao
fe6fb8ef5f
win: add new win10 subver
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-19 17:15:23 +08:00
Yuhang Zhao
1ae0bd8fd6
examples: reuse common code
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-17 13:43:38 +08:00
Yuhang Zhao
e2f7c76c88
win: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-16 13:41:41 +08:00
Yuhang Zhao
87da6cb5da
move static_assert to cpp source files
...
To speed up compilation time.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 09:44:50 +08:00
Yuhang Zhao
f15ca8daf0
fix various issues
...
1. Fix mica material doesn't work normally when used on multiple windows.
2. Fix build on Qt5.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-12 14:08:58 +08:00
Yuhang Zhao
994b02ad6c
quick: add FramelessApplicationWindow element
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-12 10:47:41 +08:00
Yuhang Zhao
b9f5cf79c0
win32: add support for dark theme menu
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 16:17:04 +08:00
Yuhang Zhao
fcf51d6d73
refactor
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 11:52:49 +08:00
Yuhang Zhao
1e43ba2e81
improve windowborder element
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-10 22:12:01 +08:00
Yuhang Zhao
55be173c31
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-10 13:59:00 +08:00
Yuhang Zhao
92415fb61c
Add WindowBorderPainter and WindowBorder
...
1. Added WindowBorderPainter for QtWidgets
2. Added WindowBorder for QtQuick (uses WindowBorderPainter internally)
3. Adjust some header includes
4. Limit a Linux workaround to the appropriate Qt versions
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-10 13:35:37 +08:00
Yuhang Zhao
b50a2dcd72
fix Qt5 compilation error
...
And change to lazy initialization for Mica Material.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-09 10:08:49 +08:00
Yuhang Zhao
d483c39b9a
add way to disable window maximization
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-08 15:25:22 +08:00
Yuhang Zhao
ac9a05209e
quick: fix misleading and annoying warning
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-30 12:58:13 +08:00
Yuhang Zhao
07101273bd
win: refactor & simplify
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-26 11:18:13 +08:00
Yuhang Zhao
f97f000cc7
avoid potential deadlocks
...
And some other minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-25 10:35:00 +08:00
Yuhang Zhao
684ebc3fa3
minor improvement
...
Code simplification & adapt to latest Qt code.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-23 14:04:47 +08:00
Yuhang Zhao
eeda750a61
finalize api update
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-21 13:22:03 +08:00
Yuhang Zhao
47bf4da5ae
allow user to remove a window from the frameless window list
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-20 15:56:59 +08:00
Yuhang Zhao
3d3607af7b
refactor
...
and maybe avoid potential bugs.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-16 17:38:13 +08:00
Yuhang Zhao
91bb8273b8
routine code quality improvement
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-15 18:24:34 +08:00
Yuhang Zhao
47dcb8f032
quick: emulate Windows behavior more, just like widget
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-09-14 17:07:06 +08:00