Commit graph

1816 commits

Author SHA1 Message Date
Simon Hausmann
a9f9e43d81
Android: Improve appearance of some examples (#10288)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
Use the safe-area insets.
2025-12-16 12:09:14 +01:00
Simon Hausmann
f28bedb4e1 WIP: Add Safety Critical UI Demo
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-12-12 21:35:06 +01:00
burhankhanzada
a3baa4f6c0 feat: Update OpenGL ES and GL versions
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-12-10 21:25:37 +01:00
Simon Hausmann
8a95bc557a servo: Update lock file after separation of the slint software renderer into a crate of its own
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-12-10 18:26:14 +01:00
Simon Hausmann
26461e8184 CI: Run cargo fmt not only in the root but in all cargo workspaces 2025-12-10 18:24:28 +01:00
Simon Hausmann
062cd6a5d6 opengl texture example: fix edition 2024 warnings 2025-12-10 09:04:23 +01:00
Simon Hausmann
60439f2921 opengl texture example: Upgrade to edition 2024 2025-12-10 09:04:23 +01:00
Simon Hausmann
16e9228e46 Bevy example: Fix compilation
The example is not part of the workspace, so we can't use
workspace.edition. Upgrade to 2024 formatting while at it.
2025-12-10 08:21:15 +01:00
burhankhanzada
51b52487ab fix: Url bar not updating when user input something but dosent hit enter or go button then navigation links from webview 2025-12-09 15:15:09 +01:00
burhankhanzada
325ff2836b fix: drawing behind status bar on android 2025-12-09 15:15:09 +01:00
burhankhanzada
10d3a60731 refactor: use only GLES 2025-12-09 15:03:47 +01:00
burhankhanzada
d77852b6c6 refactor: cleanup 2025-12-09 15:03:47 +01:00
Olivier Goffart
5c69db596a
Split the software renderer in its own crate: i-slint-renderer-software (#10229)
The goal is to be able to enable feature conditionally with `i-slint-renderer-software/?...`

NOTE: this change the implementation of
`SceneBuilder::platform_text_fill_brush/platform_text_stroke_brush`
It was warning about `non_exhaustive_omitted_patterns`.
And it changed it to always return the brush color so gradient gets
converted to plain color instead of None.
This is the behavior with the non-parley renderer
2025-12-09 14:17:05 +01:00
autofix-ci[bot]
590c9b7864 [autofix.ci] apply automated fixes
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-12-09 12:11:04 +01:00
David Faure
29e289fbdf Move the workspace to rust edition 2024
Motivation: the git pre-commit hook is confused by the mix of 2021 and
2024 in the same workspace...

The only problem this raises is the std::env::set_var("LANGUAGE", lang) in
demos/printerdemo/rust/lib.rs, pre-existing but now explicitly marked as unsafe
because it actually is. Added a TODO there.
2025-12-09 12:11:04 +01:00
burhankhanzada
566114073f refactor: use vulkan implementation on android 2025-12-09 09:19:34 +01:00
burhankhanzada
79bf77a766 refactor: remove all not android cfgs 2025-12-09 09:19:34 +01:00
Simon Hausmann
bcf4f16459
Fix wasm build with getrandom (#10219)
Some checks failed
autofix.ci / format_fix (push) Has been cancelled
autofix.ci / lint_typecheck (push) Has been cancelled
autofix.ci / ci (push) Has been cancelled
2025-12-06 11:19:01 +01:00
David Faure
41be30ee6a Port from vec![] to Vec::new()
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
vec![] expands to Vec::new(), but expanding macros takes a bit of
time and takes memory in rust-analyzer. Also, the code was using a mix
of vec![] and Vec::new(), so this is more consistent.
2025-12-05 16:53:45 +01:00
Olivier Goffart
47a3cd3761 Janitor: Update rand dependency 2025-12-05 16:51:18 +01:00
Tasuku Suzuki
187a2e91d9
Simplify dial example by using inline property bindings (#10205)
Compute relativeX/relativeY as inline bindings instead of updating them
in the event handler. Also use grabbing cursor for better UX.
2025-12-05 10:34:45 +02:00
Olivier Goffart
88697c68bb Remove license header from .md/.mdx files
They should be in the lines, but the problem is that this causes issues
in the .mdx files.

License header doesn't really make sense for .md files anyway
2025-12-04 21:58:09 +01:00
Tasuku Suzuki
010f6e6810
Add Japanese translations for new menu items (#10193)
Translate "MenuItem with Icon" and "MenuItem with Checkmark" to Japanese.
2025-12-02 10:46:15 +01:00
Montel Laurent
ec5a84b263
Add Spinbox read only support (#10133) 2025-12-01 13:31:00 +01:00
burhankhanzada
f9dfde1171 refactor: move ColorScheme to the new slint::language module 2025-11-26 15:38:03 +01:00
burhankhanzada
fdf518b4ed refactor: use platform::Key for SlintKey import 2025-11-26 15:38:03 +01:00
burhankhanzada
3d6ef41fe5 refactor: remove i_slint_core and replace with private_unstable_api 2025-11-26 15:38:03 +01:00
Burhan Khanzada
7c755ee17d
servo: Improvments and fixs (#10147)
* fix: Url bar update when navigate to links
* fix: User can now input in input fields on websites
* feat: expand key mapping in `key_from_text` to support more Slint key events.
* docs: Update README
* chore: Use slint isntead i_slint_core for import where possible
* feat: Convert invalid url to search query of google
* refactor: consolidate event utility modules into a new `events_utils` module.
* refactor: imporve code
* refactor: improve imports
2025-11-25 17:00:29 +01:00
Olivier Goffart
01076a67a7
Update parley and fontique (#10148)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
2025-11-25 14:31:29 +01:00
Olivier Goffart
cfdb39a808 Revert "Update parley and fontique" and related
Some checks are pending
autofix.ci / ci (push) Blocked by required conditions
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
This reverts commit e15b5e1e75.
This reverts commit 584685b990.
This reverts commit 7e46ffa8ce.

This was bushed too realy and brak CI
2025-11-24 16:37:05 +01:00
Olivier Goffart
584685b990 Fix CI after fontique update 2025-11-24 16:13:59 +01:00
Burhan Khanzada
e01af64ac2
servo: Prepare for usage docs (#10121)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
* refactor: Consolidate Servo initialization and event handling into a new `webview` module.

* [autofix.ci] apply automated fixes

* refactor: Move webview-related modules into the `webview` directory and update all internal import paths.

* refactor: move servo field to inner struct and add direct accessor

* docs: Add docs for webview module

* docs: Change webview module to public and improve example in docs

* [autofix.ci] apply automated fixes

* docs: Improve example in docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-21 11:45:18 +01:00
Burhan Khanzada
164b58ab46
servo: Improve Code (#10119) 2025-11-19 17:38:17 +01:00
Burhan Khanzada
9a1665c5fc
Servo encapsulation and cleanup (#10108)
- Initialize WGPU manually
- Improve code
2025-11-19 09:08:10 +01:00
Tasuku Suzuki
224a06af57
Gallery Example: Add i18n and dynamic font loading for WASM (#9762)
- Bundle translations for WASM/Android only (not for native builds)
- Load Noto Sans CJK fonts dynamically from GitHub at runtime
- Implement register_font_from_memory() with Result<FontHandle, RegisterFontError>
- Make API automatically available with std feature (no explicit feature flag needed)
- Export load_font_from_bytes() for WASM font loading from JavaScript
- Change from wasm_bindgen(start) to explicit main() call for better control

Fonts are loaded before app initialization to ensure proper CJK text
rendering across all major browsers without bundling font files.

Native builds load translations from lang/ directory at runtime.
WASM/Android builds bundle translations at compile time and detect
browser/system language automatically.

API is now available when std feature is enabled, since we always
have fontique with std. No need for experimental-register-font feature.
2025-11-17 14:00:39 +01:00
Tasuku Suzuki
f0098266f3 mcu-board-support: Remove extraneous line from README
Clean up documentation by removing an extra cargo build command that was incorrectly placed in the STM32U5G9J-DK2 section.
2025-11-17 11:53:09 +01:00
Burhan Khanzada
a344d50149
servo: Mac and Android CI (#10064)
- Adeed Mac and Android CI
- Ignore exmaples/servo/Cargo.lock license
2025-11-14 13:23:25 +01:00
Tasuku Suzuki
3d53701ffe mcu-board-support: Fix memory.x linker precedence for STM32H735G
Copy board-specific memory.x to OUT_DIR and add it to the linker search path. This ensures the STM32H735G board-specific memory.x takes precedence over any generic memory.x from dependencies like ft5336.

Fixes: #10035
2025-11-13 06:56:05 +01:00
Simon Hausmann
7605850706 ffmpeg: Use newer ffmpeg-next version 2025-11-12 15:49:54 +01:00
Simon Hausmann
156930fff4
servo: Fix clean build (#9998)
Servo's script crate uses

    js = { package = "mozjs", git = "https://github.com/servo/mozjs" }

which means it would pick mozjs from master. Inside servo this works
because of the present `Cargo.lock` file that pins it. But the version
of servo we're using doesn't compile with the master branch of mozjs.

Unfortunately the `[patch]` section in `Cargo.toml` can't just change
the revision, only if also the URL changes. So point mozjs to a fork of
ours and then we can pin the correct version that servo also uses.
2025-11-07 15:12:20 +00:00
autofix-ci[bot]
8b6d928a6b [autofix.ci] apply automated fixes 2025-11-07 12:32:25 +00:00
burhankhanzada
1d6ed559b6 Improve load url api 2025-11-07 12:32:25 +00:00
burhankhanzada
46bd8ac70e Initial theme bug fixed by servo 2025-11-07 12:32:25 +00:00
burhankhanzada
c9c8cc36cd update Readme 2025-11-07 12:32:25 +00:00
burhankhanzada
e1962756d4 Updated servo revision and fix api changes 2025-11-07 12:32:25 +00:00
burhankhanzada
9ad155e69a Get app theme 2025-11-07 12:32:25 +00:00
burhankhanzada
2d9d73f3e2 Added some docs 2025-11-07 12:32:25 +00:00
burhankhanzada
3789b6e017 Refactor a little bit 2025-11-07 12:32:25 +00:00
burhankhanzada
b5b83121ba Cleanup 2025-11-07 12:32:25 +00:00
burhankhanzada
0c3f10f80d Added theme change 2025-11-07 12:32:25 +00:00