Skip to content

LegitCamper/icy_browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iced library to create custom browsers

Build

Browser Widgets

Currently only supports Ultralight which has its own licence you should review

  • Navigation Bar
  • Tab Bar
  • Bookmark Bar

Examples

basic_browser.rs

cargo run --example basic_browser --features ultralight-resources

use iced::{Settings, Task, Theme};
use icy_browser::{get_fonts, Bookmark, IcyBrowser, Message, Ultralight};

fn run() -> (IcyBrowser<Ultralight>, Task<Message>) {
    (
        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)
}

About

A collection of iced.rs widgets to create browsers

Topics

Resources

License

Stars

Watchers

Forks

Languages