Jeremy Soller
ac28f5d77c
Update dependencies
2022-12-15 14:48:27 -07:00
Jeremy Soller
445da52efb
Fix inverted colors in libcosmic example
2022-12-14 09:24:54 -07:00
Jeremy Soller
d22c0f43d4
Update to latest libcosmic
2022-12-06 08:49:32 -07:00
Jeremy Soller
ee54e7626b
Vi-style editor and other editor improvements ( #40 )
...
* WIP VI wrapper for editor
* WIP: block cursor
* Create Edit trait, run CI on all feature options
* Add prints describing build steps to ci.sh
* Custom rendering for Vi editor
* Clippy fixes
* More clippy fixes
* Show clippy results in CI
* Fix for Redox
* Fix clippy lint
* Add vi feature to enable vi-style editor
* Add escape to libcosmic text box
2022-11-15 12:26:59 -07:00
Hojjat
b253800383
Add Padding to the TextBox ( #36 )
...
* WIP: initial text-margin support
* Fix the selection issue when clicking the margins
* Move the margin size into the main
* using padding, consistent with iced text_input
* Added top and bottom margin
* bugfix: selection starting from the top margin works
* bugfix: left half of first glyph was being ignored
2022-11-10 11:55:12 -07:00
Jeremy Soller
bbe7d77b7b
Improvements to syntax editor, integrate with libcosmic editor
2022-11-09 10:44:51 -07:00
Jeremy Soller
1663bfc96c
Add SyntaxEditor abstraction using optional synect feature
2022-11-09 10:09:42 -07:00
Jeremy Soller
ecf61a93b1
Update to use cosmic::theme::Theme
2022-11-09 08:03:13 -07:00
Jeremy Soller
268805ba0c
no_std support
2022-11-08 13:24:14 -07: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
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
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
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
b9c01f1a81
Make rich text example editable
2022-10-27 14:52:10 -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
edf32ddd68
Fix editor-test
2022-10-27 11:22:57 -06:00
Jeremy Soller
bbf8ea7431
Add terminal example
2022-10-27 11:15:08 -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
Jeremy Soller
212afb1561
Merge syntax into orbclient editor
2022-10-27 09:16:21 -06:00
Jeremy Soller
3ece9236b3
Use Color in more places
2022-10-27 09:07:47 -06:00
Jeremy Soller
f133b1fca1
Improve API to set line attributes
2022-10-27 08:37:07 -06:00
Jeremy Soller
1e1164f4b2
Cache syntax highlighting results
2022-10-26 22:25:37 -06:00
Jeremy Soller
f85223b376
Only reset lines where highlight changes
2022-10-26 21:27:29 -06:00
Jeremy Soller
5d1aa8b814
Add simple per-glyph wrapping option
2022-10-26 19:56:13 -06:00
Jeremy Soller
846c646043
Syntax highlighting while editing
2022-10-26 19:31:33 -06:00
Jeremy Soller
3444b30d7e
Allow syntax detection to fail
2022-10-26 18:57:21 -06:00
Jeremy Soller
4f0ce39f3e
Automatic file type detection
2022-10-26 18:53:25 -06:00
Jeremy Soller
559a83faa5
Improve attribute setting
2022-10-26 18:45:31 -06:00
Jeremy Soller
536c24355c
Always redraw on resize
2022-10-26 18:13:14 -06:00