fractal::utils::notifications

Function string_as_notification_icon

Source
pub(crate) fn string_as_notification_icon(
    string: &str,
    scale_factor: i32,
    layout: &Layout,
    renderer: &Renderer,
) -> Texture
Expand description

Generate a notification icon from a string.

This should match the behavior of AdwAvatar.