subtle-source-indicator-for-extensions.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ## This patch changes the source-indicator badges on
  2. # the chrome://extensions/ page to a subtler version.
  3. # See also https://github.com/Eloston/ungoogled-chromium/issues/1552
  4. #
  5. # When using this patch check that hide-source-indicator-for-extensions.patch
  6. # is __not__ applied - otherwise no indicator is shown.
  7. ##
  8. --- a/chrome/browser/resources/extensions/item.html.orig
  9. +++ b/chrome/browser/resources/extensions/item.html
  10. @@ -133,27 +133,27 @@
  11. }
  12. #source-indicator {
  13. - margin-inline-start: 24px;
  14. - margin-top: 24px;
  15. position: absolute;
  16. + right: -2px;
  17. + bottom: -2px;
  18. }
  19. .source-icon-wrapper {
  20. - align-items: center;
  21. - background: rgb(241, 89, 43); /* Same in light & dark modes. */
  22. - border-radius: 50%; /* 50% border radius === a circle */
  23. - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.22),
  24. - 0 2px 2px 0 rgba(0, 0, 0, 0.12);
  25. display: flex;
  26. - height: 22px;
  27. - justify-content: center;
  28. - width: 22px;
  29. + height: 16px;
  30. + width: 16px;
  31. + }
  32. +
  33. + .source-icon-wrapper[aria-label="Unpacked extension"] {
  34. + height: 20px;
  35. + width: 20px;
  36. }
  37. #source-indicator iron-icon {
  38. - color: white;
  39. - height: 16px;
  40. - width: 16px;
  41. + color: #777;
  42. + height: 100%;
  43. + width: 100%;
  44. + margin: auto;
  45. }
  46. paper-tooltip {