Replace emoji icons with proper SVG icons loaded from GResources: - Add Weather Icons (Erik Flowers) for weather conditions - Add music note icon for media player widget - Add tomato icon for pomodoro timer - Create GResource manifest and build.rs for compilation - Update providers to use resource paths for icons - Image::from_resource() loads icons from compiled bundle This ensures icons display consistently regardless of user's installed icon theme. Weather icons are OFL licensed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
13 lines
380 B
Rust
13 lines
380 B
Rust
fn main() {
|
|
// Compile GResource bundle for icons
|
|
glib_build_tools::compile_resources(
|
|
&["src/resources/icons"],
|
|
"src/resources/icons.gresource.xml",
|
|
"icons.gresource",
|
|
);
|
|
|
|
// Rerun if icon files change
|
|
println!("cargo:rerun-if-changed=src/resources/icons.gresource.xml");
|
|
println!("cargo:rerun-if-changed=src/resources/icons/");
|
|
}
|