{"id":13546876,"url":"https://github.com/toastxc/material-egui","last_synced_at":"2025-03-22T15:30:57.314Z","repository":{"id":229303118,"uuid":"776395825","full_name":"toastxc/material-egui","owner":"toastxc","description":"Generates a theme for Egui based on M3 color palettes.","archived":false,"fork":false,"pushed_at":"2024-04-08T12:39:46.000Z","size":88,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T13:15:42.014Z","etag":null,"topics":["egui","material-design","material3","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toastxc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T11:46:32.000Z","updated_at":"2024-11-27T19:07:12.000Z","dependencies_parsed_at":"2024-04-08T13:41:14.685Z","dependency_job_id":null,"html_url":"https://github.com/toastxc/material-egui","commit_stats":null,"previous_names":["toastxc/material3-egui","toastxc/material-egui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastxc%2Fmaterial-egui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastxc%2Fmaterial-egui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastxc%2Fmaterial-egui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastxc%2Fmaterial-egui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toastxc","download_url":"https://codeload.github.com/toastxc/material-egui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978498,"owners_count":20541862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["egui","material-design","material3","rust","rust-lang"],"created_at":"2024-08-01T12:00:46.894Z","updated_at":"2025-03-22T15:30:56.857Z","avatar_url":"https://github.com/toastxc.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/toastxc/material3-egui/blob/main/README_RESOURCES/example1.png\" alt=\"Demo image 1\" width=\"30%\" height=\"30%\"\u003e\n \u003cimg src=\"https://github.com/toastxc/material3-egui/blob/main/README_RESOURCES/example2.png\" alt=\"Demo image 2\" width=\"30%\" height=\"30%\"\u003e\n \u003cimg src=\"https://github.com/toastxc/material3-egui/blob/main/README_RESOURCES/example3.png\" alt=\"Demo image 3\" width=\"30%\" height=\"30%\"\u003e\n\nM3-EGUI \n\n[![Stars](https://img.shields.io/github/stars/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/stargazers)\n[![Forks](https://img.shields.io/github/forks/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/network/members)\n[![Pull Requests](https://img.shields.io/github/issues-pr/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/pulls)\n[![Issues](https://img.shields.io/github/issues/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/issues)\n[![Contributors](https://img.shields.io/github/contributors/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/graphs/contributors)\n[![Licence](https://img.shields.io/github/license/toastxc/material-egui?style=flat-square\u0026logoColor=white)](https://github.com/toastxc/material-egui/blob/main/LICENCE)\n\u003c/h1\u003e\n\n## About\nM3-EGUI (material-egui) is a library that takes an input color and generates a color palette using M3 colors. It then applies those colors to the Egui components.\n\n## Installation\n```rust\ncargo install material-egui\n```\n## Adding to projects\n### Cargo.toml\n```toml\nmaterial-egui = \"*\"\n```\n### main.rs\nThis can be done anywhere that CTX is available.\nThe same can be done with Ui but this is not recommended\n```rust\n// input color, is_dark_theme, zoom scale\nMaterialColors::new(String::from(\"F0F\"), true, 1.5).apply(\u0026ctx);\n\n// if you'd like the ability to scale windows AND a better default scale, use this\nMaterialColors::new(String::from(\"F0F\"), true, 1.5).apply(\u0026ctx, \u0026mut self.zoom);\n```\n\n## FAQ\n\n### What features does this have currently?\n- [x] material color design\n- [x] dark and light theme support\n- [x] hot reloading\n- [x] Egui default components\n- [ ] wallpaper color picking\n- [ ] M3 animations\n- [ ] M3 styled components\n\n### Will this work on my project?\nYes it will, as long as you have the following minimum versions\n```toml\negui = \"0.26.2\"\neframe = \"0.26.2\"\n```\n### Why does (insert element here) look weird / unreadable text?\nI have not tested every element combination and there is probably a few edge cases, make sure to create an issue for them to be resolved\n\n### How do I create use the error style?\nYou will need a scope and the error style changer, this is a temporary solution until I find a better one\n```rust\n// this scope applies error colors to all elements inside\n    ui.scope(|ui| {\n        MaterialColors::new(String::from(\"F0F\"), true, 1.5).error_apply(ui);\n        ui.button(\"Error button!\")\n    });\n// alternatively, if you already have your colors defined\n    ui.scope(|ui| {\n        self.colors.error_apply(ui);\n        ui.button(\"Error button!\")\n    });\n```\n\n## Thanks\nSpecial thanks to the Egui team, and the people who made `material-colors` who made this project possible.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastxc%2Fmaterial-egui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoastxc%2Fmaterial-egui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastxc%2Fmaterial-egui/lists"}