{"id":15292645,"url":"https://github.com/littlewhitecloud/win32mica","last_synced_at":"2025-10-07T04:32:39.965Z","repository":{"id":183871192,"uuid":"670903141","full_name":"littlewhitecloud/win32mica","owner":"littlewhitecloud","description":"Apply mica effect for win32 applications","archived":true,"fork":false,"pushed_at":"2023-08-31T10:25:14.000Z","size":291,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T21:22:18.226Z","etag":null,"topics":["application","blur","c","cplusplus","dll","header","lib","material","mica","mica-material","msvc","python","win32","windows","windows11"],"latest_commit_sha":null,"homepage":"","language":"C++","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/littlewhitecloud.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}},"created_at":"2023-07-26T05:21:53.000Z","updated_at":"2024-10-05T07:09:52.000Z","dependencies_parsed_at":"2023-07-26T08:04:12.689Z","dependency_job_id":null,"html_url":"https://github.com/littlewhitecloud/win32mica","commit_stats":null,"previous_names":["littlewhitecloud/win32mica"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewhitecloud%2Fwin32mica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewhitecloud%2Fwin32mica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewhitecloud%2Fwin32mica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/littlewhitecloud%2Fwin32mica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/littlewhitecloud","download_url":"https://codeload.github.com/littlewhitecloud/win32mica/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235593342,"owners_count":19015137,"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":["application","blur","c","cplusplus","dll","header","lib","material","mica","mica-material","msvc","python","win32","windows","windows11"],"created_at":"2024-09-30T16:25:18.547Z","updated_at":"2025-10-07T04:32:39.612Z","avatar_url":"https://github.com/littlewhitecloud.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# win32mica\nApply mica effect for win32 applications\n\n### Python\n#### Usage\n```python\n# from win32mica import ApplyMica\n# ApplyMica(hwnd: int, theme: bol): function\n#    hwnd: your window hwnd\n#    theme: true -\u003e dark | false -\u003e light\n# \n# from win32mica import MICATHEME\n# MICATHEME: class\n#    LIGHT: bool = False\n#    DARK: bool  = True\n# MICAMODE: class\n#    DEFAULT: bool = False\n#    ALT: bool = True\n\nimport ctypes\nApplyMica(ctypes.windll.user32.FindWindowW(ctypes.c_char_p(None), \"{Target Window Name}\"), MICATHEME, MICAMODE);\n```\n\n### Example\n```python\nfrom tkinter import Tk\nfrom win32mica import ApplyMica, MICATHEME, MICAMODE\nfrom ctypes import windll, c_char_p\n\nexample = Tk() # Create a Tk window\nexample.geometry(\"1165x605\") # Set the size of the window\nexample.title(\"Mica Example\") # Set the title of the window\n# Without this line, the FindWindowW can't find the hwnd correctly\nexample.iconbitmap(\"\") # Set the icon of the window\n\nexample[\"background\"] = \"black\" # Add this line if you want the full mica effect(Also light mode)\nApplyMica(windll.user32.FindWindowW(c_char_p(None), \"Mica Example\"), MICATHEME.DARK, MICAMODE.ALT)\n# Use False or MICATHEME.LIGHT to apply light mica effect\n# USe False or MICAMODE.DEFAULT to apply mica effect, not mica alt\n\nexample.mainloop() # Window mainloop\n```\n\n### C++\n\u003e If you want to run the example, please copy `win32mica.h` `win32mica.lib` `win32mica.dll` here and compile the file\n\n#### Usage\n```c++\n#include \u003cWindows.h\u003e\n#include \"win32mica.h\" \n#pragma comment(lib, \"win32mica.lib\")\n#pragma comment(lib, \"user32.lib\")\n\n// true to apply dark mode\n// false to apply light mode\n\n// Works for Windows 11 22523+\nApplyDocumentMica(FindWindowW(NULL, L\"{Target Window Name}\"), MICATHEME, MICAMODE);\n// Works for Windows 11 22523-\n// ApplyUnDocumentMica(FindWindowW(NULL, L\"{Target Window Name}\"), MICATHEME, MICAMODE);\n```\n\n### Light mode\n#### Mica\n![image](https://github.com/littlewhitecloud/win32mica/assets/71159641/025d49b7-35fc-40c4-ba25-56bf593b166f)\n#### Mica Alt\n![image](https://github.com/littlewhitecloud/win32mica/assets/71159641/aeb58144-de5c-48d5-b9e3-eff94830d249)\n### Dark mode\n#### Mica\n![image](https://github.com/littlewhitecloud/win32mica/assets/71159641/839aa12f-9159-46d2-a963-4816b5601ef0)\n#### Mica Alt\n![image](https://github.com/littlewhitecloud/win32mica/assets/71159641/e8c19471-b91f-466d-8ef5-ebfa5c47fb17)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlewhitecloud%2Fwin32mica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittlewhitecloud%2Fwin32mica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlewhitecloud%2Fwin32mica/lists"}