summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorVincent Bernat <bernat@luffy.cx>2014-03-23 02:09:49 +0100
committerVincent Bernat <bernat@luffy.cx>2014-03-23 02:09:49 +0100
commitcdeed89dbd87ee98138177741a9526390359b36c (patch)
tree2da3e3705bfd0bb4a54a64b6dbf5fd22126587cb /lisp
parent8cc9521a9aa8f1c677dfb17fff20ae403f499e55 (diff)
downloadfork-ledger-cdeed89dbd87ee98138177741a9526390359b36c.tar.gz
fork-ledger-cdeed89dbd87ee98138177741a9526390359b36c.tar.bz2
fork-ledger-cdeed89dbd87ee98138177741a9526390359b36c.zip
lisp: use more legible colors on dark backgrounds
On dark backgrounds, the color for the current transaction makes the text quite unreadable. Let's use a darker color in this case. Maybe some other colors could be adjusted.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ledger-fonts.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ledger-fonts.el b/lisp/ledger-fonts.el
index 41c7a4aa..70c05428 100644
--- a/lisp/ledger-fonts.el
+++ b/lisp/ledger-fonts.el
@@ -40,7 +40,8 @@
:group 'ledger-faces)
(defface ledger-font-xact-highlight-face
- `((t :background "#eee8d5"))
+ `((((background dark)) :background "#1a1a1a" )
+ (t :background "#eee8d5"))
"Default face for transaction under point"
:group 'ledger-faces)
@@ -80,7 +81,8 @@
:group 'ledger-faces)
(defface ledger-occur-xact-face
- `((t :background "#eee8d5" ))
+ `((((background dark)) :background "#1a1a1a" )
+ (t :background "#eee8d5" ))
"Default face for Ledger occur mode shown transactions"
:group 'ledger-faces)