acrylic_label ============= .. py:module:: qfluentwidgets.components.widgets.acrylic_label Module Contents --------------- .. autoapisummary:: qfluentwidgets.components.widgets.acrylic_label.BlurCoverThread qfluentwidgets.components.widgets.acrylic_label.AcrylicTextureLabel qfluentwidgets.components.widgets.acrylic_label.AcrylicLabel qfluentwidgets.components.widgets.acrylic_label.AcrylicBrush .. autoapisummary:: qfluentwidgets.components.widgets.acrylic_label.checkAcrylicAvailability .. autoapisummary:: qfluentwidgets.components.widgets.acrylic_label.isAcrylicAvailable .. py:data:: isAcrylicAvailable :value: True .. py:function:: checkAcrylicAvailability() .. py:class:: BlurCoverThread(parent=None) Bases: :py:obj:`PyQt5.QtCore.QThread` Blur album cover thread .. py:attribute:: blurFinished .. py:attribute:: imagePath :value: '' .. py:attribute:: blurRadius :value: 7 .. py:attribute:: maxSize :value: None .. py:method:: run() .. py:method:: blur(imagePath: str, blurRadius=6, maxSize: tuple = (450, 450)) .. py:class:: AcrylicTextureLabel(tintColor: PyQt5.QtGui.QColor, luminosityColor: PyQt5.QtGui.QColor, noiseOpacity=0.03, parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QLabel` Acrylic texture label .. py:attribute:: tintColor .. py:attribute:: luminosityColor .. py:attribute:: noiseOpacity :value: 0.03 .. py:attribute:: noiseImage .. py:method:: setTintColor(color: PyQt5.QtGui.QColor) .. py:method:: paintEvent(e) .. py:class:: AcrylicLabel(blurRadius: int, tintColor: PyQt5.QtGui.QColor, luminosityColor=QColor(255, 255, 255, 0), maxBlurSize: tuple = None, parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QLabel` Acrylic label .. py:attribute:: imagePath :value: '' .. py:attribute:: blurPixmap .. py:attribute:: blurRadius .. py:attribute:: maxBlurSize :value: None .. py:attribute:: acrylicTextureLabel .. py:attribute:: blurThread .. py:method:: setImage(imagePath: str) set the image to be blurred .. py:method:: setTintColor(color: PyQt5.QtGui.QColor) .. py:method:: resizeEvent(e) .. py:class:: AcrylicBrush(device: PyQt5.QtWidgets.QWidget, blurRadius: int, tintColor=QColor(242, 242, 242, 150), luminosityColor=QColor(255, 255, 255, 10), noiseOpacity=0.03) Acrylic brush .. py:attribute:: device .. py:attribute:: blurRadius .. py:attribute:: blurPicSize :value: None .. py:attribute:: tintColor .. py:attribute:: luminosityColor .. py:attribute:: noiseOpacity :value: 0.03 .. py:attribute:: noiseImage .. py:attribute:: originalImage .. py:attribute:: image .. py:attribute:: clipPath .. py:method:: setBlurRadius(radius: int) .. py:method:: setTintColor(color: PyQt5.QtGui.QColor) .. py:method:: setLuminosityColor(color: PyQt5.QtGui.QColor) .. py:method:: isAvailable() .. py:method:: grabImage(rect: PyQt5.QtCore.QRect) grab image from screen Parameters ---------- rect: QRect grabbed region .. py:method:: setImage(image: Union[str, PyQt5.QtGui.QImage, PyQt5.QtGui.QPixmap]) set blurred image .. py:method:: setClipPath(path: PyQt5.QtGui.QPainterPath) .. py:method:: setBlurPicSize(size: PyQt5.QtCore.QSize) .. py:method:: textureImage() .. py:method:: paint()