Commit Graph

12 Commits

Author SHA1 Message Date
Yuhang Zhao 5a2d498445 Minor tweaks
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-08-11 17:58:47 +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 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 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 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
Yuhang Zhao 8a20747ba8 Minor tweaks
Mainly cleanup the WinNativeEventFilter

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-03-05 10:40:52 +08:00
Yuhang Zhao bd60d9d1d2 Remove the widget and quick dependency for UNIX as well
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-18 12:07:29 +08:00
Yuhang Zhao b672851f51 Win32: Remove the dependency of the widgets and quick module
This commit totally removed the dependency of the widgets
and quick modules for the Windows platform. Now the library
itself only depends on the core and gui modules. Currently
no bug can be found. But there are some side effects: one is
we can't set a palette for a widget due to we can't access
QWidget specific functions so if you want to enable blur
effect, you will have to do this by yourself. Another one is
you now have to pass the window handle to WinNativeEventFilter
instead of the pointer of a QObject. Before this patch, I'm
using QWidget::winId() to get the window handle, now we have
get rid of the widgets dependency so I can't get the window
handle now, you have to pass it explicitly. And it leads to
huge refactoring of the whole repository. But I think it's
worth doing. If anyone knows how to get the window handle
without introducing new dependencies, please tell me. It will
help me a lot.

To remove the quick dependency, the FramelessQuickHelper class
is moved out of the library now. If your project needs it,
please copy the files to your project and include them directly.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-11-16 23:01:00 +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 286fc26d3f Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2020-10-23 12:47:37 +08:00