BlueGit

ict rusty-teams

Files

rusty-teams / crates / app / src / notify / platform / stub.rs

stub.rs

stub.rs 1.1 KiB Download Raw
1use gpui_kit::Window;
2
3use super::{NativeHandle, TrayCommand, WorkArea};
4use crate::notify::badge::Badge;
5
6pub fn native_handle(_window: &Window) -> Option<NativeHandle> {
7 None
8}
9
10pub fn prepare_toast_window(_handle: NativeHandle) {}
11
12pub fn set_activatable(_handle: NativeHandle, _activatable: bool) {}
13
14pub fn work_area(_handle: NativeHandle) -> Option<WorkArea> {
15 None
16}
17
18pub fn place(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {}
19
20pub fn system_quiet() -> bool {
21 false
22}
23
24pub fn restore_and_raise(_handle: NativeHandle) {}
25
26pub fn hide_window(_handle: NativeHandle) {}
27
28pub fn flash(_handle: NativeHandle) {}
29
30pub fn stop_flash(_handle: NativeHandle) {}
31
32pub fn set_badge(_handle: NativeHandle, _badge: Option<&Badge>) {}
33
34pub fn play_sound() {}
35
36pub struct Tray;
37
38impl Tray {
39 pub fn new(_sound_on: bool, _do_not_disturb: bool) -> Option<Self> {
40 None
41 }
42
43 pub fn poll(&self) -> Vec<TrayCommand> {
44 Vec::new()
45 }
46
47 pub fn sync(&self, _sound_on: bool, _do_not_disturb: bool, _mention: bool) {}
48}
49
50
51pub fn animations_enabled() -> bool {
52 true
53}