Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/legitcamper/icy_browser
A collection of iced.rs widgets to create browsers
https://github.com/legitcamper/icy_browser
browser browsers iced-rs rust webkit-browser
Last synced: about 2 months ago
JSON representation
A collection of iced.rs widgets to create browsers
- Host: GitHub
- URL: https://github.com/legitcamper/icy_browser
- Owner: LegitCamper
- License: apache-2.0
- Created: 2024-06-30T01:39:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T01:02:35.000Z (about 2 months ago)
- Last Synced: 2024-11-11T02:18:17.963Z (about 2 months ago)
- Topics: browser, browsers, iced-rs, rust, webkit-browser
- Language: Rust
- Homepage:
- Size: 1.09 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Iced library to create custom browsers
[![Build](https://github.com/LegitCamper/icy_browser/actions/workflows/ci.yml/badge.svg)](https://github.com/LegitCamper/icy_browser/actions/workflows/ci.yml)
### Browser Widgets
- [iced_webview](https://github.com/LegitCamper/iced_webview)
> Currently only supports [Ultralight which has its own licence](https://ultralig.ht/pricing/) you should review
- Navigation Bar
- Tab Bar
- Bookmark Bar### Examples
#### basic_browser.rs`cargo run --example basic_browser --features ultralight-resources`
``` Rust
use iced::{Settings, Task, Theme};
use icy_browser::{get_fonts, Bookmark, IcyBrowser, Message, Ultralight};fn run() -> (IcyBrowser, Task) {
(
IcyBrowser::new()
.with_tab_bar()
.with_nav_bar()
.bookmarks(&[Bookmark::new("https://www.rust-lang.org", "rust-lang.org")])
.with_bookmark_bar()
.build(),
Task::none(),
)
}fn main() -> iced::Result {
let settings = Settings {
fonts: get_fonts(),
..Default::default()
};iced::application("Basic Browser", IcyBrowser::update, IcyBrowser::view)
.subscription(IcyBrowser::subscription)
.settings(settings)
.theme(|_| Theme::Dark)
.run_with(run)
}
```