Commit graph

359 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Héctor Ramón Jiménez
419d9374b7
Fix outstanding broken intradoc links 2023-09-09 21:08:23 +02:00
Héctor Ramón Jiménez
f60884f6f8
Deny broken_intradoc_links and verify documentation in CI 2023-09-09 20:58:45 +02:00
Matthias Vogelgesang
89d9f1d7d2 Fix majority of unresolved documentation links 2023-09-09 18:59:17 +02:00
Héctor Ramón Jiménez
3450987355
Invalidate existing paragraphs when new fonts are loaded 2023-09-09 11:21:32 +02:00
Héctor Ramón Jiménez
90cbab18b9
Fine-tune Radians::to_distance
An angle of 0 radians will "point" to the top-center of a `Rectangle` and
then increase clockwise.
2023-09-08 02:36:17 +02:00
Héctor Ramón Jiménez
d2294737c2
Use Radians as a number directly in gradient example 2023-09-08 01:58:52 +02:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
34495bba1c
Introduce keyed::Column widget 2023-09-04 02:55:09 +02:00
Héctor Ramón Jiménez
020fb3c377
Fix iced_wgpu device selection on Wasm 2023-09-03 01:04:23 +02:00
Héctor Ramón Jiménez
b51ffe53ed
Fix unnecessary dereference in widget::text 2023-08-30 06:44:40 +02:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout 2023-08-30 06:36:24 +02:00
Héctor Ramón Jiménez
c44611cc7d
Fix vertical alignment in layout::next_to_each_other 2023-08-30 05:33:39 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Héctor Ramón
3bea1f703c
Merge pull request #2041 from lufte/issue-2040
Make the style attribute available on Font
2023-08-20 14:22:46 +02:00
lufte
e86363837d Make the style attribute available on Font 2023-08-18 18:46:22 -03:00
Andrew Wheeler(Genusis)
f5b9562900
Bounds Contains update. (#2017)
* changed the way contains works to exclude <= for point.y and point.x on width and height check to avoid multiple selects

* update changelog

* Update `CHANGELOG`

---------

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-08-15 07:47:53 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉 2023-07-28 19:48:39 +02:00
Héctor Ramón Jiménez
e2ba7ece83
Introduce visible_bounds operation for Container 2023-07-27 01:04:18 +02:00
Bingus
83c7870c56
Moved exit_on_close_request to window settings. This now controls whether each INDIVIDUAL window should close on CloseRequested events. 2023-07-24 14:32:59 -07:00
Bingus
d53ccc857d
refactored window storage;
new helper window events (Destroyed, Created);
clippy + fmt;
2023-07-21 13:53:38 -07:00
Cory Forsstrom
42c423b4a8 Add viewport to Widget::on_event 2023-07-15 10:04:25 -07:00