Commit graph

146 commits

Author SHA1 Message Date
Jeremy Soller
659001dad8 editor-orbclient: fix scaling 2023-11-07 15:56:43 -07:00
Jeremy Soller
ad10e7373b
Require default Attrs to be specified in set_rich_text 2023-10-27 13:08:27 -06:00
Huang-Huang Bao
68ec25d38a
Fix building editor-libcosmic with vi feature
The vi editor has no update_theme method, fix it with feature gate.
2023-09-17 11:52:34 +08:00
tigregalis
0d9173c05b update rich_text example with set_rich_text 2023-06-27 21:56:17 +08:00
Jeremy Soller
e7f3e161b4
Merge pull request #145 from 0HyperCube/update-libcosmic-version
Update libcosmic version
2023-06-26 06:29:02 -06:00
0hypercube
f6f56a93be Update libcosmic example version 2023-06-25 12:01:18 +01:00
0hypercube
bc1a327371 Add light syntax highligher to libcosmic example 2023-06-25 11:58:10 +01:00
tigregalis
053efa77b6 remove todo comment 2023-06-09 11:26:08 +08:00
tigregalis
6e336ad1cd replace use of str::lines with BidiParagraphs 2023-06-09 11:26:07 +08:00
Héctor Ramón Jiménez
0dce8b75d1
Fix examples 2023-04-21 20:35:59 +02:00
Jeremy Soller
615dc51907
Merge pull request #119 from CryZe/fix-no-std-signature
Fix `FontSystem::new_with_locale_and_db` Signature
2023-03-31 06:42:26 -06:00
Jeremy Soller
3c7dc1f657
Remove monospaced from attrs 2023-03-30 08:04:52 -06:00
Christopher Serr
71281a5d79 Fix FontSystem::new_with_locale_and_db Signature
It turns out that the `no_std` version of
`FontSystem::new_with_locale_and_db` doesn't match the `std` version.
This fixes that.
2023-03-29 22:36:54 +02:00
Jeremy Soller
6c355bf08b
Update libcosmic to fix memory leak 2023-03-24 09:59:03 -06:00
Jeremy Soller
3bb2868fbf
Update libcosmic 2023-03-24 08:05:46 -06:00
Jeremy Soller
d85f12af8b
Fix #106 with editor-libcosmic 2023-03-24 07:51:31 -06:00
Jeremy Soller
31a8427e10
Update libcosmic 2023-03-23 14:20:48 -06:00
Jeremy Soller
f101f5ca93 Merge branch 'example-deps' of https://github.com/geieredgar/cosmic-text into geieredgar-example-deps 2023-03-17 18:18:20 -06:00
Edgar Geier
384c5c1fdc
Remove Mutex from FontSystem 2023-03-12 10:39:56 +01:00
Edgar Geier
46e9ef0246
Make BorrowedWithFontSystem borrow FontSystem mutably 2023-03-12 10:39:56 +01:00
Edgar Geier
057b5b6fa9
Extract borrow of FontSystem from Buffer 2023-03-12 10:39:54 +01:00
Edgar Geier
d59fd3f46b
Update example dependencies 2023-03-06 22:43:25 +01:00
Edgar Geier
17102f5144
Fix clippy warnings 2023-03-03 18:59:45 +01:00
Jeremy Soller
bd27ca8ad8
Merge pull request #88 from geieredgar/clippy-fixes
Fix clippy warnings
2023-03-02 14:53:08 -07:00
Edgar Geier
6c501c6640
Fix clippy warnings 2023-03-01 22:58:41 +01:00
Edgar Geier
4e93853765
Remove lifetime from SwashCache 2023-03-01 22:41:59 +01:00
Jeremy Soller
2b991129e3
Fix editor-test 2023-03-01 11:46:41 -07:00
Héctor Ramón Jiménez
4320ae6329
Use f32 instead of i32 for lengths
This allows users to use logical coordinates instead of physical ones.
2023-02-28 03:39:31 +01:00
Hojjat
260748afe7 Make sure the lines exists before applying the alignment 2023-02-24 10:07:23 -07:00
Hojjat
fff8389bbf Allow set_align to clear the alignment by setting it to None 2023-02-24 08:39:24 -07:00
Hojjat
45f6474a74 Apply alignment to selection in editor-libcosmic 2023-02-23 18:25:41 -07:00
Hojjat
d313713f44 Removed alignment from Buffer, added alignment per Bufferline to editor-libcosmic 2023-02-23 14:23:56 -07:00
Hojjat
2442422762 Add justification buttons to editor-libcosmic 2023-02-22 21:59:03 -07:00
Hojjat
00ff5b72f3 Align Left, Right, and Center works 2023-02-22 18:31:49 -07:00
Jeremy Soller
8cc988d374 Run cargo fmt 2023-01-04 20:03:03 -07:00
Andrew Wheeler
8614a7a398 Updated RangeMap to Add Clear(). 2022-12-30 08:33:00 -07:00
Hojjat
b9fef72f76 Added an enum with the option for "No Wraping" 2022-12-20 13:38:34 -07:00
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