{"id":22881307,"url":"https://github.com/gvozdevleonid/backdrop-in-pyqt-pyside","last_synced_at":"2025-05-07T03:20:37.291Z","repository":{"id":155254213,"uuid":"582990706","full_name":"GvozdevLeonid/BackDrop-in-PyQt-PySide","owner":"GvozdevLeonid","description":"BackDrop effect in PyQt/PySide","archived":false,"fork":false,"pushed_at":"2023-11-21T15:14:33.000Z","size":9152,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T05:41:31.549Z","etag":null,"topics":["glassmorphism","pyqt","pyside","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/GvozdevLeonid.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-28T12:48:12.000Z","updated_at":"2025-02-22T15:11:09.000Z","dependencies_parsed_at":"2023-11-21T16:43:19.269Z","dependency_job_id":null,"html_url":"https://github.com/GvozdevLeonid/BackDrop-in-PyQt-PySide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GvozdevLeonid%2FBackDrop-in-PyQt-PySide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GvozdevLeonid%2FBackDrop-in-PyQt-PySide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GvozdevLeonid%2FBackDrop-in-PyQt-PySide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GvozdevLeonid%2FBackDrop-in-PyQt-PySide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GvozdevLeonid","download_url":"https://codeload.github.com/GvozdevLeonid/BackDrop-in-PyQt-PySide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804655,"owners_count":21806848,"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":["glassmorphism","pyqt","pyside","python"],"created_at":"2024-12-13T17:32:45.312Z","updated_at":"2025-05-07T03:20:37.271Z","avatar_url":"https://github.com/GvozdevLeonid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BackDrop effect in PySide6\n\nSo far this is working on Pyside6 and possibly PySide2 as well. Does not work on PyQt6, I will fix the error in the future\n\nThis repository contains two classes: BackDrop is a graphical effect in which you need to set a list of backgrounds, blur and a border radius. BackDropWrapper - a handy wrapper for displaying and animation the backdrop effect.\n\n\tBackDrop(blur: int = 0, radius: int = 0, backgrounds: list[dict] = None)\n\tBackDropWrapper(widget: QtWidgets.QObject , blur: int = 0, radius: int = 0, backgrounds: list[dict] = None, shine_animation: list = None, move_animation: tuple = None)\nThe backgrounds is set as follows:\n\n\tgrad = QtGui.QLinearGradient(0, 0, 1, 1)\n\tgrad.setCoordinateMode(QtGui.QLinearGradient.CoordinateMode.ObjectMode)\n\tgrad.setStops([(0, QtGui.QColor(255, 255, 255, 255)), (0.35, QtGui.QColor(255, 255, 255, 125)), (0.65, QtGui.QColor(255, 255, 255, 125)), (1,QtGui.QColor(255, 255, 255, 255))])\n\tbackgrounds=[{\"background-color\": grad, \"border\": QtGui.QColor(\"#FFFFFF\"),\"border-width\": 2, \"opacity\": .4}]\n\nAnimations run when you hover over the widget and also run in reverse again when you leave the mouse.\nAll animations are disabled by default, but you can enable them by passing the following arguments:\n\n\tshine_animation = (duration: int, forward: bool, angle: int, width: int, color: QtGui.QColor)\n\tmove_animation = (duration: int, offset: tuple, forward: bool)\n\t\nor you can create BackDropWrapper element and set:\n\t\t\n\tbdw = BackDropWrapper(QtWidgets.QLabel(\"Hello World!\"), blur=10, radius=25, backgrounds=backgrounds)\n\tbdw.enable_shine_animation(color=QtGui.QColor(255, 255, 255, 90))\n\tbdw.enable_move_animation(offset=(0, -30))\n\n# Example file preview\n\n\u003cimg width=\"710\" alt=\"normal\" src=\"https://user-images.githubusercontent.com/87101242/209816702-e57d5f4b-f15d-41d1-9761-4d13c4414484.png\"\u003e\n\u003cimg width=\"711\" alt=\"hovered\" src=\"https://user-images.githubusercontent.com/87101242/209816709-4d53ed29-7fba-49f0-900e-9113a2bc2898.png\"\u003e\n\n![animation](https://user-images.githubusercontent.com/87101242/209816714-2ab1e36e-94c6-4a59-a92d-0a73fc1b1939.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvozdevleonid%2Fbackdrop-in-pyqt-pyside","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgvozdevleonid%2Fbackdrop-in-pyqt-pyside","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgvozdevleonid%2Fbackdrop-in-pyqt-pyside/lists"}