GithubHelp home page GithubHelp logo

bb-301 / iced-material-icon-browser Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 2.0 5.9 MB

A simple Iced application that I wrote as a learning activity, which allows you to browse the full list of regular Material Icons.

License: MIT License

Rust 100.00%
cross-platform-gui iced-rs rust ui

iced-material-icon-browser's Introduction

Iced Material Icon Browser

Iced Material Icon Browser is a simple Iced application that I wrote as a learning activity, which allows you to browse the full list of regular Material Icons (by Google). The design is inspired by macOS' SF Symbols application.

UI screenshot

Quick preview

UI preview

Target audience

This project is mainly targeted at Rust programmers who are in the process of learning Iced. It makes use of concepts such as:

  • performing custom styling,
  • using scrollers,
  • creating and using commands,
  • importing and configuring custom fonts (text and icons),
  • creating custom widgets,
  • using Iced's subscription method,
  • and other stuff.

Disclaimer

I, myself, am in the process of learning Iced, so it is possible that some of the patterns I am using in this project don't 100% make sense.

How to build the project

A note to Windows users: I have yet to confirm that the calls I'm making to the include_bytes! macro in ./src/main.rs will work as intended on Windows systems. Please let me know if it doesn't.

  1. Clone the Git repository from GitHub:
git clone https://github.com/BB-301/iced-material-icon-browser.git
  1. Build the project:
cd iced-material-icon-browser
cargo build --release
  1. Run the application:
cargo run --release

Still to do...

  • When in a grid view mode and clicking on an item, the content view will be split in two, which will likely result in the selected item in the list getting redrawn out of view (the other way around is also possible; i.e. when closing the preview). In a next version, I want to track the active item's position in the scroller and use a command to bring it back into view.
  • I acknowledge that there is a fair amount of repetitive code in some of the methods of my impl MyApp, which could be refactored into other helper methods to enable reuse. The view_item_preview method is a good example of that.

Contact

Please feel free to contact me by opening an issue on the repository if you have any questions, issues or suggestions for this project.

License

I am releasing this project under the MIT License.

iced-material-icon-browser's People

Contributors

bb-301 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.