{"id":15043847,"url":"https://github.com/loilo/windows-titlebar-color","last_synced_at":"2025-04-15T00:44:24.989Z","repository":{"id":57397888,"uuid":"64516300","full_name":"loilo/windows-titlebar-color","owner":"loilo","description":"🖍 Node.js package to get the title bar color from Windows 7, 8, 8.1 or 10","archived":false,"fork":false,"pushed_at":"2019-08-04T19:13:28.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T00:44:07.184Z","etag":null,"topics":["electron","javascript","ui","windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/loilo.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":"2016-07-29T23:36:28.000Z","updated_at":"2021-08-17T01:55:25.000Z","dependencies_parsed_at":"2022-09-04T13:22:35.933Z","dependency_job_id":null,"html_url":"https://github.com/loilo/windows-titlebar-color","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/loilo%2Fwindows-titlebar-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fwindows-titlebar-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fwindows-titlebar-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fwindows-titlebar-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loilo","download_url":"https://codeload.github.com/loilo/windows-titlebar-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986274,"owners_count":21194024,"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":["electron","javascript","ui","windows"],"created_at":"2024-09-24T20:49:40.670Z","updated_at":"2025-04-15T00:44:24.972Z","avatar_url":"https://github.com/loilo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-titlebar-color\nReads the title bar's color from the Windows 7, 8, 8.1 or 10 registry.\n\nCreated for usage in [Electron](https://github.com/electron/electron) apps.\n\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n## Usage\n```javascript\nconst winColor = require('windows-titlebar-color')\n\nconsole.log(winColor.titlebarColor)\n\n// could be #4ca0fe. or anything else.\n//           ^ this is at least not a completely arbitrary color since it's\n//             the default blue window chrome color that ships with Windows 8\n```\n\n## Works with...\n\n...Windows 7, Windows 8/8.1 and Windows 10. Generally.\n\n\n## Does not work with...\n\n...Windows 7 \"Basic\" style (non-Aero), classic window style (as in Win2k and below), high contrast window style and any other kind of manually tweaked window styles.\n\nIf you know how to elegantly provide information for those, feel free to open an issue. I'm generally fine with the lack of those since that's where other software (such as Google Chrome) also draws the line to fall back to their own non-OS-following styles.\n\nAlso note that the color determined for Windows 7 in Aero mode may differ from the perceived color of the title bar due to glossy transparency magic.\n\n## API\n\nIt's pretty simple. Grab the module and then go for it:\n\n`const winColor = require('windows-titlebar-color')`\n\n### Stuff you can access on the `winColor` object:\n\n#### `winColor.titlebarColor`\nReturns the color of the your Windows machines' title bar as a hex string.\n\n#### `winColor.titlebarTextColor`\nReturns the text color of the the title bar as a hex string.\n\n#### `winColor.inactiveTitlebarColor`\nReturns the color of the title bar on an inactive window.\n\n#### `winColor.inactiveTitlebarTextColor`\nReturns the text color of an inactive window's title bar as a hex string.\n\n#### `winColor.isSupported`\nReturns a boolean indicating if the running OS is generally supported to read colors from. Does not check for other limitations like those stated above.\n\n#### `winColor.isDetectable`\nReturns a boolean indicating if the running OS is supported and if a color is detectable for the title bar. (In other words: additionally checks if Aero is active in case the OS is Windows 7.)\n\n#### `winColor.reload()`\nFreshly loads the colors from the Registry. This is also done on initiation so typically you won't ever need to call this.\n\n#### `winColor.raw`\nReturns a hash containing the registry values from the `HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\DWM` key entries, converted to either boolean or hex color strings. For example my personal Windows 10 hash looks like this:\n\n```javascript\n{\n  Composition: true,\n  ColorizationGlassAttribute: false,\n  EnableAeroPeek: true,\n  ColorPrevalence: true,\n  AccentColor: '#484a4c',\n  ColorizationColor: '#4c4a48',\n  ColorizationColorBalance: '#000059',\n  ColorizationAfterglow: '#4c4a48',\n  ColorizationAfterglowBalance: '#00000a',\n  ColorizationBlurBalance: true,\n  EnableWindowColorization: true\n}\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fwindows-titlebar-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floilo%2Fwindows-titlebar-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fwindows-titlebar-color/lists"}