{"id":15013182,"url":"https://github.com/itseeleeya/tauri-plugin-trafficlights-positioner","last_synced_at":"2026-03-11T15:30:15.248Z","repository":{"id":251418859,"uuid":"837357084","full_name":"ItsEeleeya/tauri-plugin-trafficlights-positioner","owner":"ItsEeleeya","description":"Helps insetting the window traffic lights on macOS.","archived":false,"fork":false,"pushed_at":"2024-11-24T09:19:11.000Z","size":408,"stargazers_count":5,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T18:56:29.711Z","etag":null,"topics":["macos","rust","tauri","tauri-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItsEeleeya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-02T19:27:20.000Z","updated_at":"2024-10-09T21:09:58.000Z","dependencies_parsed_at":"2024-08-02T22:33:16.751Z","dependency_job_id":"cfc9da5d-feff-48cc-9d3b-98f439eef274","html_url":"https://github.com/ItsEeleeya/tauri-plugin-trafficlights-positioner","commit_stats":null,"previous_names":["itseeleeya/tauri-plugin-trafficlights-positioner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsEeleeya%2Ftauri-plugin-trafficlights-positioner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsEeleeya%2Ftauri-plugin-trafficlights-positioner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsEeleeya%2Ftauri-plugin-trafficlights-positioner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsEeleeya%2Ftauri-plugin-trafficlights-positioner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsEeleeya","download_url":"https://codeload.github.com/ItsEeleeya/tauri-plugin-trafficlights-positioner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239910673,"owners_count":19717189,"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":["macos","rust","tauri","tauri-plugin"],"created_at":"2024-09-24T19:43:52.131Z","updated_at":"2026-03-11T15:30:15.027Z","avatar_url":"https://github.com/ItsEeleeya.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tauri Plugin Traffic Lights Positioner\nThis plugin helps you set a custom inset for the window controls on macOS. Currently only for Tauri v1.*\n\n_This is done without any visible artifacts on resize._\n\n## Get the plugin\nUsing the command line from crates.io:\u003cbr\u003e\n```\n$ cargo add tauri-plugin-trafficlights-positioner\n```\n\nOr add it manually to `Cargo.toml`:\n```toml\n[target.'cfg(target_os = \"macos\")'.dependencies]\ntauri-plugin-trafficlights-positioner = \"1.0.0\"\n```\n\nOr get the latest using git:\n```toml\n[target.'cfg(target_os = \"macos\")'.dependencies]\ntauri-plugin-trafficlights-positioner = { git = \"https://github.com/ItsEeleeya/tauri-plugin-trafficlights-positioner/\" }\n```\n\n## Usage\n```rs\nfn main() {\n  tauri::Builder::default()\n    .setup(move |app| {\n      if let Some(window) = app.get_window(\"main\") {\n        #[cfg(target_os = \"macos\")]\n        // NOTE: Make sure you only call this ONCE per window.\n        let _ = window.setup_traffic_lights_inset(LogicalPosition::new(20.0, 24.0));\n      };\n\n      Ok(())\n    })\n    .run(tauri::generate_context!())\n    .expect(\"error while running tauri application\");\n}\n```\n\n\nIf you need extra customization (especially for Windows) use [clearlysid/tauri-plugin-decorum](https://github.com/clearlysid/tauri-plugin-decorum/)\n\n## Credits\n\nAlmost all credits for `positioner.rs` goes to [@haasal](https://github.com/haasal), [@charrondev](https://gist.github.com/charrondev) and [Hoppscotch](https://github.com/hoppscotch/hoppscotch)\n\u003cbr\u003eThis is also similar to how it is implemented in the Zed editor.\u003cbr\u003e\nOriginal Tauri Issue: https://github.com/tauri-apps/tauri/issues/4789 \u003cbr\u003e\n\n(Gist) https://gist.github.com/charrondev/43150e940bd2771b1ea88256d491c7a9\n\n(Hoppscotch) https://github.com/hoppscotch/hoppscotch/blob/286fcd2bb08a84f027b10308d1e18da368f95ebf/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitseeleeya%2Ftauri-plugin-trafficlights-positioner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitseeleeya%2Ftauri-plugin-trafficlights-positioner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitseeleeya%2Ftauri-plugin-trafficlights-positioner/lists"}