Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
}
```