[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/realgud f884fe7 003/140: Simplify and perhaps generaliz
From: |
Rocky Bernstein |
Subject: |
[elpa] externals/realgud f884fe7 003/140: Simplify and perhaps generalize |
Date: |
Sat, 25 May 2019 19:35:19 -0400 (EDT) |
branch: externals/realgud
commit f884fe71bf0c1c8190279751c8b7d8c657770095
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Simplify and perhaps generalize
---
realgud/common/fringe.el | 66 +++++++++++++++---------------------------------
1 file changed, 21 insertions(+), 45 deletions(-)
diff --git a/realgud/common/fringe.el b/realgud/common/fringe.el
index c50153b..f974e28 100644
--- a/realgud/common/fringe.el
+++ b/realgud/common/fringe.el
@@ -29,51 +29,27 @@
;; FIXME: Figure out how to do this as a macro.
-(if (equal 'dark (frame-parameter nil 'background-mode))
- (progn
- (defface realgud-overlay-arrow1
- '((t
- :foreground "green"
- :weight bold))
- "Fringe face for current position."
- :group 'realgud)
-
- (defface realgud-overlay-arrow2
- '((t
- :foreground "white"
- :weight bold))
- "Fringe face for position one back in fringe."
- :group 'realgud)
-
- (defface realgud-overlay-arrow3
- '((t
- :foreground "gray"
- :weight bold))
- "Fringe face for position two back in fringe."
- :group 'realgud)
- )
- ;; else
- (progn
- (defface realgud-overlay-arrow1
- '((t
- :foreground "black"
- :weight bold))
- "Fringe face for current position."
- :group 'realgud)
-
- (defface realgud-overlay-arrow2
- '((t
- :foreground "gray"
- :weight bold))
- "Fringe face for position one back in fringe."
- :group 'realgud)
-
- (defface realgud-overlay-arrow3
- '((t
- :foreground "gainsboro"
- :weight bold))
- "Fringe face for position two back in fringe."
- :group 'realgud)))
+(defface realgud-overlay-arrow1
+ '((((class color) (min-colors 16) (background light)) :foreground
"ForestGreen" :weight bold)
+ (((class color) (min-colors 16) (background dark)) :foreground
"PaleGreen" :weight bold)
+ (((class color) (min-colors 8)) :foreground "green")
+ (((class grayscale) (background light)) :foreground "Black" :weight bold)
+ (((class grayscale) (background dark)) :foreground "White" :weight bold)
+ (t :weight bold))
+ "Realgud fringe face for current position indicator."
+ :group 'realgud)
+
+(defface realgud-overlay-arrow2
+ '((((background dark)) :foreground "white" :weight bold)
+ (((background light)) :foreground "black" :weight bold))
+ "Fringe face for current position."
+ :group 'realgud)
+
+(defface realgud-overlay-arrow3
+ '((((background dark)) :foreground "DimGray")
+ (((background light)) :foreground "DarkGray"))
+ "Fringe face for current position."
+ :group 'realgud)
(defvar realgud-overlay-arrow1 nil
- [elpa] branch externals/realgud created (now 7c0acdc), Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud d026e8b 001/140: Start macro for delayed-, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud dcb87ed 004/140: Merge pull request #177 from realgud/fringe-arrow, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 3d0fcb8 002/140: Match nested prompts in python trepan debuggers, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud ad333ac 006/140: realgud-bp-line-{en/di}sabled-face change..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud b3719fa 005/140: Add autoloads for defalias debugger invocations, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 839954a 016/140: Add more default commands modelled from gdb, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud f884fe7 003/140: Simplify and perhaps generalize,
Rocky Bernstein <=
- [elpa] externals/realgud 7c0d2c4 007/140: fixed unload; added ert-based tests for realgud, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 0647be7 015/140: Spelling typos, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 8beb4f5 009/140: Merge pull request #182 from roymath/master, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 211c01a 014/140: Fix misfeatures in install-from-git.sh..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 3f1b98f 010/140: (realgud:load-features) now features loaded, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 50dc7db 022/140: Info ..., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud c7594f0 032/140: wrong 'let' syntax - caught thanks to the jodonnell's test!, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 37ba671 037/140: Comment better a track test, Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud eeb4c2f 013/140: Bug in last commit., Rocky Bernstein, 2019/05/25
- [elpa] externals/realgud 811e7b9 036/140: < -> <=. See comment before, Rocky Bernstein, 2019/05/25