Commit Graph

996 Commits

Author SHA1 Message Date
Yuhang Zhao ebc8792630 Fix Qt6 build
The function name has been changed in Qt6.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-13 15:36:31 +08:00
Altair Wei 027545fcc2
fix interrupted db-clicked behavior on titlebar (#73) 2021-08-13 14:39:18 +08:00
Altair Wei 018d904ca4
fix resize indicator position on 4K screen Linux (#71) 2021-08-13 11:32:09 +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 870b7820ae Fix Qt 5.15 compilation error
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-25 18:15:59 +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 6698033a1a Fix Qt 5.9 build
Use lower import version for Qt Quick

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-21 17:23:10 +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 d43d126d3f Fix wrong system button size in example
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-21 11:16:45 +08:00
Yuhang Zhao d3afd8504d Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-21 08:57:31 +08:00
Yuhang Zhao e1c9023ead Add two important notes
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-20 17:33:04 +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 39aef26671 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-14 09:03:00 +08:00
Yuhang Zhao 151e8a1664 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-07-06 10:54:11 +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 fe2d5716e2 Fix old Qt build
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-25 16:35:32 +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
Julien 938756a757
FIX frame in QMainWindow (#58)
Co-authored-by: Julien Maille <julien.maille@data-pixel.com>
2021-06-09 08:59:51 +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 74607b2e45 Fix old qt build
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-02 09:48:04 +08:00
Yuhang Zhao 15ad3be106 Fix wrong path
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-01 14:17:16 +08:00
Yuhang Zhao 2e6750e0b4 Update README
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-01 14:06:51 +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 2a10b0f7c8 More cleanup
static_cast will always succeed, not need to check.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-01 10:12:55 +08:00
Yuhang Zhao e769d10a19 Further cleanup
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-06-01 09:42:43 +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 6f98dd8930 Update README.md
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-05-12 08:55:44 +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 d12198a7bc Update
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-04 12:09:34 +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 97d9009500 Utils: Win32: Fix API usage
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-04-02 09:06:32 +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 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 f188c0f88d Examples: Quick: lower required version
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-30 11:03:16 +08:00
Yuhang Zhao 18d883b96a Minor tweaks
Amends commit 0759f7f010

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-26 17:35:33 +08:00
Julien 0759f7f010
NEW: QMainWindow example (#50)
* WIP: qmainwindow example

* NEW: option to disable acrylic on QMainWindow

* IMP: accept standard QMainWindow parameters

* NEW: enable acrylic in QMainWindow example

* IMP: qmainwindow sets acrylic outside constructor

* IMP: center windowTitle

* cleanup

* IMP: move setContentMargin in QtAcrylicMainWIndow class

* more cleanup

* small cleanup

* improvement copied from qtacrylicwidget

* minor improvement

* always connect needRepaint

* close button thickness is now similar to native windows buttons

* add context menu on left icon

* simpler context menu implementation

* IMP: use displaySystemMenu from Utilities

Co-authored-by: Julien Maille <julien.maille@data-pixel.com>
2021-03-26 16:53:32 +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 4cba3a4dd4 Minor improvements
1. Update margins when maximized for the examples
2. Prepare for the UNIX version of utility functions

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-25 15:12:47 +08:00
Yuhang Zhao 3e09c0f9b8 Example: Widget: Fix build below 5.14
Fixes: #54

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-24 11:15:58 +08:00
Yuhang Zhao 399b1cef1c Minor tweaks
1. Fix compilation error for QMake.
2. Fix some warning messages are in the wrong place.
3. Fix the IActiveDesktop can't get wallpaper.
4. Other minor tweaks.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-22 09:38:48 +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 85edd9abbd Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-21 15:47:18 +08:00