* Fix the issue where the window size is abnormal when dragging between monitors with different scaling settings with the "Show window contents while dragging" option turned off in Windows.
* clean code
* fix code fmt;
* Optimize code
* delete not used mut keyword
* add change file
While working on https://github.com/tauri-apps/wry/pull/1041 which allows adding the webview as a child window, I noticed that when setting the webview to be transparent, the portion of the parent behind it doesn't render properly and that was because of `WS_CLIPCHILDREN`
* new example
* feat(macos): Fixed the traffic light example
Traffic lights get refreshed. Still artifacts visible
* feat(macos): Implemented and exposed a traffic light reposition method for Builder and Window
* fix(macos): fixed the issue with the artifact on resize
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update src/platform_impl/macos/window.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Delete macos_traffic_lights.rs
Example not needed
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* Update window.rs
Deleted outdated TODO
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* refactor: Replaced type of inset with LogicalSize + docs
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* fixes
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* revert accidental commit
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* add back example
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* fix(macos): traffic light offset now works as expected
The set_traffic_light_offset() method on window was removed and only the builder function now has to be called to set the offset. No more manual event handling is needed.
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* refactor(macos): removed the traffic light example
the example is no longer needed as the api design is now clear and only one method call is needed to set the inset
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* feat(macos): added set_traffic_light_position back in
the set_traffic_light_position on window will now work as expected. I.e. only one call is necessary
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* delete comment
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* revert(macos): reverted accidental deletion of null check
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* refactor(macos): changed traffic light inset to LogicalPosition<f64>
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* refactor(macos): changed pulic api back to Position
Also unified the api to always use inset instead of position
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* cleanup after rebase
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
* more cleanup
* fix macos
---------
Signed-off-by: amrbashir <amr.bashir2015@gmail.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: Jonas Kruckenberg <iterpre@protonmail.com>
* fix(windows): Apply dark mode to menus
* refactor dark mode logic, and add app-wide theme api
* fix docs build
---------
Co-authored-by: ahodesuka <ahodesuka@users.noreply.github.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>