pyqt-liquidglass¶
macOS Liquid Glass effects for PySide6 and PyQt6
pyqt-liquidglass brings Apple’s Liquid Glass visual effects to your Qt applications on macOS. It provides a clean Python API to apply the native NSGlassEffectView (macOS 26+) or NSVisualEffectView (fallback) to windows and widgets.
Features¶
Window Glass: Apply glass effects to entire windows
Widget Glass: Target specific widgets like sidebars or panels
Traffic Lights Control: Reposition, hide, or show window buttons
GlassOptions: Configure corner radius, padding, materials, and blending
Cross-Version: Uses
NSGlassEffectViewon macOS 26+, falls back toNSVisualEffectViewSafe No-ops: All functions work on non-macOS platforms (return
NoneorFalse)
Quick Example¶
from PySide6.QtWidgets import QApplication, QMainWindow
import pyqt_liquidglass as glass
app = QApplication([])
window = QMainWindow()
window.resize(800, 600)
# Prepare before showing
glass.prepare_window_for_glass(window)
window.show()
# Apply glass after showing
glass.apply_glass_to_window(window)
app.exec()
Installation¶
pip install pyqt-liquidglass
Or with uv:
uv add pyqt-liquidglass
Requirements: Python 3.12+, macOS, PySide6 or PyQt6
Documentation¶
User Guide
API Reference
Indices¶
License¶
MIT License. See LICENSE.md for details.