Skip to content

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

License

Notifications You must be signed in to change notification settings

BB-301/iced-material-icon-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages