{"id":15771667,"url":"https://github.com/karpolan/windows-skinnable-clock","last_synced_at":"2025-03-31T12:10:45.560Z","repository":{"id":223066526,"uuid":"759232247","full_name":"karpolan/windows-skinnable-clock","owner":"karpolan","description":"Skinnable Clock for Windows - one of the demonstration apps for krpRegions Library","archived":false,"fork":false,"pushed_at":"2024-02-18T03:25:58.000Z","size":994,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T15:10:51.013Z","etag":null,"topics":["clock","cppbuilder","delphi","skin","skinnable","watch","windows"],"latest_commit_sha":null,"homepage":"https://software.karpolan.com","language":"Pascal","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/karpolan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-18T02:20:43.000Z","updated_at":"2024-02-18T03:28:13.000Z","dependencies_parsed_at":"2024-02-18T03:24:47.616Z","dependency_job_id":"003c96c0-97e0-48f6-967f-d97b5836b85c","html_url":"https://github.com/karpolan/windows-skinnable-clock","commit_stats":null,"previous_names":["karpolan/windows-skinnable-clock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpolan%2Fwindows-skinnable-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpolan%2Fwindows-skinnable-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpolan%2Fwindows-skinnable-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karpolan%2Fwindows-skinnable-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karpolan","download_url":"https://codeload.github.com/karpolan/windows-skinnable-clock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465228,"owners_count":20781919,"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":["clock","cppbuilder","delphi","skin","skinnable","watch","windows"],"created_at":"2024-10-04T15:04:05.658Z","updated_at":"2025-03-31T12:10:45.517Z","avatar_url":"https://github.com/karpolan.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows Skinnable Clock\n**Skinnable Clock for Windows** is one of the demonstration apps for **krpRegions Library**\n\n![image](https://github.com/karpolan/windows-skinnable-clock/assets/1213313/39a7946d-2513-4908-afc0-02f0ba60e193)\n\n[Download Skinnable Clock for Windows](https://github.com/karpolan/windows-skinnable-clock/raw/main/Clock.exe)\n\n## Built with\nThe code was written for **Borland Delphi** in 1998 and still works :)\n\n## krpRegions Library\n**krpRegions Library** was a set of components for **Borland Delphi** and **Borland C++Builder** designed to create **skinnable user interfaces**. \n\nIt was initially distributed by **[KARPOLAN](https://karpolan.com)** from 1998 to 2000 and later by **ABF software, Inc.** from 2000 to 2010.\n\nThe library is now considered **outdated**.\n\n## AREA_BY_COLOR algorithm\nThis algorithm, developed in 1998 by **[KARPOLAN](https://karpolan.com)**, revolves around the use of a **multi-color mask**, be it a bitmap or other graphic, to **designate areas with different colors**. \n\nThe **multi-color mask** is illustrated below:\n\n![image](https://github.com/karpolan/windows-skinnable-clock/assets/1213313/a330b302-c3cb-4177-b907-9f2693001112)\n\n- Each color area on the mask represents a distinct working area.\n- The **Gray** area typically signifies the application's body.\n- **Yellow**, **Aqua**, **Red**, **Fucsia** areas correspond to buttons, and so forth.\n\nThe algorithm involves **detecting the color** under the cursor and **triggering events** associated with the **area of that color**. \n\nAdditionally, you can create **a region for each color area**, allowing the identification of **the currently active region** (as implemented in the **krpRegions Library**).\n\nAs a result, the user perceives a **non-rectangular window** that aligns with the outer shape defined by the mask:\n\n![image](https://github.com/karpolan/windows-skinnable-clock/assets/1213313/34e59231-e71f-4ea7-b983-6418206479d5)\n\nWhen the user **clicks a on a specific area**, the algorithm renders **the \"active\" version** of the skin on the screen:\n\n![image](https://github.com/karpolan/windows-skinnable-clock/assets/1213313/871b395c-5669-4751-8774-c40c9c27f77a)\n\n**Hover** and **disable** states are achieved by incorporating **skin versions** specifically designed for these states. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpolan%2Fwindows-skinnable-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarpolan%2Fwindows-skinnable-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarpolan%2Fwindows-skinnable-clock/lists"}