https://github.com/lleny/iced-memory-editor
Memory editor widget for the Iced/Libcosmic GUI libraries
https://github.com/lleny/iced-memory-editor
cosmic iced iced-rs libcosmic memory-editor rust widget
Last synced: 9 months ago
JSON representation
Memory editor widget for the Iced/Libcosmic GUI libraries
- Host: GitHub
- URL: https://github.com/lleny/iced-memory-editor
- Owner: LLeny
- License: gpl-3.0
- Created: 2025-03-18T12:50:43.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T00:34:42.000Z (9 months ago)
- Last Synced: 2025-04-03T01:25:37.967Z (9 months ago)
- Topics: cosmic, iced, iced-rs, libcosmic, memory-editor, rust, widget
- Language: Rust
- Homepage:
- Size: 8.7 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Iced Memory Editor
A memory editor widget for the [Iced](https://github.com/iced-rs/iced) / [libcosmic](https://github.com/pop-os/libcosmic) GUI frameworks in Rust.
## Running the Example
Clone the repository and run the example:
```bash
git clone https://github.com/LLeny/iced_memory_editor.git
cd iced_memory_editor
cargo run --release --example memory_editor_iced --features iced
cargo run --release --example memory_editor_cosmic --features libcosmic
```
## Usage in Your Project
Add to your `Cargo.toml`:
#### Iced
```toml
[dependencies]
iced_memory_editor = { git = "https://github.com/LLeny/iced_memory_editor.git", features = ["iced"] }
```
#### Libcosmic
```toml
[dependencies]
iced_memory_editor = { git = "https://github.com/LLeny/iced_memory_editor.git", features = ["libcosmic"] }
```
## Styling
```rust
let memory_editor =
memory_editor(&self.content).with_style(iced_memory_editor::style::Style {
background: Color::from_rgb(0.0, 0.0, 0.0),
primary_color: Color::from_rgb(0.0, 100.0, 0.0),
text_color: Color::from_rgb(200.0, 200.0, 200.0),
inactive_text_color: Color::from_rgb(100.0, 100.0, 100.0),
selection_color: Color::from_rgb(150.0, 0.0, 0.0),
selected_text_color: Color::from_rgb(200.0, 200.0, 0.0),
border: Border::default(),
shadow: Shadow::default(),
});
```
## License
This project is licensed under the GPLv3 License - see the LICENSE file for details.