Skip to main content

Windows 11 Mica backdrop effects using official Windows API

Project description

winmica

A simple Python package to enable Windows 11 Mica effects for PyQt6 applications using the official Windows API.

Installation

Install this package (from the project root):

pip install winmica

Usage Example (PyQt6)

from PyQt6.QtWidgets import QApplication, QMainWindow
from PyQt6.QtCore import Qt
from winmica import EnableMica, BackdropType, is_mica_supported
import sys

class MyWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("Mica Example")
        self.setGeometry(100, 100, 600, 400)
        self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True)
        if is_mica_supported():
            hwnd = int(self.winId())
            EnableMica(hwnd, BackdropType.MICA)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MyWindow()
    window.show()
    sys.exit(app.exec())

Features

  • Official Windows 11 Mica Effect
  • Simple API: EnableMica(hwnd, backdrop_type)
  • Works with PyQt6 windows (may also work with PySide6 or Tkinter, but not tested)
  • Detects system theme (light/dark)

Effect Types

  • BackdropType.MICA – Standard Mica
  • BackdropType.MICA_ALT – Alternative Mica
  • BackdropType.AUTO – Auto (let Windows decide)

Result:

mica micaalt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winmica-1.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winmica-1.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file winmica-1.0.3.tar.gz.

File metadata

  • Download URL: winmica-1.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for winmica-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f5c3616a72206f640b0c270d205fdcbd3c9e1cc7d378e15404de715313217cd5
MD5 c0bc8911fcb5b90daeded60292521f47
BLAKE2b-256 b466cb33a55b086e6a2b137e6f3ad5db0b36e64411fdfee76c93d7727b8ca80c

See more details on using hashes here.

File details

Details for the file winmica-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: winmica-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for winmica-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f7adc8f57d2fde71879f85ef0892d34ff0aa1a261682ddcd1999e44a9996bfa
MD5 a4b24220ae5373051d1c9073af2c40a6
BLAKE2b-256 2d48f9c184791dbfc5bba3f95285d4de88148629d75e248483e0c7844d3d5be0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page