Commit Graph

3251 Commits

Author SHA1 Message Date
github-actions[bot]
9367df4dc1 Publish New Versions (#1073)
* publish new versions

* mend

---------

Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
Co-authored-by: amrbashir <github@amrbashir.me>
tao-v0.32.2
2025-02-26 02:31:37 +02:00
Amr Bashir
b296cf53f4 feat: add WindowExtWindows::has_undecorated_shadow on Windows (#1074) 2025-02-25 22:03:59 +02:00
Tony
f4ec11d795 fix(windows): undecorated resize direction for top left and right border (#1070)
* Fix undecorated resize top left and right border

* Add change file
2025-02-25 03:51:55 +02:00
Lucas Nogueira
849abaf0b1 chore: update lockfile 2025-02-24 12:53:59 -03:00
github-actions[bot]
15cedf61df publish new versions (#1072)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tao-v0.32.1
2025-02-24 12:07:51 -03:00
Lucas Fernandes Nogueira
1be722dbc2 fix(macos): window content protection crashing (#1071)
when content protection is used the app is crashing with the following error:
```
invalid message send to -[TaoWindow setSharingType:]: expected argument at index 0 to have type code 'Q', but found 'i'
```

using `ns_window.setSharingType(NSWindowSharingType::<type>)` fixes it

I've also changed other msg_send![] usage to leverage the type safe objc2-app-kit crate instead of using direct objc calls
2025-02-24 12:06:28 -03:00
github-actions[bot]
66754f355f publish new versions (#1045)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
tao-v0.32.0
2025-02-22 11:56:46 +01:00
Tony
28f728c7bf chore(deps): update windows to 0.60 (#1068) 2025-02-22 11:34:33 +01:00
Fabian-Lars
08475f72b1 chore(deps): update objc2 to 0.6 (#1067) 2025-02-22 11:33:09 +01:00
Fabian-Lars
52c0bc6190 ci: Less noisy renovate config 2025-02-21 20:45:20 +01:00
Fabian-Lars
3664513621 chore: Update msrv to 1.74 and test it in CI (#1050) 2025-02-21 19:54:37 +01:00
Mads Marquart
8c8f0e8b79 refactor: Use objc2 (#1049) 2025-02-21 17:29:48 +01:00
Amr Bashir
5cc92980c4 fix(windows): calculate accurate window insets for undecorated shadows (#1052)
ref: 7bddb390ca/crates/gpui/src/platform/windows/events.rs (L1418-L1454)

closes #905
2025-02-09 05:25:36 +02:00
Manfred Egger
94afde9843 fix(linux): add missing function keys for linux (#1040)
* Add missing function keys F13-F24 to linux implementation

* Added change file
2025-01-22 02:26:50 +02:00
Mads Marquart
6fda49843e fix(macos): Remove internal From implementation (#1048)
Removes `impl From<ActivationPolicy> for NSApplicationActivationPolicy`.

This is needed to avoid publicly exposing a dependency on cocoa, which
will allow using `objc2` in the future.
2025-01-22 01:18:46 +02:00
Tony
543e1177ee chore(deps): update windows to 0.59 (#1044) 2025-01-14 05:53:51 +02:00
github-actions[bot]
cdfba4ecfc Publish New Versions (#1037)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.31.1 tao-v0.31
2025-01-04 17:44:11 +02:00
Amr Bashir
bb537fe996 fix(windows): fix set_size doing nothing for undecorated window with shadows (#1039)
closes tauri-apps/tauri#12168
2025-01-04 17:20:20 +02:00
Fabio Waljaard
83e35e961f fix(linux): call gtk_init to fix tauri-apps/tauri#11312 (#1036) 2024-12-30 01:25:14 +02:00
github-actions[bot]
d0e46ade98 publish new versions (#1010)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.31.0
2024-12-09 01:11:34 +02:00
Jnschrber
2e6cf1a433 fix(windows): fix appcrash on windows where darkmode is not supported (#1022) 2024-12-09 01:00:12 +02:00
Amr Bashir
fa9aaa6066 fix(windows): remove borders if fullscreen (#1019)
closes tauri-apps/tauri#10380
2024-11-20 05:47:02 +02:00
Amr Bashir
5d6d7da0ad fix(windows): remove WS_CAPTION and WS_THICKFRAME when calculating adjust window rect (#1017)
closes tauri-apps/tauri#11695
2024-11-20 05:46:46 +02:00
Amr Bashir
720bd93f97 fix(windows): use physical position when creating the window (#1018)
closes tauri-apps/tauri#11718
2024-11-19 12:23:24 +02:00
Tony
6b49f55a96 feat: expose raw gdk monitor (#1016) 2024-11-18 19:40:13 +02:00
Amr Bashir
88f0b4190f fix(android): fix compile when rwh_04 or rwh_05 is active (#1012)
* fix(android): fix compile when `rwh_04` or `rwh_05` is active

closes #1011

* test features
2024-11-11 21:52:30 +02:00
Amr Bashir
73741a7540 deps: remove instant (#1008)
closes #1006
2024-11-11 16:10:26 +02:00
github-actions[bot]
cb500906df Publish New Versions (#1009)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.7
2024-11-11 16:02:51 +02:00
Amr Bashir
97382238b2 fix(windows): fix regression in setting/getting inner size (#1007)
- Fix regression for decorated window, remove borders in `inner_size` only for undecorated window with shadows
- Add borders when setting inner size for undecorated window with shadows
2024-11-11 15:46:25 +02:00
github-actions[bot]
0274b0fca6 Publish New Versions (#1004)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.6
2024-11-09 03:13:54 +02:00
Amr Bashir
edfbd364a6 fix(windows): fix WindowBuilder::with_position with position on non-primary monitor (#992)
closes tauri-apps/tauri#11430
2024-11-09 03:03:46 +02:00
Amr Bashir
06d109feb3 fix(windows): fix Window::inner_size returns slightly larger than what's visible (#993)
ref: https://github.com/rust-windowing/winit/pull/3712
2024-11-09 03:03:08 +02:00
Lucas Fernandes Nogueira
946f804995 fix(android): memory leak on WindowManager global ref (#1005)
ref https://github.com/tauri-apps/tauri/issues/11609
2024-11-08 19:56:14 +02:00
AHQ
1f72c2465e feat: add set_badge_count for Linux, iOS; set_badge_label for Macos; set_overlay_icon for Windows (#1002) 2024-11-05 23:29:06 +02:00
Amr Bashir
aff33fbb2d fix(linux): include border and titlebars in Window::{outer_position, outer_size} and WindowEvent::Moved event (#1001) 2024-11-02 11:31:34 +02:00
github-actions[bot]
0f7e95a0af Publish New Versions (#999)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
tao-v0.30.5
2024-10-29 17:45:40 +03:00
Amr Bashir
532b5ab0bf fix(android): fix android_binding macro expantion (#1000) 2024-10-29 11:37:22 -03:00
Tony
67e44e4cb2 fix(macos): crashing when setting theme to none (#991) 2024-10-28 19:03:01 +03:00
github-actions[bot]
8d094bb1d3 Publish New Versions (#998)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.4
2024-10-28 16:53:56 +03:00
Amr Bashir
b404cde150 feat: add background_color APIs (#995)
* feat: add background_color APIs

ref: https://github.com/tauri-apps/tauri/issues/10519

* fix macOS

* fix macos

* unsafe

* Update .changes/background_color.md

Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>

* actually use color

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <118899497+lucasfernog-crabnebula@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-10-28 16:14:11 +03:00
Hamir Mahal
c49b83a11d style: simplify string formatting for readability (#987)
* style: simplify string formatting for readability

* fix: formatting in `src/platform` directories
2024-10-11 04:59:19 +03:00
github-actions[bot]
4968a9ec2a Publish New Versions (#982)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.3
2024-10-04 06:21:05 +03:00
Tony
2fffdc9db7 fix(windows): blinking title bar on changing system settings (#983)
* Only redraw on manual set theme

* Add change file

* Ignore update theme on settings change preferred theme is set
2024-10-01 03:14:12 +03:00
Chooooo
4dcd231209 fix(wayland): add client side decorations & fix error protocol 71 (#979) 2024-09-26 22:01:06 +03:00
thep0y
2ee007a56a feat: add Window::is_always_on_top method (#981) 2024-09-25 05:37:51 +03:00
github-actions[bot]
11d83cffd5 Publish New Versions (#980)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.2
2024-09-24 03:17:10 +03:00
Tony
016e122c5f fix(windows): changing the theme activates the window (#978)
* Fix changing theme activates the window

* Add change file

* Combine unsafe blocks
2024-09-24 02:58:32 +03:00
github-actions[bot]
16b7d52cd4 Publish New Versions (#975)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
tao-v0.30.1
2024-09-19 18:14:51 +03:00
Tony
1a085ade59 feat: add a function to set theme dynamically (#937) 2024-09-19 17:50:16 +03:00
Campione.Dev
ad652e50bf feat(iOS): added custom URL schemes handling in the AppDelegate class (#969)
* feat(iOS): added custom URL schemes handling in the `AppDelegate` class

Until now, only ["associated
domains"](https://developer.apple.com/documentation/xcode/supporting-associated-domains)
were handled, using the `application_continue` function, that implements [this
Swift method from the `UIApplicationDelegate`
class](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623072-application).

For [custom URL
schemes](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app),
I added a new `application_open_url` function that matches the signature of
[this other Swift
method](https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application).

Most of the code of the pre-existing `application_continue` has been moved
into a separate `handle_deep_link` function so the new `application_open_url`
can call it as well.

I believe using the same `Event::Opened` event is appropriate in both
situations. Since the scheme is part of the URL, a listener can differentiate
between them if needed.

**Tauri:** since we are emitting the same `Event::Opened` event, this change
works automatically with the ["Deep Linking"
plugin](https://v2.tauri.app/plugin/deep-linking/) without further
modifications.

Custom URL schemes in mobile apps are essential, for example,
when dealing with OAuth redirect URLs.

* Update .changes/ios-custom-url-schemes.md

Co-authored-by: Jason Tsai <git@toolkits.zip>

---------

Co-authored-by: Jason Tsai <git@toolkits.zip>
2024-09-03 12:34:55 -03:00