Commit graph

581 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
fd8f980b88
Use max_cross if all elements are fluid in layout::flex 2024-01-04 06:53:07 +01:00
Héctor Ramón Jiménez
aa3c956516
Fix available space provided to children with non-fill main axis but fill cross axis 2024-01-04 06:53:07 +01:00
Héctor Ramón Jiménez
89418c1244
Determine cross-axis max length based on contents if Shrink 2024-01-04 06:53:06 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Héctor Ramón Jiménez
1481f0c0a4
Use latest raw-window-handle in iced_core 2023-12-15 14:04:30 +01:00
Héctor Ramón Jiménez
e819c2390b
Update winit to 0.29.4 2023-12-15 13:39:00 +01:00
Héctor Ramón
fc285d3e46
Merge pull request #1964 from bungoboingo/feat/multi-window-support
[Feature] 🪟 Multi Window 🪟 .. redux!
2023-12-05 01:03:09 +01:00
Héctor Ramón Jiménez
ea42af766f
Use AtomicU64 for window::Id 2023-12-02 20:41:58 +01:00
Héctor Ramón Jiménez
b526ce4958
Rename viewport to clip_bounds 2023-12-02 15:56:28 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds 2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
67408311f4
Use actual floats for logical coordinates 2023-11-30 23:40:33 +01:00
Héctor Ramón Jiménez
6dca076c8b
Use workspace dependency for raw-window-handle 2023-11-29 22:32:41 +01:00
Héctor Ramón Jiménez
e09b4e24dd
Merge branch 'master' into feat/multi-window-support 2023-11-29 22:28:31 +01:00
Héctor Ramón Jiménez
25006b9c6f
Fix Overlay composition
Translations were not easily composable.
2023-11-21 14:41:22 +01:00
Héctor Ramón Jiménez
a5125d6fea
Refactor texture image filtering
- Support only `Linear` or `Nearest`
- Simplify `Layer` groups
- Move `FilterMethod` to `Image` and `image::Viewer`
2023-11-11 07:22:51 +01:00
Remmirad
4b32a48880
Fix clippy + fmt 2023-11-11 07:21:51 +01:00
Remmirad
5759096a4c
Implement texture filtering options 2023-11-11 07:21:51 +01:00
dtzxporter
98e088e731
Migrate twox-hash -> xxhash_rust. Switch to Xxh3 for better performance.
xxhash-rust is more maintained, built against `::core`, so no workaround for wasm is necessary. Switch to Xxh3 for better performance, which shows when loading/hashing image buffers.
2023-11-11 03:40:22 +01:00
Héctor Ramón Jiménez
57f9024e89
Fix intra-doc broken links 2023-10-27 05:19:35 +02:00
Héctor Ramón Jiménez
625cd745f3
Write documentation for the new text APIs 2023-10-27 05:04:14 +02:00
Héctor Ramón Jiménez
6582387579
Merge branch 'master' into text-editor 2023-10-27 03:58:45 +02:00
Héctor Ramón Jiménez
f137d71e8f
Centralize clippy lints in .cargo/config.toml 2023-09-20 16:40:03 +02:00
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
2023-09-20 16:26:43 +02:00
Héctor Ramón Jiménez
6c386e90a1
Fix clippy::trivially-copy-pass-by-ref 2023-09-20 04:33:48 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned 2023-09-20 04:11:52 +02:00
Héctor Ramón Jiménez
be340a8cd8
Fix gamma correction for colored glyphs in iced_wgpu 2023-09-19 23:00:20 +02:00
Héctor Ramón Jiménez
f806d001e6
Introduce new iced_highlighter subcrate 2023-09-19 20:48:50 +02:00
Héctor Ramón
e8b01eb543
Merge pull request #2092 from nyurik/clippy
Chore: Apply some minor clippy fixes
2023-09-19 13:30:51 +02:00
Héctor Ramón
2ee2c65894
Merge pull request #2091 from nyurik/docs
Chore: Apply clippy docs keyword quoting
2023-09-19 13:26:52 +02:00
Yuri Astrakhan
efd0ff6ded Chore: Apply some minor clippy fixes
* Use `.elapsed()` for duration
* Use direct iteration without calling `.iter()` and the like
* order fields in the `Text` struct creation as declared
2023-09-19 01:52:25 -04:00
Yuri Astrakhan
c6554d9907 Chore: Apply clippy docs keyword quoting
Add quotes a number of doc strings like `sRGB`
2023-09-19 01:50:05 -04:00
Yuri Astrakhan
c997aad85d Chore: Apply clippy map transformations
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19 01:46:46 -04:00
Héctor Ramón Jiménez
4e757a26d0
Implement Scroll action in text::editor 2023-09-19 01:18:06 +02:00
Héctor Ramón Jiménez
8eec0033de
Remove unnecessary monospaced flag in Font 2023-09-18 19:24:09 +02:00
Héctor Ramón Jiménez
e7326f0af6
Flesh out the editor example a bit more 2023-09-18 19:07:41 +02:00
Héctor Ramón Jiménez
8446fe6de5
Implement theme selector in editor example 2023-09-18 14:38:54 +02:00
Héctor Ramón Jiménez
2897986f2d
Notify Highlighter of topmost line change 2023-09-17 19:27:51 +02:00
Héctor Ramón Jiménez
d3011992a7
Implement basic syntax highlighting with syntect in editor example 2023-09-17 19:04:23 +02:00
Héctor Ramón Jiménez
76dc82e8e8
Draft Highlighter API 2023-09-17 15:29:14 +02:00
Héctor Ramón Jiménez
45c5cfe577
Avoid drag on double or triple click for now in TextEditor 2023-09-16 19:05:31 +02:00
Héctor Ramón Jiménez
d051f21597
Implement Copy and Paste actions for text::Editor 2023-09-16 15:40:16 +02:00
Héctor Ramón Jiménez
c6d0443627
Implement methods to query the contents of a TextEditor 2023-09-16 15:27:25 +02:00
Héctor Ramón Jiménez
8e6e37e0ce
Fix broken intra-doc links 2023-09-14 19:05:50 +02:00
Héctor Ramón Jiménez
c7d02e24e6
Remove Editor::min_bounds and use bounds instead 2023-09-14 18:57:09 +02:00
Héctor Ramón Jiménez
b24b94d827
Handle motions when a selection is present in text::Editor 2023-09-14 14:18:49 +02:00
Héctor Ramón Jiménez
f4c51a96d5
Introduce Motion concept in core::text::editor 2023-09-13 16:11:43 +02:00
Héctor Ramón Jiménez
1455911b63
Add Enter variant to Action in text::Editor 2023-09-12 15:03:23 +02:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00
Héctor Ramón Jiménez
346af3f8b0
Make FontSystem global and simplify Paragraph API 2023-09-11 02:47:24 +02:00
Héctor Ramón Jiménez
b42b24b79a
Fix (more) broken intradoc links
Good thing I just set up CI earlier for this 😅
2023-09-10 00:55:46 +02:00