Loading js/theme-helper-main.js +14 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,7 @@ if (OCA.Accessibility.highcontrast) { } const activeIconColorCode = "007fff"; const whiteColorCode = "ffffff"; const notifImgSelector = "#header .notifications .notifications-button img"; const notifButtonSelector = "#header .notifications .notifications-button"; function getSvgLinkCore(folder, svgName, color) { if (color.length) { Loading Loading @@ -56,8 +55,9 @@ function replaceNavbarIcon(appId, currentLi, selector) { } function replaceNotificationIcon(imgSelector) { $(imgSelector).hide(); const src = $(imgSelector).attr("src") || ""; const notifButtonSelector = "#header .notifications .notifications-button"; $(notifButtonSelector).css('visibility', 'visible'); if (src.includes("notifications-new.svg")) { $(notifButtonSelector).removeClass("icon-notifications"); $(notifButtonSelector).addClass("icon-notifications-new"); Loading Loading @@ -231,9 +231,18 @@ function replaceSettingsMenuIcons() { // TODO: fix the logout icon for highcontrast(it is not working well with SVG Controller) } function hideNotificationButton() { if (!($(notifButtonSelector).hasClass('icon-notifications') || $(notifButtonSelector).hasClass('icon-notifications-new'))) { $(notifButtonSelector).css('visibility', 'hidden'); } } jQuery(window).load(function () { /* Notifications icon(Replace src on load) */ replaceNotificationIcon(notifImgSelector); $(notifImgSelector).on("load", function () { replaceNotificationIcon(notifImgSelector); }); }); $(document).ready(function () { Loading @@ -241,7 +250,8 @@ $(document).ready(function () { if (bodyId === "body-user" || bodyId === "body-settings") { $(notifImgSelector).hide(); hideNotificationButton(); /* Navbar and navbar menus */ replaceNavbarIcons(); Loading Loading
js/theme-helper-main.js +14 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,7 @@ if (OCA.Accessibility.highcontrast) { } const activeIconColorCode = "007fff"; const whiteColorCode = "ffffff"; const notifImgSelector = "#header .notifications .notifications-button img"; const notifButtonSelector = "#header .notifications .notifications-button"; function getSvgLinkCore(folder, svgName, color) { if (color.length) { Loading Loading @@ -56,8 +55,9 @@ function replaceNavbarIcon(appId, currentLi, selector) { } function replaceNotificationIcon(imgSelector) { $(imgSelector).hide(); const src = $(imgSelector).attr("src") || ""; const notifButtonSelector = "#header .notifications .notifications-button"; $(notifButtonSelector).css('visibility', 'visible'); if (src.includes("notifications-new.svg")) { $(notifButtonSelector).removeClass("icon-notifications"); $(notifButtonSelector).addClass("icon-notifications-new"); Loading Loading @@ -231,9 +231,18 @@ function replaceSettingsMenuIcons() { // TODO: fix the logout icon for highcontrast(it is not working well with SVG Controller) } function hideNotificationButton() { if (!($(notifButtonSelector).hasClass('icon-notifications') || $(notifButtonSelector).hasClass('icon-notifications-new'))) { $(notifButtonSelector).css('visibility', 'hidden'); } } jQuery(window).load(function () { /* Notifications icon(Replace src on load) */ replaceNotificationIcon(notifImgSelector); $(notifImgSelector).on("load", function () { replaceNotificationIcon(notifImgSelector); }); }); $(document).ready(function () { Loading @@ -241,7 +250,8 @@ $(document).ready(function () { if (bodyId === "body-user" || bodyId === "body-settings") { $(notifImgSelector).hide(); hideNotificationButton(); /* Navbar and navbar menus */ replaceNavbarIcons(); Loading