branch: elpa/inkpot-theme
commit d88fdc531896144da9d891033f72f40685518408
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Add inkpot-theme-use-black-background option
---
changelog.rst | 2 ++
inkpot-theme.el | 12 ++++++++++++
readme.rst | 4 +++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/changelog.rst b/changelog.rst
index 2457d6dfc9..a166c2e563 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -3,6 +3,8 @@
Change Log
##########
+- 2023-06-10
+ - Add ``inkpot-theme-use-black-background`` to use a black background.
- 2023-04-18
- Define colors for ``eglot`` inlay hints.
diff --git a/inkpot-theme.el b/inkpot-theme.el
index 003f906992..bafca09944 100644
--- a/inkpot-theme.el
+++ b/inkpot-theme.el
@@ -25,6 +25,10 @@
"Show outline around mode-line and header."
:type 'boolean)
+(defcustom inkpot-theme-use-black-background nil
+ "Use a black background."
+ :type 'boolean)
+
;; Colors from original Vim theme (for reference)
;; as of https://github.com/ciaranm/inkpot (Feb 11, 2013)
@@ -112,6 +116,14 @@
(t
nil))))
+ (when inkpot-theme-use-black-background
+ (setq ip-black "#0E0E0E")
+ (setq ip-slate-dark "#000000")
+ (setq ip-slate-dark+15.7 "#181818")
+ (setq ip-slate-dark+7.9 "#141414")
+ (setq ip-slate-dark+7.6 "#101010")
+ (setq ip-grey+25 "#1E1E1E"))
+
(custom-theme-set-faces
;; Theme name.
'inkpot
diff --git a/readme.rst b/readme.rst
index 5f20defe48..29b47debd6 100644
--- a/readme.rst
+++ b/readme.rst
@@ -27,8 +27,10 @@ This theme is quite close to
Customization
=============
-``inkpot-theme-use-box`` (``t``)
+``inkpot-theme-use-box``: ``t``
When nil, don't use box outlines for the mode-line and header.
+``inkpot-theme-use-black-background``: ``nil``
+ When t, use a black background.
Notes