GitHub - swap icon colors (open=red, closed=green)

Makes "good" icons green and "bad" ones red. Closed issue is good, unresolved is bad.

当前为 2020-08-18 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name GitHub - swap icon colors (open=red, closed=green)
  3. @description Makes "good" icons green and "bad" ones red. Closed issue is good, unresolved is bad.
  4. @namespace myfonj
  5. @version 0.0.2
  6. @license CC0 - Public Domain
  7. ==/UserStyle== */
  8. @-moz-document domain("github.com") {
  9. /*
  10. GitHub - swap colors (open=red, closed=green)
  11. */
  12. .octicon.open,
  13. .octicon.octicon-issue-opened path
  14. { color: #cb2431; /* original is green */
  15. }
  16. .octicon.closed,
  17. .octicon.octicon-issue-closed path
  18. { color: #28a745; /* original is red */
  19. }
  20. .reponav-item .octicon path,
  21. .table-list-header-toggle .btn-link path,
  22. .State--green .octicon.octicon-issue-opened path,
  23. .State--red .octicon.octicon-issue-closed path
  24. { color: inherit
  25. }
  26. .State--green
  27. { background-color: #cb2431; /* original is green */
  28. }
  29. .State--red
  30. { background-color: #28a745; /* original is red */
  31. }
  32. .type-icon-state-closed .octicon-git-pull-request
  33. { /* leaving original red, as for "closed not merged" */
  34. }
  35. .octicon.octicon-git-pull-request.open
  36. { color: orange; /* original is green */
  37. }
  38. .octicon.octicon-git-pull-request.open.text-green
  39. { color: orange !important; /* text-green is !important; ghis appears in tooltip */
  40. }
  41. .octicon.octicon-git-merge.merged , /* does not seem to be needed anymore */
  42. .type-icon-state-merged .octicon-git-merge
  43. { color: #28a745; /* original violet seems quite ok-ish as well, but to be consistent let's make it green. merged PR = OK*/
  44. }
  45. .octicon-git-pull-request.closed
  46. { color: #cb2431; /* original is green; closed not merged - not error, not OK */
  47. }
  48. .octicon-git-pull-request.text-gray-light
  49. { /* "draft" PR is gray */
  50. }
  51.  
  52. /* user closed this issue ... */
  53. .TimelineItem-badge.text-white.bg-red > .octicon.octicon-circle-slash
  54. { background-color: #28a745;
  55. outline: .4rem solid #28a745;
  56. color: rgba(255,255,255,.2); /* icon shape is like "🚫" here */
  57. }
  58.  
  59. /* user reopened this issue ... */
  60. .TimelineItem-badge.text-white.bg-green > .octicon.octicon-dot-fill
  61. { background-color: #cb2431;
  62. outline: .4rem solid #cb2431;
  63. color: rgba(255,255,255,.2); /* icon shape is "•" here */
  64. }
  65. /*
  66. END: GitHub - swap colors (open=red, closed=green)
  67. */
  68. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址