Lines Matching refs:icon
43 export const withNotificationIcons: ConfigPlugin<{ icon: string | null }> = (config, { icon }) => {
45 icon = icon || getNotificationIcon(config);
49 await setNotificationIconAsync(config.modRequest.projectRoot, icon);
68 icon: string | null;
70 }> = (config, { icon, color }) => {
72 icon = icon || getNotificationIcon(config);
75 config.modResults = setNotificationConfig({ icon, color }, config.modResults);
91 return config.notification?.icon || null;
111 export async function setNotificationIconAsync(projectRoot: string, icon: string | null) {
112 if (icon) {
113 await writeNotificationIconImageFilesAsync(icon, projectRoot);
120 props: { icon: string | null; color: string | null },
124 if (props.icon) {
147 async function writeNotificationIconImageFilesAsync(icon: string, projectRoot: string) {
162 src: icon,
232 { icon = null, color = null, sounds = [] }
235 config = withNotificationIcons(config, { icon });
236 config = withNotificationManifest(config, { icon, color });