Yuhang Zhao
9715bd9d4b
minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-03 13:52:57 +08:00
Yuhang Zhao
c75712d3f1
Add option to suppress debug messages
...
Fixes : #177
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-11-02 15:13:47 +08:00
trbogdanov
78638a3e23
call gtk_init() before gtk_settings_get_default() to avoid Q_ASSERT triggering ( #173 )
...
As stated in GTK documentation about gtk_init():
* "Call this function before using any other GTK+ functions in your GUI
applications. It will initialize everything needed to operate the toolkit
and parses some standard command line options."
* "It is possible to pass NULL if argv is not available or commandline
handling is not required."
Fixes : #170
2022-10-31 09:39:43 +08:00
Yuhang Zhao
4c88bc5ab2
Fix build error on macOS
...
Fixes : #174
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-29 18:52:39 +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
90116239cf
win: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-21 09:41:35 +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
3c50ab7714
win: some minor tweaks of the manifest file
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-19 16:38:04 +08:00
Yuhang Zhao
439a5d569b
fix issues found by ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 17:03:28 +08:00
Yuhang Zhao
eb43a60094
cmake: use more strict qt
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 16:50:29 +08:00
Yuhang Zhao
cb7eebcda0
try to fix ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 10:58:25 +08:00
Yuhang Zhao
c29e6de2e1
try to fix ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 10:52:04 +08:00
Yuhang Zhao
5ec3eaf88e
ci: use ninja, try fix ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 10:28:01 +08:00
Yuhang Zhao
fe81fb80bd
cmake: fix install error
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 10:08:43 +08:00
Yuhang Zhao
85366ba667
Revert "misc: use better code style"
...
This reverts commit 3889e49583
.
Reason for revert: breaks CI, and no siginificant improvement.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-18 09:22:00 +08:00
Yuhang Zhao
3889e49583
misc: use better code style
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-17 18:01:41 +08:00
Yuhang Zhao
6d524d2db7
ci: add more test
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-17 16:02:05 +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
ca8e9f555d
quick: remove now useless workaround
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-14 10:24:46 +08:00
Yuhang Zhao
b84b47302e
fix mingw build error
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-14 09:53:11 +08:00
Yuhang Zhao
6fa183c586
more improvements to ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 19:48:52 +08:00
Yuhang Zhao
dacc1e8bf3
more ci improvement
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 18:02:31 +08:00
Yuhang Zhao
9b45580cb1
ci: also test static builds
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 16:40:54 +08:00
Yuhang Zhao
a25078bc21
add a ci status badge to readme
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 13:32:10 +08:00
Yuhang Zhao
fb863088bc
try to fix win ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 13:07:16 +08:00
Yuhang Zhao
8097a30a68
fix macos build
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:55:06 +08:00
Yuhang Zhao
4538e80038
fix msvc ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:46:44 +08:00
Yuhang Zhao
2dc7951f7a
fix unix build, issue found by ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:38:20 +08:00
Yuhang Zhao
c3824ecef0
try to fix ci, take 3
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:29:19 +08:00
Yuhang Zhao
8cd57ccc78
fix CI, take 2
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:13:09 +08:00
Yuhang Zhao
5132b7080c
fix ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:10:35 +08:00
Yuhang Zhao
67ff0b211c
add ci
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-13 11:00:13 +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
f11a329c1d
update readme
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 20:11:37 +08:00
Yuhang Zhao
15490cae5f
update screenshots
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-11 19:55:24 +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
1fc23e1c6a
cmake: minor tweaks
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-10 15:13:18 +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
9f17c8afdd
demo: disable lazy initialization for mica material
...
we need it anyway.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-09 10:15:48 +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
f6e9bd895c
Commit missing file
...
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2022-10-08 16:15:23 +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