Win32mica
Apply mica effect for win32 applications
Install / Use
/learn @littlewhitecloud/Win32micaREADME
win32mica
Apply mica effect for win32 applications
Python
Usage
# from win32mica import ApplyMica
# ApplyMica(hwnd: int, theme: bol): function
# hwnd: your window hwnd
# theme: true -> dark | false -> light
#
# from win32mica import MICATHEME
# MICATHEME: class
# LIGHT: bool = False
# DARK: bool = True
# MICAMODE: class
# DEFAULT: bool = False
# ALT: bool = True
import ctypes
ApplyMica(ctypes.windll.user32.FindWindowW(ctypes.c_char_p(None), "{Target Window Name}"), MICATHEME, MICAMODE);
Example
from tkinter import Tk
from win32mica import ApplyMica, MICATHEME, MICAMODE
from ctypes import windll, c_char_p
example = Tk() # Create a Tk window
example.geometry("1165x605") # Set the size of the window
example.title("Mica Example") # Set the title of the window
# Without this line, the FindWindowW can't find the hwnd correctly
example.iconbitmap("") # Set the icon of the window
example["background"] = "black" # Add this line if you want the full mica effect(Also light mode)
ApplyMica(windll.user32.FindWindowW(c_char_p(None), "Mica Example"), MICATHEME.DARK, MICAMODE.ALT)
# Use False or MICATHEME.LIGHT to apply light mica effect
# USe False or MICAMODE.DEFAULT to apply mica effect, not mica alt
example.mainloop() # Window mainloop
C++
If you want to run the example, please copy
win32mica.hwin32mica.libwin32mica.dllhere and compile the file
Usage
#include <Windows.h>
#include "win32mica.h"
#pragma comment(lib, "win32mica.lib")
#pragma comment(lib, "user32.lib")
// true to apply dark mode
// false to apply light mode
// Works for Windows 11 22523+
ApplyDocumentMica(FindWindowW(NULL, L"{Target Window Name}"), MICATHEME, MICAMODE);
// Works for Windows 11 22523-
// ApplyUnDocumentMica(FindWindowW(NULL, L"{Target Window Name}"), MICATHEME, MICAMODE);
Light mode
Mica
Mica Alt
Dark mode
Mica
Mica Alt
Related Skills
node-connect
335.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.5kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
335.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
