{"id":19065461,"url":"https://github.com/menci/electron-titlebar","last_synced_at":"2025-08-20T20:32:26.403Z","repository":{"id":53557358,"uuid":"66630875","full_name":"Menci/electron-titlebar","owner":"Menci","description":"Cool titlebar for electron apps for every system","archived":false,"fork":false,"pushed_at":"2021-03-24T15:41:44.000Z","size":82,"stargazers_count":114,"open_issues_count":4,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-09T15:41:43.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Menci.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}},"created_at":"2016-08-26T08:29:44.000Z","updated_at":"2024-10-16T12:57:24.000Z","dependencies_parsed_at":"2022-08-20T10:10:07.136Z","dependency_job_id":null,"html_url":"https://github.com/Menci/electron-titlebar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Felectron-titlebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Felectron-titlebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Felectron-titlebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Menci%2Felectron-titlebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Menci","download_url":"https://codeload.github.com/Menci/electron-titlebar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230454428,"owners_count":18228392,"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":[],"created_at":"2024-11-09T00:50:04.265Z","updated_at":"2024-12-19T15:08:41.328Z","avatar_url":"https://github.com/Menci.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-titlebar\nCool titlebar for electron apps for every system.\n\n# Screenshots\n#### Windows\n![Windows Screenshot](windows-screen.png)\n#### Linux\n![Linux Screenshot](linux-screen.png)\n\n# Usage\nInstall with NPM.\n\n```bash\nnpm install electron-titlebar --save\n```\n\nLoad `electron-titlebar` with `require('electron-titlebar')` in anywhere.\n\nIn HTML, the div whose id is `electron-titlebar` will become a titlebar, like\n\n```html\n\u003cdiv id=\"electron-titlebar\"\u003e\u003c/div\u003e\n```\n\n## Drag\nAdd class `drag` to make the whole titlebar draggable. This means the user can drag the it to move the window.\n\n```html\n\u003cdiv id=\"electron-titlebar\" class=\"drag\"\u003e\u003c/div\u003e\n```\n\nYou can also specify the draggable area manually, add some `div`s with `class=\"drag\"` inside.\n\n```html\n\u003cdiv id=\"electron-titlebar\"\u003e\n    \u003cdiv class=\"drag\" style=\"top: 0; left: 0; width: 100%; height: 100%; position: absolute; \"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Hide Control Buttons\nAdd classes `no-maximize` or `no-minimize` to hide the maximize or minimize button.\n\n```html\n\u003cdiv id=\"electron-titlebar\" class=\"no-maximize no-minimize\"\u003e\u003c/div\u003e\n```\n\n\u003e Notice: If `BrowserWindow.isResizable()` or `BrowserWindow.isMaximizable()` is `false`, the maximize button will be hidden. If `BrowserWindow.isMinimizable` is `false`, the minimize button will be hidden.\n\n## Inset\nAdd class `inset` to get the control buttons more inset from the window edge. Like `titleBarStyle: 'hidden-inset'` on macOS.\n\n```html\n\u003cdiv id=\"electron-titlebar\" class=\"inset\"\u003e\u003c/div\u003e\n```\n\n## Custom\nYou can put custom elements on titlebar, such as displaying a title\n\n```html\n\u003cdiv id=\"electron-titlebar\"\u003e\n    \u003cdiv style=\"width: 100%; height: 100%; text-align: center; line-height: 40px; \"\u003eTitle\u003c/div\u003e\n\u003c/div\u003e\n```\n\n# Platform\nOn Windows, the control button is in the Windows 10 style. Each button is `45px x 29px` without inset and `40px x 40px` with inset.\n\nOn Linux, the control button is in the elementary style.\n\nAdd `platform=\"linux\"` or `platform=\"win32\"` to test the look for a specified platform.\n\n```html\n\u003cdiv id=\"electron-titlebar\" platform=\"linux\"\u003e\u003c/div\u003e\n```\n\n# Licenses\n`electron-titlebar` is licensed under the LGPL-3.0 license.\n\nThe directory `LICENSES` contains the licenses that the .SVG files used.\n\n`caption-buttons.svg`, which is used for Windows, is licensed under the MPL-2.0. It comes from [Firefox](https://www.mozilla.org/en-US/firefox/products/).\n\n`close.svg`, `maximize.svg`, `minimize.svg` and `restore.svg`, which are used for Linux, is (likely) licensed under the GPL-3.0 license. It comes from `elementary-theme`.\n\n[Report an issue](https://github.com/Menci/electron-titlebar/issues) if you find there's something wrong with their licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenci%2Felectron-titlebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmenci%2Felectron-titlebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenci%2Felectron-titlebar/lists"}