Files
dxdesigner-part-replacement/docs/reviews/2026-10-30-ui/github-material-sources.json
T

1175 lines
39 KiB
JSON

{
"date": "2026-10-30",
"retrieval": "GitHub REST metadata, README, recursive trees and source blobs; search endpoint rate-limited; raw domain unavailable.",
"projects": [
{
"repo": "zhiyiYo/PyQt-Frameless-Window",
"url": "https://github.com/zhiyiYo/PyQt-Frameless-Window",
"branch": "master",
"license": "GPL-3.0",
"tree_sha": "e86a0742220844943e6b2e879c5ed072bd252b41",
"source_files": [
{
"repo": "zhiyiYo/PyQt-Frameless-Window",
"path": "qframelesswindow/windows/window_effect.py",
"blob_sha": "4c7b0a9dcf56af6b70a5fa3f9ac15ca911903734",
"url": "https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/qframelesswindow/windows/window_effect.py",
"license": "GPL-3.0",
"hits": [
{
"line": 12,
"text": "from .c_structures import (ACCENT_POLICY, ACCENT_STATE, DWMNCRENDERINGPOLICY,"
},
{
"line": 28,
"text": "self.SetWindowCompositionAttribute = self.user32.SetWindowCompositionAttribute"
},
{
"line": 31,
"text": "self.DwmSetWindowAttribute = self.dwmapi.DwmSetWindowAttribute"
},
{
"line": 33,
"text": "self.SetWindowCompositionAttribute.restype = c_bool"
},
{
"line": 36,
"text": "self.DwmSetWindowAttribute.restype = LONG"
},
{
"line": 38,
"text": "self.SetWindowCompositionAttribute.argtypes = ["
},
{
"line": 42,
"text": "self.DwmSetWindowAttribute.argtypes = [c_int, DWORD, LPCVOID, DWORD]"
},
{
"line": 47,
"text": "self.accentPolicy = ACCENT_POLICY()"
},
{
"line": 49,
"text": "self.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value"
},
{
"line": 53,
"text": "def setAcrylicEffect(self, hWnd, gradientColor=\"F2F2F299\", enableShadow=True, animationId=0):"
},
{
"line": 54,
"text": "\"\"\" Add the acrylic effect to the window"
},
{
"line": 62,
"text": "Hexadecimal acrylic mixed color, corresponding to four RGBA channels"
},
{
"line": 71,
"text": "warnings.warn(\"The acrylic effect is only available on Win10+\")"
},
{
"line": 79,
"text": "self.accentPolicy.AccentState = ACCENT_STATE.ACCENT_ENABLE_ACRYLICBLURBEHIND.value"
},
{
"line": 83,
"text": "self.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value"
},
{
"line": 84,
"text": "self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))"
},
{
"line": 102,
"text": "self.DwmSetWindowAttribute(hWnd,"
},
{
"line": 119,
"text": "self.DwmSetWindowAttribute(hWnd,"
},
{
"line": 124,
"text": "def setMicaEffect(self, hWnd, isDarkMode=False, isAlt=False):"
},
{
"line": 125,
"text": "\"\"\" Add the mica effect to the window (Win11 only)"
},
{
"line": 133,
"text": "whether to use dark mode mica effect"
},
{
"line": 136,
"text": "whether to enable mica alt effect"
},
{
"line": 139,
"text": "warnings.warn(\"The mica effect is only available on Win11\")"
},
{
"line": 147,
"text": "self.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value"
},
{
"line": 148,
"text": "self.accentPolicy.AccentState = ACCENT_STATE.ACCENT_ENABLE_HOSTBACKDROP.value"
},
{
"line": 149,
"text": "self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))"
},
{
"line": 153,
"text": "self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))"
},
{
"line": 156,
"text": "self.DwmSetWindowAttribute(hWnd, 1029, byref(c_int(1)), 4)"
},
{
"line": 158,
"text": "self.DwmSetWindowAttribute(hWnd, DWMWINDOWATTRIBUTE.DWMWA_SYSTEMBACKDROP_TYPE.value, byref(c_int(4 if isAlt else 2)), 4)"
},
{
"line": 160,
"text": "self.DwmSetWindowAttribute(hWnd, DWMWINDOWATTRIBUTE.DWMWA_USE_IMMERSIVE_DARK_MODE.value, byref(c_int(1*isDarkMode)), 4)"
},
{
"line": 171,
"text": "self.winCompAttrData.Attribute = WINDOWCOMPOSITIONATTRIB.WCA_ACCENT_POLICY.value"
},
{
"line": 172,
"text": "self.accentPolicy.AccentState = ACCENT_STATE.ACCENT_ENABLE_BLURBEHIND.value"
},
{
"line": 173,
"text": "self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))"
},
{
"line": 184,
"text": "self.accentPolicy.AccentState = ACCENT_STATE.ACCENT_DISABLED.value"
},
{
"line": 185,
"text": "self.SetWindowCompositionAttribute(hWnd, pointer(self.winCompAttrData))"
},
{
"line": 214,
"text": "self.DwmSetWindowAttribute("
},
{
"line": 232,
"text": "self.DwmSetWindowAttribute("
}
]
},
{
"repo": "zhiyiYo/PyQt-Frameless-Window",
"path": "examples/acrylic_demo.py",
"blob_sha": "f6afce997154b5cfebb8c94cd0b326c9356a5281",
"url": "https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/examples/acrylic_demo.py",
"license": "GPL-3.0",
"hits": [
{
"line": 6,
"text": "from qframelesswindow import AcrylicWindow"
},
{
"line": 9,
"text": "class Window(AcrylicWindow):"
},
{
"line": 13,
"text": "self.setWindowTitle(\"Acrylic Window\")"
},
{
"line": 16,
"text": "# customize acrylic effect"
},
{
"line": 17,
"text": "# self.windowEffect.setAcrylicEffect(self.winId(), \"106EBE99\")"
},
{
"line": 19,
"text": "# you can also enable mica effect on Win11"
},
{
"line": 20,
"text": "# self.windowEffect.setMicaEffect(self.winId(), isDarkMode=False, isAlt=False)"
}
]
}
]
},
{
"repo": "Peticali/PythonBlurBehind",
"url": "https://github.com/Peticali/PythonBlurBehind",
"branch": "main",
"license": "MIT",
"tree_sha": "4563be7c4c0ed9e51bc0d1275a69ec8acf6c2edc",
"source_files": [
{
"repo": "Peticali/PythonBlurBehind",
"path": "blurWindow/blurWindow.py",
"blob_sha": "ab6d9b731b455de3ae55969e8f44554999c77429",
"url": "https://github.com/Peticali/PythonBlurBehind/blob/main/blurWindow/blurWindow.py",
"license": "MIT",
"hits": [
{
"line": 83,
"text": "SetWindowCompositionAttribute = user32.SetWindowCompositionAttribute"
},
{
"line": 84,
"text": "SetWindowCompositionAttribute.argtypes = (HWND, WINDOWCOMPOSITIONATTRIBDATA)"
},
{
"line": 85,
"text": "SetWindowCompositionAttribute.restype = ctypes.c_int"
},
{
"line": 93,
"text": "def Win7Blur(HWND,Acrylic):"
},
{
"line": 94,
"text": "if Acrylic == False:"
},
{
"line": 115,
"text": "def blur(hwnd, hexColor=False, Acrylic=False, Dark=False):"
},
{
"line": 117,
"text": "accent.AccentState = 3 #Default window Blur #ACCENT_ENABLE_BLURBEHIND"
},
{
"line": 123,
"text": "accent.AccentFlags = 2 #Window Blur With Accent Color #ACCENT_ENABLE_TRANSPARENTGRADIENT"
},
{
"line": 125,
"text": "if Acrylic:"
},
{
"line": 126,
"text": "accent.AccentState = 4 #UWP but LAG #ACCENT_ENABLE_ACRYLICBLURBEHIND"
},
{
"line": 134,
"text": "data.Attribute = 19 #WCA_ACCENT_POLICY"
},
{
"line": 138,
"text": "SetWindowCompositionAttribute(int(hwnd), data)"
},
{
"line": 142,
"text": "SetWindowCompositionAttribute(int(hwnd), data)"
},
{
"line": 152,
"text": "def GlobalBlur(HWND,hexColor=False,Acrylic=False,Dark=False,QWidget=None):"
},
{
"line": 158,
"text": "Win7Blur(HWND,Acrylic)"
},
{
"line": 162,
"text": "blur(HWND,hexColor,Acrylic,Dark)"
},
{
"line": 164,
"text": "Win7Blur(HWND,Acrylic)"
}
]
}
]
},
{
"repo": "microsoft/WinUI-Gallery",
"url": "https://github.com/microsoft/WinUI-Gallery",
"branch": "main",
"license": "MIT",
"tree_sha": "8ead97498abe4dceed7d37f32133c6e8bfad8155",
"source_files": [
{
"repo": "microsoft/WinUI-Gallery",
"path": "WinUIGallery/Samples/Acrylic/AcrylicPage.xaml",
"blob_sha": "cc0b2df528ce4d107128c9a06d9c61d8e9cb3733",
"url": "https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/Acrylic/AcrylicPage.xaml",
"license": "MIT",
"hits": [
{
"line": 2,
"text": "x:Class=\"WinUIGallery.ControlPages.AcrylicPage\""
},
{
"line": 14,
"text": "<media:AcrylicBrush"
},
{
"line": 15,
"text": "x:Key=\"CustomAcrylicInAppBrush\""
},
{
"line": 16,
"text": "FallbackColor=\"Green\""
},
{
"line": 18,
"text": "TintOpacity=\"0.8\" />"
},
{
"line": 19,
"text": "<media:AcrylicBrush"
},
{
"line": 20,
"text": "x:Key=\"CustomAcrylicInAppLuminosity\""
},
{
"line": 21,
"text": "FallbackColor=\"SkyBlue\""
},
{
"line": 23,
"text": "TintOpacity=\"0.8\" />"
},
{
"line": 41,
"text": "Acrylic Brush might fall back to SolidColorbrush in certain scenarios."
},
{
"line": 42,
"text": "If you can't see the Acrylic effect, please refer to"
},
{
"line": 43,
"text": "<Hyperlink NavigateUri=\"https://learn.microsoft.com/windows/apps/design/style/acrylic#usability-and-adaptability\">Acrylic brush adaptability documentation</Hyperlink>."
},
{
"line": 44,
"text": "Acrylic Brush uses in-app acrylic. See"
},
{
"line": 45,
"text": "<Hyperlink Click=\"SystemBackdropLink_Click\">SystemBackdrops (Mica/Acrylic)</Hyperlink> for background acrylic."
},
{
"line": 48,
"text": "<controls:ControlExample x:Name=\"Example1\" SampleDefinition=\"Acrylic\\DefaultAppAcrylicBrush.txt\">"
},
{
"line": 74,
"text": "<Rectangle Margin=\"12\" Fill=\"{ThemeResource AcrylicInAppFillColorDefaultBrush}\" />"
},
{
"line": 78,
"text": "<controls:ControlExample x:Name=\"Example3\" SampleDefinition=\"Acrylic\\CustomAcrylicAppBrush.txt\">"
},
{
"line": 109,
"text": "x:Name=\"CustomAcrylicShapeInApp\""
},
{
"line": 111,
"text": "Fill=\"{ThemeResource CustomAcrylicInAppBrush}\" />"
},
{
"line": 140,
"text": "x:Name=\"FallbackColorSelectorInApp\""
},
{
"line": 143,
"text": "SelectionChanged=\"FallbackColorSelector_SelectionChanged\">"
},
{
"line": 152,
"text": "<controls:ControlExampleSubstitution Key=\"FallbackColor\" Value=\"{x:Bind FallbackColorSelectorInApp.SelectedItem, Mode=OneWay}\" />"
},
{
"line": 156,
"text": "<controls:ControlExample x:Name=\"Example4\" SampleDefinition=\"Acrylic\\LuminosityAppAcrylic.txt\">"
},
{
"line": 187,
"text": "x:Name=\"CustomAcrylicShapeLumin\""
},
{
"line": 189,
"text": "Fill=\"{ThemeResource CustomAcrylicInAppLuminosity}\" />"
},
{
"line": 206,
"text": "<TextBlock Margin=\"0,0,0,12\" Text=\"Tint Luminosity Opacity :\" />"
},
{
"line": 208,
"text": "x:Name=\"LuminositySlider\""
},
{
"line": 217,
"text": "ValueChanged=\"LuminositySlider_ValueChanged\" />"
},
{
"line": 222,
"text": "<controls:ControlExampleSubstitution Key=\"TintLuminositySlider\" Value=\"{x:Bind LuminositySlider.Value, Mode=OneWay}\" />"
}
]
},
{
"repo": "microsoft/WinUI-Gallery",
"path": "WinUIGallery/Samples/SystemBackdrops/SystemBackdropsDesktopacryliccontroller.txt",
"blob_sha": "e4ba131d76ad4b847b1421b394ae02f48391a710",
"url": "https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/SystemBackdrops/SystemBackdropsDesktopacryliccontroller.txt",
"license": "MIT",
"hits": [
{
"line": 2,
"text": "DesktopAcrylicController"
},
{
"line": 9,
"text": "SystemBackdrops.DesktopAcrylicController acrylicController;"
},
{
"line": 12,
"text": "bool TrySetAcrylicBackdrop(bool useAcrylicThin)"
},
{
"line": 14,
"text": "if (DesktopAcrylicController.IsSupported())"
},
{
"line": 28,
"text": "acrylicController = new DesktopAcrylicController();"
},
{
"line": 29,
"text": "acrylicController.Kind = useAcrylicThin ? DesktopAcrylicKind.Thin : DesktopAcrylicKind.Base;"
},
{
"line": 32,
"text": "acrylicController.AddSystemBackdropTarget(As<ICompositionSupportsSystemBackdrop>());"
},
{
"line": 33,
"text": "acrylicController.SetSystemBackdropConfiguration(configurationSource);"
},
{
"line": 37,
"text": "return false; // Acrylic is not supported on this system."
},
{
"line": 47,
"text": "// Make sure any Mica/Acrylic controller is disposed"
},
{
"line": 48,
"text": "if (acrylicController != null)"
},
{
"line": 50,
"text": "acrylicController.Dispose();"
},
{
"line": 51,
"text": "acrylicController = null;"
}
]
}
]
},
{
"repo": "zhiyiYo/PyQt-Fluent-Widgets",
"url": "https://github.com/zhiyiYo/PyQt-Fluent-Widgets",
"branch": "master",
"license": "GPL-3.0",
"tree_sha": "6b9c646ce107660f66d20cec8af967c2c8d79764",
"source_files": [
{
"repo": "zhiyiYo/PyQt-Fluent-Widgets",
"path": "qfluentwidgets/components/material/acrylic_widget.py",
"blob_sha": "a88354a7de237c8d0ac8ac6ae3acb448b8846506",
"url": "https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/qfluentwidgets/components/material/acrylic_widget.py",
"license": "GPL-3.0",
"hits": [
{
"line": 7,
"text": "from ..widgets.acrylic_label import AcrylicBrush"
},
{
"line": 11,
"text": "class AcrylicWidget:"
},
{
"line": 12,
"text": "\"\"\" Acrylic widget \"\"\""
},
{
"line": 16,
"text": "self.acrylicBrush = AcrylicBrush(self, 30)"
},
{
"line": 18,
"text": "def _updateAcrylicColor(self):"
},
{
"line": 26,
"text": "self.acrylicBrush.tintColor = tintColor"
},
{
"line": 27,
"text": "self.acrylicBrush.luminosityColor = luminosityColor"
},
{
"line": 29,
"text": "def acrylicClipPath(self):"
},
{
"line": 32,
"text": "def _drawAcrylic(self, painter: QPainter):"
},
{
"line": 33,
"text": "path = self.acrylicClipPath()"
},
{
"line": 35,
"text": "self.acrylicBrush.clipPath = self.acrylicClipPath()"
},
{
"line": 37,
"text": "self._updateAcrylicColor()"
},
{
"line": 38,
"text": "self.acrylicBrush.paint()"
},
{
"line": 44,
"text": "self._drawAcrylic(painter)"
}
]
},
{
"repo": "zhiyiYo/PyQt-Fluent-Widgets",
"path": "qfluentwidgets/components/widgets/acrylic_label.py",
"blob_sha": "80961e9f82811f24cc9911a60dd5db7a43dc9eb9",
"url": "https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/qfluentwidgets/components/widgets/acrylic_label.py",
"license": "GPL-3.0",
"hits": [
{
"line": 14,
"text": "isAcrylicAvailable = True"
},
{
"line": 16,
"text": "isAcrylicAvailable = False"
},
{
"line": 18,
"text": "def gaussianBlur(imagePath, blurRadius=18, brightFactor=1, blurPicSize=None):"
},
{
"line": 22,
"text": "def checkAcrylicAvailability():"
},
{
"line": 23,
"text": "if not isAcrylicAvailable:"
},
{
"line": 25,
"text": "'`AcrylicLabel` is not supported in current qfluentwidgets, use `pip install PyQt-Fluent-Widgets[full]` to enable it.')"
},
{
"line": 27,
"text": "return isAcrylicAvailable"
},
{
"line": 38,
"text": "self.blurRadius = 7"
},
{
"line": 46,
"text": "self.imagePath, self.blurRadius, 0.85, self.maxSize)"
},
{
"line": 49,
"text": "def blur(self, imagePath: str, blurRadius=6, maxSize: tuple = (450, 450)):"
},
{
"line": 51,
"text": "self.blurRadius = blurRadius"
},
{
"line": 56,
"text": "class AcrylicTextureLabel(QLabel):"
},
{
"line": 57,
"text": "\"\"\" Acrylic texture label \"\"\""
},
{
"line": 59,
"text": "def __init__(self, tintColor: QColor, luminosityColor: QColor, noiseOpacity=0.03, parent=None):"
},
{
"line": 69,
"text": "noiseOpacity: float"
},
{
"line": 70,
"text": "noise layer opacity"
},
{
"line": 78,
"text": "self.noiseOpacity = noiseOpacity"
},
{
"line": 79,
"text": "self.noiseImage = QImage(':/qfluentwidgets/images/acrylic/noise.png')"
},
{
"line": 87,
"text": "acrylicTexture = QImage(64, 64, QImage.Format_ARGB32_Premultiplied)"
},
{
"line": 90,
"text": "acrylicTexture.fill(self.luminosityColor)"
},
{
"line": 93,
"text": "painter = QPainter(acrylicTexture)"
},
{
"line": 94,
"text": "painter.fillRect(acrylicTexture.rect(), self.tintColor)"
},
{
"line": 96,
"text": "# paint noise"
},
{
"line": 97,
"text": "painter.setOpacity(self.noiseOpacity)"
},
{
"line": 98,
"text": "painter.drawImage(acrylicTexture.rect(), self.noiseImage)"
},
{
"line": 100,
"text": "acrylicBrush = QBrush(acrylicTexture)"
},
{
"line": 102,
"text": "painter.fillRect(self.rect(), acrylicBrush)"
},
{
"line": 105,
"text": "class AcrylicLabel(QLabel):"
},
{
"line": 106,
"text": "\"\"\" Acrylic label \"\"\""
},
{
"line": 108,
"text": "def __init__(self, blurRadius: int, tintColor: QColor, luminosityColor=QColor(255, 255, 255, 0),"
},
{
"line": 113,
"text": "blurRadius: int"
},
{
"line": 129,
"text": "checkAcrylicAvailability()"
},
{
"line": 133,
"text": "self.blurRadius = blurRadius"
},
{
"line": 135,
"text": "self.acrylicTextureLabel = AcrylicTextureLabel("
},
{
"line": 149,
"text": "self.blurThread.blur(imagePath, self.blurRadius, self.maxBlurSize)"
},
{
"line": 152,
"text": "self.acrylicTextureLabel.setTintColor(color)"
},
{
"line": 156,
"text": "self.acrylicTextureLabel.resize(self.size())"
},
{
"line": 163,
"text": "class AcrylicBrush:"
},
{
"line": 164,
"text": "\"\"\" Acrylic brush \"\"\""
},
{
"line": 166,
"text": "def __init__(self, device: QWidget, blurRadius: int, tintColor=QColor(242, 242, 242, 150),"
},
{
"line": 167,
"text": "luminosityColor=QColor(255, 255, 255, 10), noiseOpacity=0.03):"
},
{
"line": 169,
"text": "self.blurRadius = blurRadius"
},
{
"line": 173,
"text": "self.noiseOpacity = noiseOpacity"
},
{
"line": 174,
"text": "self.noiseImage = QImage(':/qfluentwidgets/images/acrylic/noise.png')"
},
{
"line": 181,
"text": "if radius == self.blurRadius:"
},
{
"line": 184,
"text": "self.blurRadius = radius"
},
{
"line": 191,
"text": "def setLuminosityColor(self, color: QColor):"
},
{
"line": 196,
"text": "return isAcrylicAvailable"
},
{
"line": 198,
"text": "def grabImage(self, rect: QRect):"
},
{
"line": 199,
"text": "\"\"\" grab image from screen"
},
{
"line": 204,
"text": "grabbed region"
},
{
"line": 213,
"text": "self.setImage(screen.grabWindow(0, x, y, w, h))"
},
{
"line": 224,
"text": "checkAcrylicAvailability()"
},
{
"line": 226,
"text": "self.image = gaussianBlur(image, self.blurRadius, blurPicSize=self.blurPicSize)"
},
{
"line": 245,
"text": "# paint noise"
},
{
"line": 246,
"text": "painter.setOpacity(self.noiseOpacity)"
},
{
"line": 247,
"text": "painter.drawImage(texture.rect(), self.noiseImage)"
},
{
"line": 264,
"text": "# paint acrylic texture"
}
]
}
]
},
{
"repo": "rdev/liquid-glass-react",
"url": "https://github.com/rdev/liquid-glass-react",
"branch": "master",
"license": "MIT",
"tree_sha": "ac48eab18d1f7f444ae30002d240cae29c863a21",
"source_files": [
{
"repo": "rdev/liquid-glass-react",
"path": "src/index.tsx",
"blob_sha": "a0e6b7242d2c66c598eecdfbe33815d996621571",
"url": "https://github.com/rdev/liquid-glass-react/blob/master/src/index.tsx",
"license": "MIT",
"hits": [
{
"line": 2,
"text": "import { ShaderDisplacementGenerator, fragmentShaders } from \"./shader-utils\""
},
{
"line": 5,
"text": "// Generate shader-based displacement map using shaderUtils"
},
{
"line": 19,
"text": "const getMap = (mode: \"standard\" | \"polar\" | \"prominent\" | \"shader\", shaderMapUrl?: string) => {"
},
{
"line": 27,
"text": "case \"shader\":"
},
{
"line": 28,
"text": "return shaderMapUrl || displacementMap"
},
{
"line": 35,
"text": "const GlassFilter: React.FC<{ id: string; displacementScale: number; aberrationIntensity: number; width: number; height: number; mode: \"standard\" | \"polar\" | \"prominent\" | \"shader\"; shaderMa"
},
{
"line": 42,
"text": "shaderMapUrl,"
},
{
"line": 52,
"text": "<feImage id=\"feimage\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" result=\"DISPLACEMENT_MAP\" href={getMap(mode, shaderMapUrl)} preserveAspectRatio=\"xMidYMid slice\" />"
},
{
"line": 72,
"text": "<feDisplacementMap in=\"SourceGraphic\" in2=\"DISPLACEMENT_MAP\" scale={displacementScale * (mode === \"shader\" ? 1 : -1)} xChannelSelector=\"R\" yChannelSelector=\"B\" result=\"RED_DISPLACED\" />"
},
{
"line": 84,
"text": "<feDisplacementMap in=\"SourceGraphic\" in2=\"DISPLACEMENT_MAP\" scale={displacementScale * ((mode === \"shader\" ? 1 : -1) - aberrationIntensity * 0.05)} xChannelSelector=\"R\" yChannelSelector=\"B\""
},
{
"line": 96,
"text": "<feDisplacementMap in=\"SourceGraphic\" in2=\"DISPLACEMENT_MAP\" scale={displacementScale * ((mode === \"shader\" ? 1 : -1) - aberrationIntensity * 0.1)} xChannelSelector=\"R\" yChannelSelector=\"B\" "
},
{
"line": 112,
"text": "<feGaussianBlur in=\"RGB_COMBINED\" stdDeviation={Math.max(0.1, 0.5 - aberrationIntensity * 0.1)} result=\"ABERRATED_BLURRED\" />"
},
{
"line": 151,
"text": "mode?: \"standard\" | \"polar\" | \"prominent\" | \"shader\""
},
{
"line": 178,
"text": "const [shaderMapUrl, setShaderMapUrl] = useState<string>(\"\")"
},
{
"line": 182,
"text": "// Generate shader displacement map when in shader mode"
},
{
"line": 184,
"text": "if (mode === \"shader\") {"
},
{
"line": 192,
"text": "backdropFilter: `blur(${(overLight ? 12 : 4) + blurAmount * 32}px) saturate(${saturation}%)`,"
},
{
"line": 197,
"text": "<GlassFilter mode={mode} id={filterId} displacementScale={displacementScale} aberrationIntensity={aberrationIntensity} width={glassSize.width} height={glassSize.height} shaderMapUrl={shaderM"
},
{
"line": 264,
"text": "mode?: \"standard\" | \"polar\" | \"prominent\" | \"shader\""
}
]
},
{
"repo": "rdev/liquid-glass-react",
"path": "src/shader-utils.ts",
"blob_sha": "e0957ff52def44d3dc31038fd1a75b6f3f4bcc27",
"url": "https://github.com/rdev/liquid-glass-react/blob/master/src/shader-utils.ts",
"license": "MIT",
"hits": []
}
]
},
{
"repo": "shuding/liquid-glass",
"url": "https://github.com/shuding/liquid-glass",
"branch": "main",
"license": "MIT",
"tree_sha": "a2d2e847f793430e3409a52927af815a23f4d372",
"source_files": [
{
"repo": "shuding/liquid-glass",
"path": "liquid-glass.js",
"blob_sha": "876fd61e0ecb4ee812776da66bd3099646ac1e64",
"url": "https://github.com/shuding/liquid-glass/blob/main/liquid-glass.js",
"license": "MIT",
"hits": [
{
"line": 69,
"text": "cursor: grab;"
},
{
"line": 70,
"text": "backdrop-filter: url(#${this.id}_filter) blur(0.25px) contrast(1.2) brightness(1.05) saturate(1.1);"
},
{
"line": 91,
"text": "filter.setAttribute('filterUnits', 'userSpaceOnUse');"
},
{
"line": 103,
"text": "this.feDisplacementMap = document.createElementNS('http://www.w3.org/2000/svg', 'feDisplacementMap');"
},
{
"line": 104,
"text": "this.feDisplacementMap.setAttribute('in', 'SourceGraphic');"
},
{
"line": 105,
"text": "this.feDisplacementMap.setAttribute('in2', `${this.id}_map`);"
},
{
"line": 106,
"text": "this.feDisplacementMap.setAttribute('xChannelSelector', 'R');"
},
{
"line": 107,
"text": "this.feDisplacementMap.setAttribute('yChannelSelector', 'G');"
},
{
"line": 110,
"text": "filter.appendChild(this.feDisplacementMap);"
},
{
"line": 146,
"text": "this.container.style.cursor = 'grabbing';"
},
{
"line": 172,
"text": "// Update mouse position for shader"
},
{
"line": 184,
"text": "this.container.style.cursor = 'grab';"
},
{
"line": 244,
"text": "this.feDisplacementMap.setAttribute('scale', (maxScale / this.canvasDPI).toString());"
},
{
"line": 261,
"text": "// Create shader"
},
{
"line": 262,
"text": "const shader = new Shader({"
},
{
"line": 282,
"text": "shader.appendTo(document.body);"
},
{
"line": 286,
"text": "// Return shader instance so it can be removed if needed"
},
{
"line": 287,
"text": "window.liquidGlass = shader;"
}
]
}
]
},
{
"repo": "tauri-apps/window-vibrancy",
"url": "https://github.com/tauri-apps/window-vibrancy",
"branch": "dev",
"license": "Apache-2.0",
"tree_sha": "c93f682aa957560d778ca903a881b7c5ba0eb5b9",
"source_files": [
{
"repo": "tauri-apps/window-vibrancy",
"path": "src/windows.rs",
"blob_sha": "f33642c2428f0d14b89ff71b0bb6fb31ac192afa",
"url": "https://github.com/tauri-apps/window-vibrancy/blob/dev/src/windows.rs",
"license": "Apache-2.0",
"hits": [
{
"line": 29,
"text": "SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_ENABLE_BLURBEHIND, color);"
},
{
"line": 52,
"text": "SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_DISABLED, None);"
},
{
"line": 62,
"text": "pub fn apply_acrylic(hwnd: HWND, color: Option<Color>) -> Result<(), Error> {"
},
{
"line": 67,
"text": "DWMWA_SYSTEMBACKDROP_TYPE as _,"
},
{
"line": 73,
"text": "SetWindowCompositionAttribute("
},
{
"line": 75,
"text": "ACCENT_STATE::ACCENT_ENABLE_ACRYLICBLURBEHIND,"
},
{
"line": 81,
"text": "\"\\\"apply_acrylic()\\\" is only available on Windows 10 v1809 or newer and Windows 11.\","
},
{
"line": 87,
"text": "pub fn clear_acrylic(hwnd: HWND) -> Result<(), Error> {"
},
{
"line": 90,
"text": "dwm_set_window_attribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE as _, &DWMSBT_NONE)?;"
},
{
"line": 94,
"text": "SetWindowCompositionAttribute(hwnd, ACCENT_STATE::ACCENT_DISABLED, None);"
},
{
"line": 98,
"text": "\"\\\"clear_acrylic()\\\" is only available on Windows 10 v1809 or newer and Windows 11.\","
},
{
"line": 104,
"text": "pub fn apply_mica(hwnd: HWND, dark: Option<bool>) -> Result<(), Error> {"
},
{
"line": 113,
"text": "dwm_set_window_attribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE as _, &DWMSBT_MAINWINDOW)?;"
},
{
"line": 115,
"text": "} else if is_undocumented_mica_supported() {"
},
{
"line": 121,
"text": "\"\\\"apply_mica()\\\" is only available on Windows 11.\","
},
{
"line": 127,
"text": "pub fn clear_mica(hwnd: HWND) -> Result<(), Error> {"
},
{
"line": 130,
"text": "dwm_set_window_attribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE as _, &DWMSBT_NONE)?;"
},
{
"line": 132,
"text": "} else if is_undocumented_mica_supported() {"
},
{
"line": 138,
"text": "\"\\\"clear_mica()\\\" is only available on Windows 11.\","
},
{
"line": 153,
"text": "dwm_set_window_attribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE as _, &DWMSBT_TABBEDWINDOW)?;"
},
{
"line": 166,
"text": "dwm_set_window_attribute(hwnd, DWMWA_SYSTEMBACKDROP_TYPE as _, &DWMSBT_NONE)?;"
},
{
"line": 195,
"text": "struct ACCENT_POLICY {"
},
{
"line": 213,
"text": "enum ACCENT_STATE {"
},
{
"line": 214,
"text": "ACCENT_DISABLED = 0,"
},
{
"line": 215,
"text": "ACCENT_ENABLE_BLURBEHIND = 3,"
},
{
"line": 216,
"text": "ACCENT_ENABLE_ACRYLICBLURBEHIND = 4,"
},
{
"line": 219,
"text": "unsafe fn SetWindowCompositionAttribute("
},
{
"line": 221,
"text": "accent_state: ACCENT_STATE,"
},
{
"line": 224,
"text": "type SetWindowCompositionAttribute ="
},
{
"line": 228,
"text": "get_function!(\"user32.dll\", SetWindowCompositionAttribute)"
},
{
"line": 232,
"text": "let is_acrylic = accent_state == ACCENT_STATE::ACCENT_ENABLE_ACRYLICBLURBEHIND;"
},
{
"line": 233,
"text": "if is_acrylic && color.3 == 0 {"
},
{
"line": 234,
"text": "// acrylic doesn't like to have 0 alpha"
},
{
"line": 238,
"text": "let mut policy = ACCENT_POLICY {"
},
{
"line": 240,
"text": "AccentFlags: if is_acrylic { 0 } else { 2 },"
},
{
"line": 260,
"text": "let result = unsafe { DwmSetWindowAttribute(hwnd, kind, object as *const _ as _, size) };"
},
{
"line": 264,
"text": "let api = \"DwmSetWindowAttribute\";"
},
{
"line": 285,
"text": "fn is_undocumented_mica_supported() -> bool {"
}
]
}
]
},
{
"repo": "stdware/qwindowkit",
"url": "https://github.com/stdware/qwindowkit",
"readme_source": "https://api.github.com/repos/stdware/qwindowkit/readme",
"license": "Apache-2.0",
"checked": "README platform attributes, Qt integration and compatibility notes; no implementation-source audit."
}
]
}