branch: externals/modus-operandi-theme
commit e57ca4ffc0e758f48ba6ee0d0ebd86f65cff0752
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Use more appropriate colours for fringe indicators
This is to ensure a consistent >= 7:1 contrast ratio (WCAG AAA) when the
user enables the new option for making the fringe background distinct
from the buffer.
That option is off by default. It was added in commit 80fb704:
https://gitlab.com/protesilaos/modus-themes/-/commit/80fb704f83291acb23d646aa3e2463d78e5e3c93
---
modus-operandi-theme.el | 38 +++++++++++++++++++-------------------
modus-vivendi-theme.el | 38 +++++++++++++++++++-------------------
2 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 7f221ed..0de033d 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -788,7 +788,7 @@ between foreground and background is >= 7:1)."
`(cider-enlightened-local-face ((,class (:foreground ,yellow-alt-other
:weight bold))))
`(cider-error-highlight-face ((,class (:foreground ,red :underline t))))
`(cider-fragile-button-face ((,class (:box (:line-width 3 :color ,fg-alt
:style released-button)) :foreground ,yellow)))
- `(cider-fringe-good-face ((,class (:foreground ,green-intense))))
+ `(cider-fringe-good-face ((,class (:foreground ,green-active))))
`(cider-instrumented-face ((,class (:box (:line-width -1 :color ,red :style
nil) :background ,bg-dim))))
`(cider-reader-conditional-face ((,class (:foreground ,fg-special-warm
:slant italic))))
`(cider-repl-input-face ((,class (:weight bold))))
@@ -908,7 +908,7 @@ between foreground and background is >= 7:1)."
:background ,bg-active :foreground
,fg-main))))
`(dap-result-overlay-face ((,class (:box (:line-width -1 :color ,bg-active
:style nil)
:background ,bg-active :foreground
,fg-main))))
- `(dap-ui-breakpoint-verified-fringe ((,class (:foreground ,green-intense
:weight bold))))
+ `(dap-ui-breakpoint-verified-fringe ((,class (:foreground ,green-active
:weight bold))))
`(dap-ui-compile-errline ((,class (:foreground ,red-intense :weight bold))))
`(dap-ui-locals-scope-face ((,class (:foreground ,magenta :weight bold
:underline t))))
`(dap-ui-locals-variable-face ((,class (:foreground ,cyan :weight bold))))
@@ -1230,9 +1230,9 @@ between foreground and background is >= 7:1)."
`(flycheck-error-list-info ((,class (:foreground ,green))))
`(flycheck-error-list-line-number ((,class (:foreground ,fg-special-warm))))
`(flycheck-error-list-warning ((,class (:foreground ,yellow))))
- `(flycheck-fringe-error ((,class (:foreground ,red-intense :weight bold))))
- `(flycheck-fringe-info ((,class (:foreground ,green-intense :weight bold))))
- `(flycheck-fringe-warning ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(flycheck-fringe-error ((,class (:foreground ,red-active :weight bold))))
+ `(flycheck-fringe-info ((,class (:foreground ,green-active :weight bold))))
+ `(flycheck-fringe-warning ((,class (:foreground ,yellow-active :weight
bold))))
`(flycheck-info ((,class (:foreground ,green :underline t))))
`(flycheck-verify-select-checker ((,class (:box (:line-width 1 :color nil
:style released-button)))))
`(flycheck-warning ((,class (:foreground ,yellow :underline t))))
@@ -1334,24 +1334,24 @@ between foreground and background is >= 7:1)."
`(git-commit-pseudo-header ((,class (:foreground ,fg-alt :weight bold))))
`(git-commit-summary ((,class (:foreground ,magenta-alt-other))))
;;;; git-gutter
- `(git-gutter:added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter:deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter:modified ((,class (:foreground ,yellow-intense :weight bold))))
- `(git-gutter:separator ((,class (:foreground ,cyan-intense :weight bold))))
+ `(git-gutter:added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter:deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter:modified ((,class (:foreground ,yellow-active :weight bold))))
+ `(git-gutter:separator ((,class (:foreground ,cyan-active :weight bold))))
`(git-gutter:unchanged ((,class (:inherit modus-theme-refine-magenta))))
;;;; git-gutter-fr
- `(git-gutter-fr:added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter-fr:deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter-fr:modified ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(git-gutter-fr:added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter-fr:deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter-fr:modified ((,class (:foreground ,yellow-active :weight
bold))))
;;;; git-{gutter,fringe}+
- `(git-gutter+-added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter+-deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter+-modified ((,class (:foreground ,yellow-intense :weight
bold))))
- `(git-gutter+-separator ((,class (:foreground ,cyan-intense :weight bold))))
+ `(git-gutter+-added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter+-deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter+-modified ((,class (:foreground ,yellow-active :weight bold))))
+ `(git-gutter+-separator ((,class (:foreground ,cyan-active :weight bold))))
`(git-gutter+-unchanged ((,class (:inherit modus-theme-refine-magenta))))
- `(git-gutter-fr+-added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter-fr+-deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter-fr+-modified ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(git-gutter-fr+-added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter-fr+-deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter-fr+-modified ((,class (:foreground ,yellow-active :weight
bold))))
;;;; git-lens
`(git-lens-added ((,class (:foreground ,green :weight bold))))
`(git-lens-deleted ((,class (:foreground ,red :weight bold))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index b1e3594..0e038e6 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -788,7 +788,7 @@ between foreground and background is >= 7:1)."
`(cider-enlightened-local-face ((,class (:foreground ,yellow-alt-other
:weight bold))))
`(cider-error-highlight-face ((,class (:foreground ,red :underline t))))
`(cider-fragile-button-face ((,class (:box (:line-width 3 :color ,fg-alt
:style released-button)) :foreground ,yellow)))
- `(cider-fringe-good-face ((,class (:foreground ,green-intense))))
+ `(cider-fringe-good-face ((,class (:foreground ,green-active))))
`(cider-instrumented-face ((,class (:box (:line-width -1 :color ,red :style
nil) :background ,bg-dim))))
`(cider-reader-conditional-face ((,class (:foreground ,fg-special-warm
:slant italic))))
`(cider-repl-input-face ((,class (:weight bold))))
@@ -908,7 +908,7 @@ between foreground and background is >= 7:1)."
:background ,bg-active :foreground
,fg-main))))
`(dap-result-overlay-face ((,class (:box (:line-width -1 :color ,bg-active
:style nil)
:background ,bg-active :foreground
,fg-main))))
- `(dap-ui-breakpoint-verified-fringe ((,class (:foreground ,green-intense
:weight bold))))
+ `(dap-ui-breakpoint-verified-fringe ((,class (:foreground ,green-active
:weight bold))))
`(dap-ui-compile-errline ((,class (:foreground ,red-intense :weight bold))))
`(dap-ui-locals-scope-face ((,class (:foreground ,magenta :weight bold
:underline t))))
`(dap-ui-locals-variable-face ((,class (:foreground ,cyan :weight bold))))
@@ -1230,9 +1230,9 @@ between foreground and background is >= 7:1)."
`(flycheck-error-list-info ((,class (:foreground ,green))))
`(flycheck-error-list-line-number ((,class (:foreground ,fg-special-warm))))
`(flycheck-error-list-warning ((,class (:foreground ,yellow))))
- `(flycheck-fringe-error ((,class (:foreground ,red-intense :weight bold))))
- `(flycheck-fringe-info ((,class (:foreground ,green-intense :weight bold))))
- `(flycheck-fringe-warning ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(flycheck-fringe-error ((,class (:foreground ,red-active :weight bold))))
+ `(flycheck-fringe-info ((,class (:foreground ,green-active :weight bold))))
+ `(flycheck-fringe-warning ((,class (:foreground ,yellow-active :weight
bold))))
`(flycheck-info ((,class (:foreground ,green :underline t))))
`(flycheck-verify-select-checker ((,class (:box (:line-width 1 :color nil
:style released-button)))))
`(flycheck-warning ((,class (:foreground ,yellow :underline t))))
@@ -1334,24 +1334,24 @@ between foreground and background is >= 7:1)."
`(git-commit-pseudo-header ((,class (:foreground ,fg-alt :weight bold))))
`(git-commit-summary ((,class (:foreground ,magenta-alt-other))))
;;;; git-gutter
- `(git-gutter:added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter:deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter:modified ((,class (:foreground ,yellow-intense :weight bold))))
- `(git-gutter:separator ((,class (:foreground ,cyan-intense :weight bold))))
+ `(git-gutter:added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter:deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter:modified ((,class (:foreground ,yellow-active :weight bold))))
+ `(git-gutter:separator ((,class (:foreground ,cyan-active :weight bold))))
`(git-gutter:unchanged ((,class (:inherit modus-theme-refine-magenta))))
;;;; git-gutter-fr
- `(git-gutter-fr:added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter-fr:deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter-fr:modified ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(git-gutter-fr:added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter-fr:deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter-fr:modified ((,class (:foreground ,yellow-active :weight
bold))))
;;;; git-{gutter,fringe}+
- `(git-gutter+-added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter+-deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter+-modified ((,class (:foreground ,yellow-intense :weight
bold))))
- `(git-gutter+-separator ((,class (:foreground ,cyan-intense :weight bold))))
+ `(git-gutter+-added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter+-deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter+-modified ((,class (:foreground ,yellow-active :weight bold))))
+ `(git-gutter+-separator ((,class (:foreground ,cyan-active :weight bold))))
`(git-gutter+-unchanged ((,class (:inherit modus-theme-refine-magenta))))
- `(git-gutter-fr+-added ((,class (:foreground ,green-intense :weight bold))))
- `(git-gutter-fr+-deleted ((,class (:foreground ,red-intense :weight bold))))
- `(git-gutter-fr+-modified ((,class (:foreground ,yellow-intense :weight
bold))))
+ `(git-gutter-fr+-added ((,class (:foreground ,green-active :weight bold))))
+ `(git-gutter-fr+-deleted ((,class (:foreground ,red-active :weight bold))))
+ `(git-gutter-fr+-modified ((,class (:foreground ,yellow-active :weight
bold))))
;;;; git-lens
`(git-lens-added ((,class (:foreground ,green :weight bold))))
`(git-lens-deleted ((,class (:foreground ,red :weight bold))))