Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 08679deb authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

replace icon in navbar

parent df7afaad
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -67,8 +67,11 @@ function replaceNavbarIcon(appId, currentLi, selector) {
	if (selector.includes('#navigation')) {
		$(selector).attr('filter', '')
	}
	if (fileName.includes('.svg')) {
		fileName = fileName.split('.svg')[0]
	// snappymail uses png file in icon
	if (fileName.includes('.svg') || appId === 'snappymail') {
		appId === 'snappymail'
			? fileName = 'app'
			: fileName = fileName.split('.svg')[0]
		
		const color = $(currentLi).find('a.active').length
			? activeIconColorCode
@@ -117,7 +120,6 @@ function replaceActivityIcons() {
		security: getSvgLinkCore('actions', 'password', ''),
		files_sharing: getSvgLinkCore('actions', 'share', ''),
		calendar: getSvgLinkApp('calendar', 'calendar', ''),
		snappymail: getSvgLinkApp('snappymail', 'snappymail', ''),
		calendar_todo: getSvgLinkCore('actions', 'checkmark', ''),
		comments: getSvgLinkCore('actions', 'comment', ''),
		deck: getSvgLinkApp('deck', 'deck-dark', ''),