[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ff1dfe9 078/215: Change fringe arrow background colors bas
From: |
Rocky Bernstein |
Subject: |
[elpa] master ff1dfe9 078/215: Change fringe arrow background colors based on dark or light background. |
Date: |
Sat, 30 Jul 2016 14:48:55 +0000 (UTC) |
branch: master
commit ff1dfe994b212780397eacae06da7dd047e08451
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Change fringe arrow background colors based on dark or light background.
---
realgud/common/buffer/backtrace.el | 2 +-
realgud/common/fringe.el | 65 +++++++++++++++++++++++++-----------
2 files changed, 46 insertions(+), 21 deletions(-)
diff --git a/realgud/common/buffer/backtrace.el
b/realgud/common/buffer/backtrace.el
index ff098c4..9a4863b 100644
--- a/realgud/common/buffer/backtrace.el
+++ b/realgud/common/buffer/backtrace.el
@@ -23,7 +23,7 @@
(require 'load-relative)
(eval-when-compile (require 'cl-lib))
(require-relative-list
- '("../key" "helper" "follow" "loc") "realgud-")
+ '("../key" "helper" "../follow" "../loc") "realgud-")
(require-relative-list
'("command") "realgud-buffer-")
diff --git a/realgud/common/fringe.el b/realgud/common/fringe.el
index 7256ed5..da6ade0 100644
--- a/realgud/common/fringe.el
+++ b/realgud/common/fringe.el
@@ -16,26 +16,51 @@
;; FIXME: Figure out how to do this as a macro.
-(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)
+(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)))
(defvar realgud-overlay-arrow1 nil
- [elpa] master 6a87f3c 097/215: ipdb: add tab completion to track-mode, (continued)
- [elpa] master 6a87f3c 097/215: ipdb: add tab completion to track-mode, Rocky Bernstein, 2016/07/30
- [elpa] master cfe2be3 107/215: Reinstate ipdb support, Rocky Bernstein, 2016/07/30
- [elpa] master d15f90a 132/215: Prepare for refactoring of realgud-cmd, Rocky Bernstein, 2016/07/30
- [elpa] master a1deb86 145/215: Show default buffer when automatically attaching, Rocky Bernstein, 2016/07/30
- [elpa] master 949ed38 110/215: fake realgud:run-process better, Rocky Bernstein, 2016/07/30
- [elpa] master b346e13 111/215: Improve completion and default value in realgud-query-cmdline, Rocky Bernstein, 2016/07/30
- [elpa] master 74ee75c 101/215: Remove stray character, Rocky Bernstein, 2016/07/30
- [elpa] master ba97f2b 126/215: Merge pull request #93 from cpitclaudel/small-fixes-in-cmds, Rocky Bernstein, 2016/07/30
- [elpa] master 0f6b10f 148/215: Add python3 shebang to fringe-utils.py, Rocky Bernstein, 2016/07/30
- [elpa] master 72c83d7 114/215: Improve command mappings in pdb-command-hash, Rocky Bernstein, 2016/07/30
- [elpa] master ff1dfe9 078/215: Change fringe arrow background colors based on dark or light background.,
Rocky Bernstein <=
- [elpa] master 45fb7cc 085/215: Add ability to have alternate group location file and line numbers., Rocky Bernstein, 2016/07/30
- [elpa] master baab01d 061/215: Merge branch 'master' of github.com:rocky/emacs-dbgr, Rocky Bernstein, 2016/07/30
- [elpa] master d437c3d 113/215: Merge pull request #81 from rocky/ipdb-complete, Rocky Bernstein, 2016/07/30
- [elpa] master 5155528 105/215: Bump version, Rocky Bernstein, 2016/07/30
- [elpa] master 76cb0d4 108/215: Fix wrong setq call, Rocky Bernstein, 2016/07/30
- [elpa] master 1716c8a 109/215: Towards fixing up tab completion in ipdb., Rocky Bernstein, 2016/07/30
- [elpa] master e04eeb2 117/215: Improve eval: run on region if active, and fall back to prompting, Rocky Bernstein, 2016/07/30
- [elpa] master fd00428 118/215: Merge pull request #86 from cpitclaudel/83-improve-e-binding, Rocky Bernstein, 2016/07/30
- [elpa] master b275bd2 119/215: Improve behavior of delete, enable, and disable, Rocky Bernstein, 2016/07/30
- [elpa] master ca33520 120/215: Add a prefix arg to "continue" command, Rocky Bernstein, 2016/07/30