Kamil Jarosz
e179b41ca7
desktop: Add network access dialog
...
Add network access dialog written in egui and replace
rfd's socket confirmation with it.
2024-09-06 21:46:59 +02:00
Crowdin Bot
92686b10b2
chore: Update translations from Crowdin
2024-09-06 09:02:25 +02:00
Kamil Jarosz
d80246f85a
desktop: Move icon.svg to packages/linux
...
Currently, the SVG icon is used only in Linux packages and moving it
to packages/linux makes it easier to package downstream.
Additionally it makes it possible to adapt it for Linux desktop
specifically.
2024-09-05 11:29:20 +02:00
Kamil Jarosz
b56d9234ff
desktop: Add ruffle to conflicts in PKGBUILD
...
This ensures that the package conflicts with every
other package providing ruffle.
2024-09-05 11:29:20 +02:00
Kamil Jarosz
b18d21261e
chore: Move PKGBUILD to desktop/packages
2024-09-05 11:29:20 +02:00
Crowdin Bot
f538f67a17
chore: Update translations from Crowdin
2024-09-04 23:22:12 +02:00
Kamil Jarosz
6d577f50e4
desktop: Use MessageDialog for messages
...
This commit replaces rfd's MessageDialog with our custom MessageDialog
written using egui.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
fc13643cc8
desktop: Implement MessageDialog in egui
...
The implemented MessageDialog is meant to replace the rfd MessageDialog
in order to be consistent with other UI elements.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
5cdf4c8030
desktop: Add OpenDialog event for opening dialogs
...
This event replaces AskToOpenUrl and is more generic, because
it may open any dialog (specified as an argument).
2024-09-04 20:59:31 +02:00
Kamil Jarosz
b4422bffc4
desktop: Add LocalizableText struct
...
This structure allows specifying localizable text when there's no locale
available, but it will be available in the future (e.g. when rendering).
It has several advantages over specifying bare labels:
1. labels cannot be easily mixed with non-localizable text,
2. it's easy to find labels in use by looking for enum variant usages.
It's also better than providing a function of locale which requires
complicated type definitions and dynamic dispatch.
2024-09-04 20:59:31 +02:00
Kamil Jarosz
646ab4e5bc
desktop: Add show_ prefix to appropriate methods from Dialogs
2024-09-04 20:59:31 +02:00
Crowdin Bot
f82f58f28a
chore: Update translations from Crowdin
2024-09-04 10:24:56 +02:00
Crowdin Bot
5efe609dbc
chore: Update translations from Crowdin
2024-09-03 17:44:43 +02:00
Nathan Adams
038a714dbf
desktop: Use demangling in tracy
2024-09-02 02:19:15 +02:00
Nathan Adams
2d6d4bc8f5
desktop: Update tracy and bump profiling
2024-09-02 02:19:15 +02:00
Kamil Jarosz
898db260a3
core: Add support for wider range of key codes
...
This patch changes the definition of KeyCode from an enum,
which was constraining the possible key codes, to a struct with
a u32 field, which covers all possible cases of a key code.
Key codes in Flash are not related to the physical buttons,
but rather to logical button values.
For instance, typing a non-ASCII key produces a key code related
to that character, and using a non-ANSI keyboard or a layout different
from US QWERTY also produces results matching that assumption.
2024-09-01 21:02:34 +02:00
Crowdin Bot
556fd7306d
chore: Update translations from Crowdin
2024-08-31 11:49:48 +02:00
Kamil Jarosz
a227b51a27
desktop: Use Open URL dialog instead of rfd for opening URLs
2024-08-30 13:13:03 +02:00
Kamil Jarosz
25570ef374
desktop: Add Open URL dialog
2024-08-30 13:13:03 +02:00
Kamil Jarosz
263ef4696e
frontend_utils: Replace confirm_website_navigation with navigate_to_website of NavigatorInterface
...
This makes it possible to implement "Open URL" dialogs asynchronously.
2024-08-30 13:13:03 +02:00
Kamil Jarosz
c9839a36f5
desktop: Rename RfdNavigatorInterface to DesktopNavigatorInterface
...
The interface does not have to necessarily use rfd.
2024-08-30 13:13:03 +02:00
Kamil Jarosz
f840b5b70a
desktop: Rename event OpenURL to Open
...
The name OpenURL is ambiguous as it may also mean that a URL should be
opened in the browser.
2024-08-30 13:13:03 +02:00
TÖRÖK Attila
c930b0c77f
chore: Update to `proc-macro-crate` `v3.2.0`, deduplicate `toml_edit` and `winnow`
2024-08-27 17:12:03 +02:00
Kamil Jarosz
713224c465
desktop: Allow only one file picker open at a time
2024-08-26 23:45:55 +02:00
Kamil Jarosz
be8be123ba
desktop: Move pick_file to picker.rs
2024-08-26 23:45:55 +02:00
Tom Schuster
48170bd8e6
desktop: Allow starting bookmarks from the bookmarks dialog
2024-08-26 15:08:33 +02:00
Crowdin Bot
c869505e88
chore: Update translations from Crowdin
2024-08-25 23:17:10 +02:00
Crowdin Bot
6fca7444b6
chore: Update translations from Crowdin
2024-08-24 23:17:43 +02:00
Crowdin Bot
bfd43297be
chore: Update translations from Crowdin
2024-08-24 00:52:55 +02:00
sleepycatcoding
c047358ab5
desktop: Change fullscreen fscommand to use event loop events
...
Previously the fullscreen state was set on the window directly causing a desync with the rest of the player code.
2024-08-23 21:17:25 +02:00
Kamil Jarosz
9f8b89168c
chore: Move rfd dependency to workspace
...
This makes sure there's only one version of rfd
used and fixes Flatpak compilation issues.
2024-08-22 12:22:12 +02:00
sleepycatcoding
d8b4ec0404
desktop: Make F11 toggle fullscreen instead of just entering
...
This allows you to leave fullscreen the same you enter it.
2024-08-21 15:08:33 +02:00
sleepycatcoding
eb3dec3d5d
desktop: Make shortcuts work in fullscreen and no-gui mode
2024-08-21 15:08:33 +02:00
Kamil Jarosz
56f092be2e
desktop: Add "Exit Full Screen" option to context menu
...
This option allows the user to exit full screen
without knowing the Esc shortcut.
2024-08-21 14:31:56 +02:00
Crowdin Bot
2889a715ad
chore: Update translations from Crowdin
2024-08-20 23:41:06 +02:00
Kamil Jarosz
4ef26ac9ba
desktop: Use F11 as fullscreen shortcut
...
This patch removes Alt+Enter as the shortcut and replaces it with F11,
additionally the shortcut hint is added to the menu.
2024-08-20 20:12:51 +02:00
Kamil Jarosz
63b373d739
desktop: Make file pickers asynchronous
...
This patch fixes the problem of Ruffle not responding
when picking a file.
2024-08-20 15:30:50 +02:00
Kamil Jarosz
4918596f71
desktop: Remove Windows workaround for picking files
...
See https://github.com/rust-windowing/winit/issues/2291#issuecomment-2277033786
2024-08-20 15:30:50 +02:00
Kamil Jarosz
8755dd95cc
desktop: Use Arc+Mutex for PathOrUrlField.value
...
This allows modifying it asynchronously.
2024-08-20 15:30:50 +02:00
Kamil Jarosz
d487d3f1aa
desktop: Rename PathOrUrlField::value() to result()
2024-08-20 15:30:50 +02:00
Kamil Jarosz
87bf7b5b19
desktop: Set main window as parent of file pickers
...
This patch makes sure that all file pickers are children of Ruffle.
This way, file pickers will hover over the main window and will have
to be dismissed before the user may interact with it.
2024-08-20 13:47:22 +02:00
dependabot[bot]
5b3c9722d5
build(deps): bump the cargo-minor group with 9 updates
...
Bumps the cargo-minor group with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.15` | `4.5.16` |
| [bytemuck](https://github.com/Lokathor/bytemuck ) | `1.16.3` | `1.17.0` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.207` | `1.0.208` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.39.2` | `1.39.3` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.3.0` | `2.4.0` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.124` | `1.0.125` |
| [fluent-templates](https://github.com/XAMPPRocky/fluent-templates ) | `0.9.4` | `0.10.1` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.74` | `2.0.75` |
| [reqwest](https://github.com/seanmonstar/reqwest ) | `0.12.5` | `0.12.6` |
Updates `clap` from 4.5.15 to 4.5.16
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.15...clap_complete-v4.5.16 )
Updates `bytemuck` from 1.16.3 to 1.17.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.16.3...v1.17.0 )
Updates `serde` from 1.0.207 to 1.0.208
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208 )
Updates `tokio` from 1.39.2 to 1.39.3
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.39.3 )
Updates `indexmap` from 2.3.0 to 2.4.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.3.0...2.4.0 )
Updates `serde_json` from 1.0.124 to 1.0.125
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.124...1.0.125 )
Updates `fluent-templates` from 0.9.4 to 0.10.1
- [Release notes](https://github.com/XAMPPRocky/fluent-templates/releases )
- [Changelog](https://github.com/XAMPPRocky/fluent-templates/blob/master/CHANGELOG.md )
- [Commits](https://github.com/XAMPPRocky/fluent-templates/compare/fluent-templates-v0.9.4...fluent-templates-v0.10.1 )
Updates `syn` from 2.0.74 to 2.0.75
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.74...2.0.75 )
Updates `reqwest` from 0.12.5 to 0.12.6
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.5...v0.12.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: fluent-templates
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 00:58:16 +02:00
Crowdin Bot
e1c05da618
chore: Update translations from Crowdin
2024-08-18 00:27:46 +02:00
Crowdin Bot
d885697d9b
chore: Update translations from Crowdin
2024-08-16 23:30:18 +02:00
Crowdin Bot
dda4b57109
chore: Update translations from Crowdin
2024-08-15 23:52:34 +02:00
Crowdin Bot
fea16a0893
chore: Update translations from Crowdin
2024-08-12 23:32:47 +02:00
TÖRÖK Attila
9239cb8a5d
chore: A couple typo fixes in comments here and there
2024-08-12 21:36:51 +02:00
dependabot[bot]
f51dcf8d55
build(deps): bump the cargo-minor group with 8 updates
...
Bumps the cargo-minor group with 8 updates:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.13` | `4.5.15` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.204` | `1.0.206` |
| [linkme](https://github.com/dtolnay/linkme ) | `0.3.27` | `0.3.28` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.122` | `1.0.124` |
| [syn](https://github.com/dtolnay/syn ) | `2.0.72` | `2.0.74` |
| [fontdb](https://github.com/RazrFalcon/fontdb ) | `0.20.0` | `0.21.0` |
| [async-io](https://github.com/smol-rs/async-io ) | `2.3.3` | `2.3.4` |
| [tempfile](https://github.com/Stebalien/tempfile ) | `3.11.0` | `3.12.0` |
Updates `clap` from 4.5.13 to 4.5.15
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.13...v4.5.15 )
Updates `serde` from 1.0.204 to 1.0.206
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.204...v1.0.206 )
Updates `linkme` from 0.3.27 to 0.3.28
- [Release notes](https://github.com/dtolnay/linkme/releases )
- [Commits](https://github.com/dtolnay/linkme/compare/0.3.27...0.3.28 )
Updates `serde_json` from 1.0.122 to 1.0.124
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.122...v1.0.124 )
Updates `syn` from 2.0.72 to 2.0.74
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.72...2.0.74 )
Updates `fontdb` from 0.20.0 to 0.21.0
- [Changelog](https://github.com/RazrFalcon/fontdb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/fontdb/compare/v0.20.0...v0.21.0 )
Updates `async-io` from 2.3.3 to 2.3.4
- [Release notes](https://github.com/smol-rs/async-io/releases )
- [Changelog](https://github.com/smol-rs/async-io/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-io/compare/v2.3.3...v2.3.4 )
Updates `tempfile` from 3.11.0 to 3.12.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/commits )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: linkme
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: fontdb
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
- dependency-name: async-io
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: cargo-minor
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: cargo-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 16:45:39 +02:00
Crowdin Bot
e8a4f2f21f
chore: Update translations from Crowdin
2024-08-12 04:03:33 +02:00
Moulins
47030b4f5b
core: remove UpdateContext's unused lifetime and reborrow method
2024-08-10 22:53:27 +02:00