Skip to content

Commit 0339e9e

Browse files
committed
minor tweaks
1 parent 06b335e commit 0339e9e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,11 @@ See [examples](examples) for more demo use cases. The examples have no High DPI
254254
## TODO
255255

256256
+ Fix 5.15 window abnormal behavior
257-
+ Support Mac system buttons customization for Quick
258257
+ More documentations
259258
+ When do we support Linux native features?
260259

261260
## Special Thanks
262261

263-
+ [Arabaku](https://github.com/Arabaku)
264262
+ [Maplespe](https://github.com/Maplespe)
265263
+ [zhiyiYo](https://github.com/zhiyiYo)
266264

src/core/contexts/win32windowcontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,13 +731,13 @@ namespace QWK {
731731
static auto margins = QVariant::fromValue(QMargins(1, 1, 1, 1));
732732

733733
// If we remove the system border, the window will lose its shadow. If dwm is enabled,
734-
// then you need to set at least 1px margins, otherwise the following operation will
734+
// then we need to set at least 1px margins, otherwise the following operation will
735735
// fail with no effect.
736736
setWindowAttribute(QStringLiteral("extra-margins"), margins);
737737
}
738738

739739
// We should disable WS_SYSMENU, otherwise the system button icons will be visible if mica
740-
// is enabled and the title bar is transparent
740+
// is enabled and the title bar is transparent.
741741
{
742742
auto style = ::GetWindowLongPtrW(hWnd, GWL_STYLE);
743743
if (isSystemBorderEnabled()) {

src/core/contexts/win32windowcontext_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace QWK {
4747
LRESULT *result);
4848

4949
// In order to perfectly apply Windows 11 Snap Layout into the Qt window, we need to
50-
// intercept and simulate most of the mouse events, so that the processing logic
50+
// intercept and emulate most of the mouse events, so that the processing logic
5151
// is quite complex. Simultaneously, in order to make the handling code of other
5252
// Windows messages clearer, we have separated them into this function.
5353
bool snapLayoutHandler(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam,

src/core/windowagentbase.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ namespace QWK {
7878
}
7979

8080
/*!
81-
Sets the platform-related attribute for the window.
82-
83-
Available attributes:
81+
Sets the platform-related attribute for the window. Available attributes:
8482
8583
On Windows,
8684
\li \c dwm-blur: Specify a boolean value to enable or disable dwm blur effect, this
@@ -101,9 +99,9 @@ namespace QWK {
10199
On macOS,
102100
\li \c no-system-buttons: Specify a boolean value to set the system buttons'
103101
visibility.
104-
\li \c blur-effect: You can specify a string value, "dark" to set dark mode, "light"
105-
to set light mode, "none" to disable. You can also specify a boolean value,
106-
\c true to enable and set the current theme, \c false to disable.
102+
\li \c blur-effect: You can specify a string value, "dark" to enable dark mode, "light"
103+
to set enable mode, "none" to disable. You can also specify a boolean value,
104+
\c true to enable current theme mode, \c false to disable.
107105
*/
108106
bool WindowAgentBase::setWindowAttribute(const QString &key, const QVariant &attribute) {
109107
Q_D(WindowAgentBase);

0 commit comments

Comments
 (0)