Skip to content

Commit

Permalink
Merge pull request #177 from realgud/fringe-arrow
Browse files Browse the repository at this point in the history
Simplify and perhaps generalize
  • Loading branch information
rocky committed Jun 29, 2017
2 parents 3d0fcb8 + f884fe7 commit dcb87ed
Showing 1 changed file with 21 additions and 45 deletions.
66 changes: 21 additions & 45 deletions realgud/common/fringe.el
Expand Up @@ -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
Expand Down

0 comments on commit dcb87ed

Please sign in to comment.