core: add film-grain overlay for materials

This commit is contained in:
2026-11-14 14:13:02 +07:00
parent db41b19e4a
commit 19154527f2
9 changed files with 145 additions and 2 deletions
+4 -1
View File
@@ -12,6 +12,7 @@ gpui-native-utils = { workspace = true }
log = "0.4"
unicode-segmentation = "1.12"
flume = { version = "0.12", optional = true }
image = { version = "0.25.1", default-features = false, optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cpal = { version = "0.18", optional = true }
@@ -54,6 +55,7 @@ full = [
"alert",
"toast",
"speech",
"grain",
]
button = ["spinner"]
checkbox = []
@@ -82,8 +84,9 @@ tooltip = []
menu = ["scroll_area"]
dropdown_menu = ["menu", "button"]
select = ["menu"]
dialog = ["button", "scroll_area"]
dialog = ["button", "scroll_area", "grain"]
empty_state = []
grain = ["dep:image"]
alert = []
toast = []
speech = ["spinner", "tooltip", "dep:flume", "dep:cpal"]