[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dracula-theme b5c5ee4 127/187: Introduce variables to enab
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dracula-theme b5c5ee4 127/187: Introduce variables to enable/disable custom font size on some headings |
Date: |
Thu, 21 Oct 2021 18:05:08 -0400 (EDT) |
branch: elpa/dracula-theme
commit b5c5ee49afef16da05b4d1fdccde52cb77aba178
Author: Étienne Deparis <etienne@depar.is>
Commit: Étienne Deparis <etienne@depar.is>
Introduce variables to enable/disable custom font size on some headings
---
dracula-theme.el | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 4 deletions(-)
diff --git a/dracula-theme.el b/dracula-theme.el
index b54fe8f..fbf3c8f 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -17,6 +17,36 @@
(require 'cl-lib)
(deftheme dracula)
+(defgroup dracula nil
+ "Dracula theme options.
+The theme has to be reloaded after changing anything in this group."
+ :group 'faces)
+
+(defcustom dracula-enlarge-headings t
+ "Use different font sizes for some headings and titles."
+ :type 'boolean
+ :group 'dracula)
+
+(defcustom dracula-height-title-1 1.3
+ "Font size 100%."
+ :type 'number
+ :group 'dracula)
+
+(defcustom dracula-height-title-2 1.1
+ "Font size 110%."
+ :type 'number
+ :group 'dracula)
+
+(defcustom dracula-height-title-3 1.0
+ "Font size 130%."
+ :type 'number
+ :group 'dracula)
+
+(defcustom dracula-height-doc-title 1.44
+ "Font size 144%."
+ :type 'number
+ :group 'dracula)
+
;; Assigment form: VARIABLE COLOR [TTY-COLOR]
(let ((colors '(;; Upstream theme color
(dracula-bg "#282a36" "#262626" nil) ; official background
@@ -373,16 +403,24 @@
(org-date :foreground ,dracula-cyan :underline t)
(org-document-info :foreground ,other-blue)
(org-document-info-keyword :foreground ,dracula-comment)
- (org-document-title :weight bold :foreground ,dracula-orange
:height 1.44)
+ (org-document-title :weight bold :foreground ,dracula-orange
+ ,@(when dracula-enlarge-headings
+ (list :height
dracula-height-doc-title)))
(org-done :foreground ,dracula-green)
(org-ellipsis :foreground ,dracula-comment)
(org-footnote :foreground ,other-blue)
(org-formula :foreground ,dracula-pink)
(org-headline-done :foreground ,dracula-comment :weight normal
:strike-through t)
(org-hide :foreground ,dracula-bg :background ,dracula-bg)
- (org-level-1 :inherit bold :foreground ,dracula-pink :height
1.3)
- (org-level-2 :inherit bold :foreground ,dracula-purple :height
1.1)
- (org-level-3 :weight normal :foreground ,dracula-green :height
1.0)
+ (org-level-1 :inherit bold :foreground ,dracula-pink
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-1)))
+ (org-level-2 :inherit bold :foreground ,dracula-purple
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-2)))
+ (org-level-3 :weight normal :foreground ,dracula-green
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-3)))
(org-level-4 :weight normal :foreground ,dracula-yellow)
(org-level-5 :weight normal :foreground ,dracula-cyan)
(org-level-6 :weight normal :foreground ,dracula-orange)
- [nongnu] elpa/dracula-theme a492387 104/187: Improve current commit message display in magit, (continued)
- [nongnu] elpa/dracula-theme a492387 104/187: Improve current commit message display in magit, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 0cfaa35 105/187: Add :extend t when necessary, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme c2b028c 106/187: Update magit colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 05937df 111/187: Try a variant for background color in terminal, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme be7982f 113/187: Better gnus summary faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 75316aa 116/187: Begin to work on terminal colors fix, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 6483f60 119/187: Use a clearer color for comments in 256 colors mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 3a8a6f0 121/187: Add an entry about start_emacs_test.sh in the README, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme d145ed5 125/187: Bump version, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 9f23772 126/187: Little customization for the test-profile.el file, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme b5c5ee4 127/187: Introduce variables to enable/disable custom font size on some headings,
ELPA Syncer <=
- [nongnu] elpa/dracula-theme 583a811 128/187: Add a new variable to enable an alternate modeline/minibuffer experience, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 5190395 133/187: Document new them settings, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme f5918cb 136/187: Add a setting to force 24bit colors on 256 colors terms, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme fb010af 130/187: Use same colors for outline levels than org-mode titles, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 9b87aee 008/187: Emacs: improve ido-support., ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme aaed6dc 013/187: Updates copyright, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 47418dd 019/187: fixed typo affecting company annotation highlights, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme ffb2982 031/187: Add diff-hl-mode faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 5fe7a6e 041/187: Make dired header readable, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme b8ce40c 042/187: Use dark background and light foreground, ELPA Syncer, 2021/10/21