Snapshot của chrisbanes/haze: 2.7k★ · Kotlin · Mobile. Background blurring for Compose Multiplatform / Jetpack Compose
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Haze provides hardware-accelerated visual effects for Compose Multiplatform — Android, iOS, macOS, Desktop, and Web. Its modular Haze 2 API lets you apply source-backed or own-content Blur, refraction-driven Glass, and custom effects with explicit, reusable configuration.
If you are upgrading from Haze 1.x, see the Haze 2 migration guide.
Platforms
Platform
Support
Android
✅
Desktop (JVM)
✅
iOS
✅
macOS
✅
Wasm / JS
✅
Modules
Add the core module and only the effect modules you use. Keep every Haze artifact on the same version.
Artifact
Purpose
haze
Source capture and the typed custom-effect API.
haze-blur
Blur for captured sources or a modifier's own content.
haze-blur-materials
Optional ready-made Blur Styles, including HazeMaterials.thin().
HazeInput.Sources renders captured hazeSource content. Use HazeInput.Content to blur the modifier's own content instead. Share a HazeBlurStyle between modifiers and use then to derive variations. Snapshot state read inside a remembered Style block updates each node without recomposition; supply a replacement Style to change the selected Style.
The optional Blur material presets provide HazeMaterials.ultraThin(), thin(), regular(), thick(), and ultraThick(). The haze-blur-material3 integration provides HazeBlurStyle.Material3() for a Style based on the current Material 3 surface.
Glass
haze-glass is a Haze 2 module for material-like Glass: refraction, depth Blur, tint, lighting, highlights, rounded shapes, and optional pointer, focus, and press responses.
Start with GlassStyle.regular, or use GlassStyle.clear when the background should remain more
visible. Consult the Glass guide for custom
optics, interaction, retention, and platform fallback behavior. Add haze-glass-material3 to use
material3() with your current Material 3 surface color. Regular and
Clear follow the system appearance without Material 3. The optional integration supplies the app
theme's surface color and can add a tint.
Performance
Built-in Blur and Glass use HazePerformanceMode.Default, which selects the fixed Balanced profile. Begin with that setting and measure a release-like build on representative devices before selecting Quality, Performance, or Fixed(...). Adaptive remains as a deprecated compatibility alias for Default. Custom effects keep the separate HazeSampling policy. See the performance guide for the decision framework and effect-specific guidance.
Camera and platform views
Blur and Glass can process a live camera preview when its pixels are drawn in the same Compose graphics layer as hazeSource. On Android, CameraX requires PreviewView.ImplementationMode.COMPATIBLE; a SurfaceView cannot be captured. The camera guide covers CameraX, Kamera, and the same constraint for video and other platform views.
Learn more
Haze documentation
Blur guide
Glass guide
Custom effects
Sample code
Haze 2 migration guide
License
Copyright 2024 Chris Banes
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
chrisbanes/haze có 2.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/chrisbanes/haze. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
chrisbanes/haze có những chủ đề gì?
GitHub topics của chrisbanes/haze: "blur", "compose-multiplatform", "jetpack-compose". TopGit xếp repo vào nhóm Mobile.
chrisbanes/haze còn đang phát triển không?
Commit gần nhất trên chrisbanes/haze là 3 tháng trước (theo timestamp GitHub). Repo có 90 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
chrisbanes/haze viết bằng ngôn ngữ gì?
chrisbanes/haze chủ yếu viết bằng Kotlin. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Cùng nhóm Mobile còn repo nào?
chrisbanes/haze thuộc nhóm Mobile trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về chrisbanes/haze ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/chrisbanes/haze là nguồn chính thức.
Vì sao chrisbanes/haze được xếp vào nhóm Mobile?
TopGit xếp chrisbanes/haze vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "blur", "compose-multiplatform", "jetpack-compose"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
haze có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về haze.