Loading js/theme-helper-main.js +11 −9 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ if (OCA.Accessibility.highcontrast) { } const activeIconColorCode = "007fff"; const whiteColorCode = "ffffff"; const notifImgSelector = "#header .notifications .notifications-button img"; function getSvgLinkCore(folder, svgName, color) { if (color.length) { Loading Loading @@ -54,7 +56,6 @@ function replaceNavbarIcon(appId, currentLi, selector) { } function replaceNotificationIcon(imgSelector) { $(imgSelector).hide(); const src = $(imgSelector).attr("src") || ""; const notifButtonSelector = "#header .notifications .notifications-button"; if (src.includes("notifications-new.svg")) { Loading Loading @@ -229,16 +230,18 @@ function replaceSettingsMenuIcons() { // TODO: fix the logout icon for highcontrast(it is not working well with SVG Controller) } jQuery(window).load(function () { /* Notifications icon(Replace src on load) */ $('#header .notifications .notifications-button').css('visibility', 'visible'); const notifImgSelector = "#header .notifications .notifications-button img"; replaceNotificationIcon(notifImgSelector); }); $(document).ready(function () { const bodyId = $("body").attr("id"); if (bodyId === "body-user" || bodyId === "body-settings") { $(notifImgSelector).hide(); /* Navbar and navbar menus */ replaceNavbarIcons(); Loading @@ -265,5 +268,4 @@ $(document).ready(function () { } $('#app-navigation [data-id="trashbin"]').removeClass("pinned first-pinned"); $('#app-navigation [id="quota"]').addClass("pinned first-pinned"); $('#header .notifications .notifications-button').css('visibility', 'hidden'); }); Loading
js/theme-helper-main.js +11 −9 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ if (OCA.Accessibility.highcontrast) { } const activeIconColorCode = "007fff"; const whiteColorCode = "ffffff"; const notifImgSelector = "#header .notifications .notifications-button img"; function getSvgLinkCore(folder, svgName, color) { if (color.length) { Loading Loading @@ -54,7 +56,6 @@ function replaceNavbarIcon(appId, currentLi, selector) { } function replaceNotificationIcon(imgSelector) { $(imgSelector).hide(); const src = $(imgSelector).attr("src") || ""; const notifButtonSelector = "#header .notifications .notifications-button"; if (src.includes("notifications-new.svg")) { Loading Loading @@ -229,16 +230,18 @@ function replaceSettingsMenuIcons() { // TODO: fix the logout icon for highcontrast(it is not working well with SVG Controller) } jQuery(window).load(function () { /* Notifications icon(Replace src on load) */ $('#header .notifications .notifications-button').css('visibility', 'visible'); const notifImgSelector = "#header .notifications .notifications-button img"; replaceNotificationIcon(notifImgSelector); }); $(document).ready(function () { const bodyId = $("body").attr("id"); if (bodyId === "body-user" || bodyId === "body-settings") { $(notifImgSelector).hide(); /* Navbar and navbar menus */ replaceNavbarIcons(); Loading @@ -265,5 +268,4 @@ $(document).ready(function () { } $('#app-navigation [data-id="trashbin"]').removeClass("pinned first-pinned"); $('#app-navigation [id="quota"]').addClass("pinned first-pinned"); $('#header .notifications .notifications-button').css('visibility', 'hidden'); });