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

Commit 907c56e0 authored by Akhil's avatar Akhil 🙂
Browse files

Few small fixes

parent 1116c80a
Loading
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -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) {
@@ -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")) {
@@ -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();

@@ -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');
});