also looking at this
feat: add custom tray and menu and remove default tray
#9
2 files
+26
-8
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -169,8 +169,19 @@ export function tauri(config?: TauriConfig): PluginOption { | ||
| 169 | 169 | tauriConfig = { |
| 170 | 170 | ...tauriConfig, |
| 171 | 171 | app: { |
| 172 | trayIcon: { | |
| 173 | iconAsTemplate: true, | |
| 172 | security: { | |
| 173 | capabilities: [ | |
| 174 | { | |
| 175 | identifier: 'systemTray', | |
| 176 | description: 'Lets app custom configuration for System tray, and menu options', | |
| 177 | windows: ['main'], | |
| 178 | permissions: [ | |
| 179 | 'core:tray:default', | |
| 180 | 'core:menu:default', | |
| 181 | 'core:app:allow-default-window-icon', | |
| 182 | ], | |
| 183 | }, | |
| 184 | ], | |
| 174 | 185 | }, |
| 175 | 186 | }, |
| 176 | 187 | } |
| @@ -237,8 +248,19 @@ export function tauri(config?: TauriConfig): PluginOption { | ||
| 237 | 248 | tauriConfig = { |
| 238 | 249 | ...tauriConfig, |
| 239 | 250 | app: { |
| 240 | trayIcon: { | |
| 241 | iconAsTemplate: true, | |
| 251 | security: { | |
| 252 | capabilities: [ | |
| 253 | { | |
| 254 | identifier: 'systemTray', | |
| 255 | description: 'Lets app custom configuration for System tray, and menu options', | |
| 256 | windows: ['main'], | |
| 257 | permissions: [ | |
| 258 | 'core:tray:default', | |
| 259 | 'core:menu:default', | |
| 260 | 'core:app:allow-default-window-icon', | |
| 261 | ], | |
| 262 | }, | |
| 263 | ], | |
| 242 | 264 | }, |
| 243 | 265 | }, |
| 244 | 266 | } |