Nathan Adams
ab8b1c654c
chore: Use workspace version for js-sys
2024-04-04 17:29:00 +02:00
Nathan Adams
d8fec1cabc
chore: Use workspace version for image
2024-04-04 17:29:00 +02:00
Nathan Adams
2036d85a95
chore: Use workspace version for futures
2024-04-04 17:29:00 +02:00
Nathan Adams
2bd1ef47b7
chore: Use workspace version for flate2
2024-04-04 17:29:00 +02:00
Nathan Adams
c3711e3953
chore: Use workspace version for enum-map
2024-04-04 17:29:00 +02:00
Nathan Adams
6cca9bb3b7
chore: Use workspace version for clap
2024-04-04 17:29:00 +02:00
Nathan Adams
26df7d78c4
chore: Use workspace version for chrono
2024-04-04 17:29:00 +02:00
Nathan Adams
937664e737
chore: Use workspace version for bytemuck
2024-04-04 17:29:00 +02:00
Nathan Adams
4e3cd75c30
chore: Use workspace version for bitflags
2024-04-04 17:29:00 +02:00
Nathan Adams
8a390163d6
chore: Use workspace version for async-channel
2024-04-04 17:29:00 +02:00
Nathan Adams
8e4127aef6
chore: Use workspace version for anyhow
2024-04-04 17:29:00 +02:00
Nathan Adams
f18d890bea
frontend-utils: Move Bookmark from desktop
2024-04-04 11:16:50 +02:00
Nathan Adams
2b4cec664a
frontend-utils: Made ParseResult return a DocumentHolder directly
2024-04-04 11:16:50 +02:00
Nathan Adams
2bd28c9c1c
frontend-utils: Add a DocumentHolder<T> helper type, use it for preferences and bookmarks
2024-04-04 11:16:50 +02:00
Nathan Adams
5ed6115dcc
frontend-utils: Add new package and moved custom toml parsing utilities there
2024-04-04 11:16:50 +02:00
Kamil Jarosz
53f49eb480
avm2: Update comments related to stageFocusRect
...
Although full AVM2 support is not there yet, stageFocusRect is
not ignored anymore.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
7f3c046a76
tests: Add focusrect_swf5 test
...
This test verifies the behavior of _focusrect for SWF5.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
cebd7f0e5c
tests: Add focusrect_swf6 test
...
This test verifies the behavior of _focusrect for SWF6.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
84d24fdd50
core: Use focus_rect to control highlight rendering
...
The field `focus_rect` is available for each interactive object,
and its value is used to control highlight rendering.
The notable exception is the TextField, which despite having a focus,
is incapable of rendering a highlight.
That is why the `focus_rect_supported` field has been added
to control this behavior.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
254cdabaf3
tests: Add focusrect_property_swf5 test
...
This test verifies the behavior of _focusrect for SWF 5.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
7510780c67
tests: Add focusrect_property_swf6 test
...
This test verifies the behavior of _focusrect for SWF 6.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
fe43e1aa6a
tests: Add focusrect_property_swf7 test
...
This test verifies the behavior of _focusrect for SWF 7.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
76b8b5e438
avm1: Add support for _focusrect property
...
The property `_focusrect` allows specifying whether an object should be
highlighted by keyboard focus. For SWF <=5 that was possible globally,
and since SWF 6 the global option only has been the default,
which may be overridden using a local `_focusrect` property.
2024-04-04 10:58:42 +02:00
Kamil Jarosz
da9ee141dc
avm1: Mark applicable Object properties as SWF6+
...
Some of the Object properties are available only in SWF6+.
2024-04-04 10:58:42 +02:00
Crowdin Bot
51d91b2c17
chore: Update translations from Crowdin
2024-04-04 00:02:09 +02:00
sleepycatcoding
92f437ec15
desktop: Add storage backend preference
2024-04-03 23:44:27 +02:00
sleepycatcoding
9cab16eb68
desktop: use location instead of url
...
URL might be a bit misleading when you can also use local files as bookmarks.
2024-04-03 22:20:55 +02:00
sleepycatcoding
02a27db372
desktop: add bookmark add dialog
...
Now you can add bookmarks while not playing anything, fields are defaulted based on the current movie (if there is one).
2024-04-03 22:20:55 +02:00
sleepycatcoding
5cb9988183
desktop: custom bookmark names
...
Bookmark names can now be changed by the user, defaults to the URL file.
2024-04-03 22:20:55 +02:00
sleepycatcoding
231fbb7d66
desktop: redesign bookmark UI
...
lets be fair, the previous one was ugly + this one allows you to actually
change the URL!
2024-04-03 22:20:55 +02:00
sleepycatcoding
077cf7c77b
desktop: split PathOrUrlField into widgets module
...
Makes possible to reuse this element in bookmarks UI
2024-04-03 22:20:55 +02:00
sleepycatcoding
e30c866484
desktop: recreate bookmark array of tables if type is incorrect
2024-04-03 22:20:55 +02:00
sleepycatcoding
fb93ef9cb6
desktop: allow multiple bookmarks with the same URL
2024-04-03 22:20:55 +02:00
sleepycatcoding
e1f9b5e5df
desktop: add UI for bookmarks
2024-04-03 22:20:55 +02:00
sleepycatcoding
0b7b9eb0a1
desktop: add `bookmarks.toml` file for storing bookmark data
...
This is in a separate file to not create clutter in the main preferences.toml file.
2024-04-03 22:20:55 +02:00
sleepycatcoding
f657208860
desktop: Refactor preferences system to make it easier to reuse
...
The goal of this refactor is to make it easier to load other TOML files similarly how preferences are loaded currently.
2024-04-03 22:20:55 +02:00
renovate[bot]
fd5646d160
chore(deps): update dependency vite to v5.1.7 [security]
2024-04-03 20:24:54 +02:00
Crowdin Bot
a8136c45e1
chore: Update translations from Crowdin
2024-04-03 09:19:19 +02:00
TÖRÖK Attila
9822e96b41
chore: Bump `egui` to `v0.27.2`
2024-04-03 08:01:53 +02:00
TÖRÖK Attila
6de12dd59c
ci: Fix the name of the no-op `check-required` job in the `Test Web` workflow
2024-04-02 19:27:24 +02:00
Kamil Jarosz
501b42c63f
tests: Add tab_ordering_movieclip_enabled_default test
...
This test verifies the logic behind the default value of
`MovieClip.tabEnabled` when it's undefined.
2024-04-02 00:31:34 +02:00
Kamil Jarosz
d4b74db133
core: Default value logic for MovieClip.tabEnabled
...
The default value of `MovieClip.tabEnabled` is neither trivial
nor well-documented. This patch implements the logic behind
the default value of `MovieClip.tabEnabled` and covers it with tests.
2024-04-02 00:31:34 +02:00
Kamil Jarosz
6d08d2afb0
core: Make the default value lazy in get_avm1_boolean_property
2024-04-02 00:31:34 +02:00
Daniel Jacobs
c7166c2eea
ci: Don't notify Discord when the Wiki changes
2024-04-02 00:13:34 +02:00
Kamil Jarosz
a150fb3e69
tests: Add focus_highlight/focus_highlight_render
2024-04-01 23:38:59 +02:00
Kamil Jarosz
04eedcd4b4
tests: Add focus_highlight/focus_highlight_basic
2024-04-01 23:38:59 +02:00
Kamil Jarosz
95983bf4f3
core: Render yellow highlight on keyboard focus
...
This patch implements rendering of the yellow rectangle around
a focused element after pressing Tab. Focus tracker which is responsible
for keeping track of the current focus is now also responsible
for keeping track of the highlight and rendering thereof.
2024-04-01 23:38:59 +02:00
Kamil Jarosz
068363a87c
swf: Add Rectangle::grow method
2024-04-01 23:38:59 +02:00
Kamil Jarosz
1a250f0144
core: Move FocusTracker to Stage
2024-04-01 23:38:59 +02:00
sleepycatcoding
6a74af5f6f
desktop: pop keys off of `ParseContext` regardless if parse succeeded
...
previously the keys were not popped off on some code paths,
resulting in incorrect diagnostics later down the road.
2024-04-01 23:15:42 +02:00