[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme 0bb261d 076/112: Define new fringe
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme 0bb261d 076/112: Define new fringe colours and faces |
Date: |
Mon, 30 Mar 2020 15:59:42 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit 0bb261d9fd94d18e6ffdd95912f89e4fa6149000
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>
Define new fringe colours and faces
These are meant to be applied to indicators that are displayed in the
fringes.
The motivation is to improve contrast with the colour of the fringe,
when the new customisation option is enabled by the user (see commit:
https://gitlab.com/protesilaos/modus-themes/-/commit/80fb704f83291acb23d646aa3e2463d78e5e3c93).
At any rate, these additions will allow us to improve things regardless
of that option.
---
modus-operandi-theme.el | 20 ++++++++++++++++++++
modus-vivendi-theme.el | 20 ++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 0de033d..9e75d5c 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -290,6 +290,12 @@ between foreground and background is >= 7:1)."
(defface modus-theme-active-blue nil t)
(defface modus-theme-active-magenta nil t)
(defface modus-theme-active-cyan nil t)
+(defface modus-theme-fringe-red nil t)
+(defface modus-theme-fringe-green nil t)
+(defface modus-theme-fringe-yellow nil t)
+(defface modus-theme-fringe-blue nil t)
+(defface modus-theme-fringe-magenta nil t)
+(defface modus-theme-fringe-cyan nil t)
(defface modus-theme-special-cold nil t)
(defface modus-theme-special-mild nil t)
(defface modus-theme-special-warm nil t)
@@ -423,6 +429,13 @@ between foreground and background is >= 7:1)."
(red-active "#930000") (green-active "#005300")
(yellow-active "#703700") (blue-active "#0033c0")
(magenta-active "#6320a0") (cyan-active "#004882")
+ ;; styles that are meant exclusively for the fringes
+ ;;
+ ;; must have a minimum contrast ratio of 1.5:1 with `bg-inactive'
+ ;; and be combined with `fg-main'
+ (red-fringe-bg "#ff7a7a") (green-fringe-bg "#70cc70")
+ (yellow-fringe-bg "#e0c000") (blue-fringe-bg "#7fafff")
+ (magenta-fringe-bg "#ffa0ff") (cyan-fringe-bg "#00d0f0")
;; styles reserved for specific faces
;;
@@ -517,6 +530,13 @@ between foreground and background is >= 7:1)."
`(modus-theme-active-blue ((,class (:background ,blue-active :foreground
,bg-active))))
`(modus-theme-active-magenta ((,class (:background ,magenta-active
:foreground ,bg-active))))
`(modus-theme-active-cyan ((,class (:background ,cyan-active :foreground
,bg-active))))
+ ;;; for fringe indicators
+ `(modus-theme-fringe-red ((,class (:background ,red-fringe-bg :foreground
,fg-main))))
+ `(modus-theme-fringe-green ((,class (:background ,green-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-yellow ((,class (:background ,yellow-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-blue ((,class (:background ,blue-fringe-bg :foreground
,fg-main))))
+ `(modus-theme-fringe-magenta ((,class (:background ,magenta-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-cyan ((,class (:background ,cyan-fringe-bg :foreground
,fg-main))))
;;; special base values that are closer to the grayscale than
;;; the accents defined above
`(modus-theme-special-cold ((,class (:background ,bg-special-cold
:foreground ,fg-special-cold))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 0e038e6..7c3511c 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -290,6 +290,12 @@ between foreground and background is >= 7:1)."
(defface modus-theme-active-blue nil t)
(defface modus-theme-active-magenta nil t)
(defface modus-theme-active-cyan nil t)
+(defface modus-theme-fringe-red nil t)
+(defface modus-theme-fringe-green nil t)
+(defface modus-theme-fringe-yellow nil t)
+(defface modus-theme-fringe-blue nil t)
+(defface modus-theme-fringe-magenta nil t)
+(defface modus-theme-fringe-cyan nil t)
(defface modus-theme-special-cold nil t)
(defface modus-theme-special-mild nil t)
(defface modus-theme-special-warm nil t)
@@ -423,6 +429,13 @@ between foreground and background is >= 7:1)."
(red-active "#ffaa20") (green-active "#70e030")
(yellow-active "#efdf00") (blue-active "#00ccff")
(magenta-active "#d0acff") (cyan-active "#00ddc0")
+ ;; styles that are meant exclusively for the fringes
+ ;;
+ ;; must have a minimum contrast ratio of 1.5:1 with `bg-inactive'
+ ;; and be combined with `fg-main'
+ (red-fringe-bg "#a00000") (green-fringe-bg "#006600")
+ (yellow-fringe-bg "#775500") (blue-fringe-bg "#3228bb")
+ (magenta-fringe-bg "#990099") (cyan-fringe-bg "#005599")
;; styles reserved for specific faces
;;
@@ -517,6 +530,13 @@ between foreground and background is >= 7:1)."
`(modus-theme-active-blue ((,class (:background ,blue-active :foreground
,bg-active))))
`(modus-theme-active-magenta ((,class (:background ,magenta-active
:foreground ,bg-active))))
`(modus-theme-active-cyan ((,class (:background ,cyan-active :foreground
,bg-active))))
+ ;;; for fringe indicators
+ `(modus-theme-fringe-red ((,class (:background ,red-fringe-bg :foreground
,fg-main))))
+ `(modus-theme-fringe-green ((,class (:background ,green-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-yellow ((,class (:background ,yellow-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-blue ((,class (:background ,blue-fringe-bg :foreground
,fg-main))))
+ `(modus-theme-fringe-magenta ((,class (:background ,magenta-fringe-bg
:foreground ,fg-main))))
+ `(modus-theme-fringe-cyan ((,class (:background ,cyan-fringe-bg :foreground
,fg-main))))
;;; special base values that are closer to the grayscale than
;;; the accents defined above
`(modus-theme-special-cold ((,class (:background ,bg-special-cold
:foreground ,fg-special-cold))))
- [elpa] externals/modus-operandi-theme 4f35902 065/112: Add support for PARADOX, (continued)
- [elpa] externals/modus-operandi-theme 4f35902 065/112: Add support for PARADOX, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 9bd8996 066/112: Appropriate colour for `compilation-line-number', Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 39557fa 069/112: Add support for RIPGREP (ripgrep.el), Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme d190a2b 090/112: Add support for STRIPES, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme b52f412 072/112: Document new custom option for visible fringes, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 6bda04f 074/112: Add README section on FSF copyright assignment, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 71372a8 078/112: Use new fringe colours for FLYCHECK indicators, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme b0c0fd1 082/112: Add support for SIDE-NOTES, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 5247356 083/112: Internal: fix indentation in `outline-mode' group, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 9dbe77a 063/112: Add tentative support for SALLET, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 0bb261d 076/112: Define new fringe colours and faces,
Stefan Monnier <=
- [elpa] externals/modus-operandi-theme b7f6955 081/112: Add support for FREEZE-IT, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme b590bf2 079/112: Use new fringe colours for GIT-GUTTER indicators, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme d614a32 105/112: Use right colours for `gnus-summary-cancelled', Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme adb7110 109/112: Internal: minor documentation corrections, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme e57ca4f 075/112: Use more appropriate colours for fringe indicators, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme b1660a9 080/112: Refine DIFF-HL and use new fringe colours, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme ee7ea51 087/112: Remove bold weight from matching parentheses, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme c4e0434 091/112: Add support for ORG-TREESCOPE, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 3a6ebbc 093/112: Add support for CSV-MODE, Stefan Monnier, 2020/03/30
- [elpa] externals/modus-operandi-theme 7890009 100/112: Merge branch 'fix-modus-vivendi-theme' into 'master', Stefan Monnier, 2020/03/30