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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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
  9. +++ b/chrome/browser/resources/extensions/item.html
  10. @@ -133,28 +133,28 @@
  11. }
  12. #source-indicator {
  13. - margin-inline-start: 24px;
  14. - margin-top: 24px;
  15. position: absolute;
  16. + right: -2px;
  17. + bottom: -2px;
  18. display: none;
  19. }
  20. .source-icon-wrapper {
  21. - align-items: center;
  22. - background: rgb(241, 89, 43); /* Same in light & dark modes. */
  23. - border-radius: 50%; /* 50% border radius === a circle */
  24. - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.22),
  25. - 0 2px 2px 0 rgba(0, 0, 0, 0.12);
  26. display: flex;
  27. - height: 22px;
  28. - justify-content: center;
  29. - width: 22px;
  30. + height: 16px;
  31. + width: 16px;
  32. + }
  33. +
  34. + .source-icon-wrapper[aria-label="Unpacked extension"] {
  35. + height: 20px;
  36. + width: 20px;
  37. }
  38. #source-indicator iron-icon {
  39. - color: white;
  40. - height: 16px;
  41. - width: 16px;
  42. + color: #777;
  43. + height: 100%;
  44. + width: 100%;
  45. + margin: auto;
  46. }
  47. paper-tooltip {