Hojjat
83307e7969
Switch to peekable to avoid looping the runs again
2022-11-06 11:09:17 -07:00
Hojjat
c1c2248572
bugfix: text selection starting from the bottom
2022-11-06 11:09:17 -07:00
grovesNL
2ceee35011
Fix typo in "performance"
2022-11-05 09:15:24 -06:00
Hugo Osvaldo Barrera
ae25b6c1b9
Add links to repo and docs in Cargo.toml
...
This will add a link to the repository in docs.rs, and both links to
crates.io.
2022-11-04 12:46:57 -06:00
Jeremy Soller
093a6081bc
0.4.0
2022-11-04 10:39:00 -06:00
Jeremy Soller
ebd7c4058b
Fix editor-test compilation
2022-11-04 10:38:47 -06:00
Ian Douglas Scott
0d3fb1dd9d
Use ouroboros in FontSystem to avoid lifetime bound
...
Perhaps not quite what ouroboros is expected to be used for, but it's
not too bad, and avoiding the lifetime bound can be a huge help.
2022-11-04 10:37:32 -06:00
Jeremy Soller
ac354c3a2a
Remove AttrsList lifetime bound
2022-11-04 09:44:54 -06:00
tarkah
06cb0c2637
Refactor to text::draw_pixel helper
2022-11-04 09:11:57 -06:00
tarkah
9e389b629b
Resolve size using limits
2022-11-01 16:06:50 -06:00
Jeremy Soller
8efebfcd07
iced TextBox improvements
2022-11-01 09:09:36 -06:00
Jeremy Soller
9a6a01a672
Add script to build everything and run all tests
2022-11-01 08:38:44 -06:00
Jeremy Soller
d49e8881fd
Use image renderer for iced text widget
2022-10-31 12:04:33 -06:00
Jeremy Soller
b0ec548a5e
0.3.0
2022-10-31 11:40:01 -06:00
Jeremy Soller
a13fd9c591
Improve docs
2022-10-31 11:36:54 -06:00
Jeremy Soller
7d26e332f0
Make cursor_moved private
2022-10-31 11:26:05 -06:00
Jeremy Soller
92cad6fe13
Decouple editing from buffer
2022-10-31 11:24:36 -06:00
Jeremy Soller
26c83be35a
Combine spans in add_span if possible
2022-10-31 10:25:08 -06:00
Andrew Wheeler(Genusis)
f2a60a8dcc
Rework add_span ( #25 )
...
* Rework Ranges to split and change or overwrite based on old ranges to new range
* set array size to 3 instead of 5. added some comments
* Avoid adding ranges that the start and end == each other
* actually remove the start != end requirement since get_span doesnt care and would work for single characters.
* Add 1 to forward map so it cant overlap ranges like 11..11
* optimize the span lookup so if it is outside the search parameters it doesnt keep looping. update get span to iterate normally since there should be no duplicates. Maybe optimize this to a btree now instead?
* make the range changes for front to end have the end -1 so as to not overlap since get span is <=
* Readded block for ranges like 1..1
Moved rework ranges into the first loop.
Removed the -1 and +1 from the range clips.
2022-10-29 17:56:14 -06:00
tarkah
9e9a14f323
Update text color on theme change
2022-10-29 17:31:50 -06:00
tarkah
972a3c722a
Set attrs on launch
2022-10-29 17:31:50 -06:00
Jeremy Soller
a1f767505e
Clarify off by one issue
2022-10-27 20:31:20 -06:00
Jeremy Soller
c247bbdad2
Move cache to text box state
2022-10-27 20:31:05 -06:00
Jeremy Soller
4e2e41470b
0.2.2
2022-10-27 18:29:41 -06:00
Jeremy Soller
bd327e4a21
Add text color to TextBox, fix resizing
2022-10-27 18:28:52 -06:00
Jeremy Soller
091b9d2840
Text widget get color from theme
2022-10-27 18:20:29 -06:00
Jeremy Soller
f229e06d83
Use new Text widget for all text
2022-10-27 18:16:58 -06:00
Jeremy Soller
a4a4eb7783
Fix rgba ordering
2022-10-27 18:16:42 -06:00
Jeremy Soller
cb7ec05d76
Improve Text widget
2022-10-27 17:40:01 -06:00
Jeremy Soller
88bd1c9235
Add layout_opt and shape_opt getters to TextBufferLine
2022-10-27 17:40:00 -06:00
Jeremy Soller
46a922194c
Update roadmap
2022-10-27 16:19:51 -06:00
Jeremy Soller
fae1477136
Add text label using cosmic-text
2022-10-27 16:16:28 -06:00
Jeremy Soller
c90dc58fef
Store text_box pixels in widget state
2022-10-27 15:17:52 -06:00
Jeremy Soller
5d38951338
Merge libcosmic examples - iced fork supports pixel perfect images
2022-10-27 15:06:00 -06:00
Jeremy Soller
52be09ec17
0.2.1
2022-10-27 15:00:23 -06:00
Jeremy Soller
b9c01f1a81
Make rich text example editable
2022-10-27 14:52:10 -06:00
Jeremy Soller
cce821e99f
Adjust attribute spans when buffer lines change
2022-10-27 14:51:46 -06:00
Jeremy Soller
e2b9aa77b9
Iterate attr spans in reverse for efficiency
2022-10-27 13:50:14 -06:00
Jeremy Soller
ed9a3b7840
Add a libcosmic editor sample that uses the image renderer (WIP)
2022-10-27 13:46:04 -06:00
Jeremy Soller
dbe223acba
Add redoxer example
2022-10-27 12:07:05 -06:00
Jeremy Soller
650b9a7219
Add badges
2022-10-27 11:48:06 -06:00
Jeremy Soller
8e1b918594
Add github pages task
2022-10-27 11:30:13 -06:00
Jeremy Soller
edf32ddd68
Fix editor-test
2022-10-27 11:22:57 -06:00
Jeremy Soller
1851859690
Add GitHub CI
2022-10-27 11:20:22 -06:00
Jeremy Soller
7980fb65f1
0.2.0
2022-10-27 11:15:46 -06:00
Jeremy Soller
bbf8ea7431
Add terminal example
2022-10-27 11:15:08 -06:00
Jeremy Soller
2b1e884ca7
Use SwashCache in doc example
2022-10-27 11:02:56 -06:00
Jeremy Soller
8f8cf80bf6
Update documentation
2022-10-27 10:29:19 -06:00
Jeremy Soller
e4c8d4ba6b
Make attribute spans use ranges and update docs
2022-10-27 09:56:53 -06:00
Jeremy Soller
16f0eb9efe
Re-add scrollbar to orbclient editor
2022-10-27 09:18:27 -06:00