Skip to content

Commit

Permalink
Convert editor example to winit
Browse files Browse the repository at this point in the history
Swap color channels

Remove unused code in rich-text-winit example

Port editor example to winit

WIP

Implement scroll logic + add shape_as_needed

Handle text input using named keys

request redraw on click

cargo fmt

Implement dragging

Refactor winit event handlers to avoid duplication

Re-enable text size keyboard shortcuts

Remove unused imports

Fix updating scale factor

Fix unused variable warnings

Remove logging

Remove commented code

Delete rich-text-winit example

Rename editor-winit example to editor
  • Loading branch information
nicoburns authored and jackpot51 committed Mar 3, 2024
1 parent 22e6196 commit 43d3620
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 274 deletions.
272 changes: 0 additions & 272 deletions examples/editor-orbclient/src/main.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "editor-orbclient"
name = "editor"
version = "0.1.0"
authors = ["Jeremy Soller <[email protected]>"]
edition = "2021"
Expand All @@ -11,8 +11,10 @@ cosmic-text = { path = "../..", features = ["syntect"] }
env_logger = "0.10"
fontdb = "0.13"
log = "0.4"
orbclient = "0.3.35"
softbuffer = "0.4"
tiny-skia = "0.11"
unicode-segmentation = "1.7"
winit = "0.29"

[features]
default = []
Expand Down
Loading

0 comments on commit 43d3620

Please sign in to comment.