{"id":21748241,"url":"https://github.com/electron-modules/electron-windows-titlebar","last_synced_at":"2025-08-20T07:07:16.848Z","repository":{"id":58722815,"uuid":"533180172","full_name":"electron-modules/electron-windows-titlebar","owner":"electron-modules","description":"windows-style title bar component for Electron","archived":false,"fork":false,"pushed_at":"2023-01-15T16:08:01.000Z","size":385,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T05:26:32.554Z","etag":null,"topics":["electron","titlebar","windows"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/electron-modules.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}},"created_at":"2022-09-06T05:52:26.000Z","updated_at":"2025-02-11T12:57:57.000Z","dependencies_parsed_at":"2023-02-09T22:45:38.402Z","dependency_job_id":null,"html_url":"https://github.com/electron-modules/electron-windows-titlebar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/electron-modules/electron-windows-titlebar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows-titlebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows-titlebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows-titlebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows-titlebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electron-modules","download_url":"https://codeload.github.com/electron-modules/electron-windows-titlebar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-modules%2Felectron-windows-titlebar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271279974,"owners_count":24731926,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["electron","titlebar","windows"],"created_at":"2024-11-26T08:12:45.293Z","updated_at":"2025-08-20T07:07:16.798Z","avatar_url":"https://github.com/electron-modules.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-windows-titlebar\n\n---\n\n[![NPM version][npm-image]][npm-url]\n[![CI][CI-image]][CI-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/electron-windows-titlebar.svg\n[npm-url]: https://npmjs.org/package/electron-windows-titlebar\n[CI-image]: https://github.com/electron-modules/electron-windows-titlebar/actions/workflows/ci.yml/badge.svg\n[CI-url]: https://github.com/electron-modules/electron-windows-titlebar/actions/workflows/ci.yml\n[node-image]: https://img.shields.io/badge/node.js-%3E=_16-green.svg\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/electron-windows-titlebar.svg\n[download-url]: https://npmjs.org/package/electron-windows-titlebar\n\n\u003e windows-style title bar component for Electron\n\n## Native Addon Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg\n    src=\"./addon-demo.gif\"\n    width=\"480\"\n  /\u003e\n\u003c/p\u003e\n\n## Web API Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg\n    src=\"./demo.gif\"\n    width=\"480\"\n  /\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- GITCONTRIBUTOR_START --\u003e\n\n## Contributors\n\n|[\u003cimg src=\"https://avatars.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003exudafeng\u003c/b\u003e\u003c/sub\u003e](https://github.com/xudafeng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/17586742?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esriting\u003c/b\u003e\u003c/sub\u003e](https://github.com/sriting)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/52845048?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esnapre\u003c/b\u003e\u003c/sub\u003e](https://github.com/snapre)\u003cbr/\u003e|\n| :---: | :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sun Dec 11 2022 23:02:29 GMT+0800`.\n\n\u003c!-- GITCONTRIBUTOR_END --\u003e\n\n## Installment\n\n```shell\nnpm i electron-windows-titlebar --save-dev\n```\n\n## Use Native Addons\n\n```javascript\nconst windowTitleBar = require('electron-windows-titlebar');\nconst win = new BrowserWindow({\n  width: 800,\n  height: 600,\n  title: 'addon demo',\n})\nconst hwnd = win?.getNativeWindowHandle();\nconst setDark = true;\nif (hwnd) {\n  setDark ? windowTitleBar.switchDarkMode(hwnd) : windowTitleBar.switchLightMode(hwnd);\n}\n```\n\n## Use Web APIs\n\n```javascript\n// renderer process: import electron-windows-titlebar renderer\nimport TitleBar from 'electron-windows-titlebar/TitleBar';\n\n\u003cTitleBar\n/\u003e\n```\n\n## Run Demo\n\n```shell\nnpm run dev:web\n```\n\nanother shell\n```shell\nnpm run dev:main\n```\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-windows-titlebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectron-modules%2Felectron-windows-titlebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-modules%2Felectron-windows-titlebar/lists"}