3298 Commits

Author SHA1 Message Date
Amr Bashir
e10f6a6828 refactor!: relax WindowBuilderExtUnix::with_transient_for window type (#862) 2024-01-24 22:18:56 +09:00
Amr Bashir
c7fac6b2d3 chore(examples): showcase usage of softbuffer in transparent example (#863)
* chore(examples): showcase usage of softbuffer in transparent example

* only on windows
2024-01-18 18:04:47 +02:00
github-actions[bot]
bd3b87f535 Publish New Versions (#850)
Co-authored-by: wusyong <wusyong@users.noreply.github.com>
tao-v0.24 tao-v0.24.1
2024-01-16 16:44:04 +02:00
Baiker000
25a8836b64 Add release_android_context on destroy (#860) 2024-01-15 14:16:32 +09:00
MoChenYa
60bbcac168 fix(windows): Multi-monitor different scaling window size issue (#858)
* 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
2024-01-10 19:22:24 +08:00
Amr Bashir
f0bf850fee feat: derive Debug, Copy, Clone, PartialEq, Eq, Hash for ResizeDirection (#859) 2024-01-04 16:09:29 +08:00
Amr Bashir
fb3d7c4d82 chore: typo in PULL_REQUEST_TEMPLATE.md (#857) 2023-12-28 12:01:26 +09:00
Amr Bashir
50bba7f41f chore: cleanup issue and PR templates (#856)
* chore: cleanup issue and PR templates

* Update bug_report.md

* Update feature_request.md

* Update PULL_REQUEST_TEMPLATE.md

* Update PULL_REQUEST_TEMPLATE.md
2023-12-15 13:42:57 +09:00
Amr Bashir
68803e6748 fix(windows): fix set_fullscreen early return for Fullscreen::Borderless(None) (#854) 2023-12-14 12:06:56 +09:00
Harry Mallon
5eb2124e70 fix(macos): Enable applicationSupportsSecureRestorableState = YES (#852) 2023-11-28 21:13:32 +09:00
Fabian-Lars
499e492c21 chore: add sponsors section to readme (#851) 2023-11-23 16:16:02 +02:00
Amr Bashir
29b01bff2b fix(windows): remove SetWindowTheme call with DarkMode_Explorer theme (#849)
Fixes a glitch downstream in `muda` crate when manually drawing the menu bar
2023-11-22 12:49:14 +09:00
github-actions[bot]
397b70fb69 publish new versions (#823)
Co-authored-by: wusyong <wusyong@users.noreply.github.com>
tao-v0.24.0
2023-11-21 00:44:36 +09:00
Amr Bashir
69317ca0fd feat: migrate manual implementation to the light windows-version crate (#847) 2023-11-17 15:25:45 +09:00
renovate[bot]
7486f700db fix(deps): update rust crate windows to 0.52 (#845)
* fix(deps): update rust crate windows to 0.52

* Update Cargo.toml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-11-17 01:06:12 +02:00
Amr Bashir
fce9d2603e fix(windows): fix setting themes and maintain preferred theme when the system changes its theme (#844)
closes #840
2023-11-14 10:39:46 +09:00
Morgan Hill
5c22d7643d Add running test with miri to CI (#842)
For T1 Rust targets Miri is able to check for several forms of undefined
behavior that rustc can not.
2023-11-13 10:21:34 +09:00
Amr Bashir
cef17e4fbb fix: allow using multiple rwh features at the same time (#837) 2023-11-07 13:23:15 +09:00
Amr Bashir
c0278d83f9 fix(windows): remove WS_CLIPCHILDREN from window style (#839)
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`
2023-11-07 13:22:57 +09:00
Olivier Lemasle
2f08917cde chore: Fix changelog (#838) 2023-11-06 21:36:43 +02:00
Olivier Lemasle
498ba55b8a fix(linux): avoid unwrapping in Window::primary_monitor (#835)
Fixes #832
2023-11-06 13:11:36 +09:00
Ngo Iok Ui (Wu Yu Wei)
e33104c2cf Fix WindowEvent::Destroyed might fire twice on macOS (#831) 2023-11-06 12:46:05 +09:00
DK Liao
a57e08565e Revert "fixed transparent windows (#833)" (#834)
This reverts commit eedbad3e9f.
2023-11-02 18:17:52 +02:00
Icekey
eedbad3e9f fixed transparent windows (#833) 2023-11-02 17:03:27 +08:00
Amr Bashir
f497b5dc82 feat: add drag_resize_window (#829)
* feat: add `drag_resize_window`

* fix android
2023-10-29 16:08:17 +02:00
Amr Bashir
43c94f0b20 refactor: enhance android_binding! macro (#830) 2023-10-28 02:07:32 +02:00
Alexander Haas
f7e4991c66 Inset Mac OS traffic lights (#513)
* 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>
2023-10-26 22:50:55 +09:00
Amr Bashir
bd8bafeca8 chore: change bump to minor (#825) 2023-10-24 13:31:37 +09:00
Amr Bashir
853101bea4 feat: raw-window-handle 0.6 (#821) 2023-10-24 06:32:52 +03:00
renovate[bot]
4ef5baac55 fix(deps): update rust crate cocoa to 0.25 (#803)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 20:22:20 +03:00
renovate[bot]
1d17e67676 fix(deps): update rust crate core-graphics to 0.23 (#804)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 20:22:10 +03:00
renovate[bot]
0c2e779459 fix(deps): update rust crate uuid to 1.5 (#811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 19:52:51 +03:00
renovate[bot]
2327fb8517 fix(deps): update rust crate scopeguard to 1.2 (#810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 19:52:39 +03:00
github-actions[bot]
89b05c5e77 Publish New Versions (#798)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.23.0 tao-v0.23
2023-10-18 18:49:20 +03:00
Amr Bashir
08c39ed4ac chore: bump version since we released a patch from v0.22.x branch (#819) 2023-10-18 18:19:03 +03:00
Amr Bashir
7e854cb1f5 chore(deps): update windows-rs to 0.51 (#817)
* chore(deps): update windows-rs to 0.51.1

* Update Cargo.toml

* Update Cargo.toml

* Update .changes/windows-0.51.md

* Update .changes/windows-0.51.md
2023-10-17 20:19:35 +03:00
Amr Bashir
f569bbabda fix(linux): avoid unwrapping in Window::current_monitor (#815)
closes tauri-apps/tauri#7986
2023-10-17 13:16:05 +09:00
Amr Bashir
3f7cfaeb36 chore: remove tag from change file (#805) 2023-10-17 13:14:59 +09:00
Linda_pp
081ba16a39 fix(linux): Fix Window::theme may return incorrect theme (#800)
* fix(linux): Fix `Window::theme` may return incorrect theme

Signed-off-by: rhysd <lin90162@yahoo.co.jp>

* Return preferred theme on `Window::theme` if available

Signed-off-by: rhysd <lin90162@yahoo.co.jp>

* Remove some redundant clones

Signed-off-by: rhysd <lin90162@yahoo.co.jp>

---------

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
2023-10-16 19:07:46 +03:00
DK Liao
32ce759e4e chore(deps): upgrade gtk to 0.18 (#801)
* update to gtk 0.18

* Create gtk018.md

* Update gtk018.md
2023-10-16 15:34:11 +03:00
Lucas Fernandes Nogueira
d471ea7245 fix(linux): crash on set size APIs (#802) 2023-10-16 15:25:57 +03:00
Amr Bashir
71d744cf90 refactor!: remove clipboard impl (#797) 2023-10-05 00:44:32 +03:00
github-actions[bot]
0101ed656b Publish New Versions (#788)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.22.2
2023-08-17 14:45:05 +03:00
Logan Keenan
65ebab888d fix: platform_impl::ios::view::application_continue return type (#787)
* fix: platform_impl::ios::view::application_continue return type

* change file

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-08-17 02:49:56 +03:00
Amr Bashir
19536b3fb7 revert changes but focus handling (#785) 2023-08-16 11:02:05 +09:00
github-actions[bot]
1b2245e2f5 Publish New Versions (#784)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.22.1
2023-08-16 02:40:30 +03:00
ahoka
6df56c2dd1 enhance(windows): apply dark mode to menus and other controls (#751)
* 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>
2023-08-14 05:17:27 +03:00
Lucas Fernandes Nogueira
5c0bfb66a2 fix(ci): adjust covector configuration for crate asset path (#783) tao-v0.22.0 2023-08-13 18:58:18 -03:00
github-actions[bot]
31d17e9423 Publish New Versions (#781)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-macros-v0.1.2
2023-08-13 18:17:02 -03:00
Lucas Fernandes Nogueira
b7758314ab chore(macros): add change file for #780 (#782) 2023-08-12 17:46:16 +03:00