[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dracula-theme f885696 134/187: Merge branch 'develop'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dracula-theme f885696 134/187: Merge branch 'develop' |
Date: |
Thu, 21 Oct 2021 18:05:09 -0400 (EDT) |
branch: elpa/dracula-theme
commit f8856967ff21947aa9ff2e63d74be619a80d0f59
Merge: d145ed5 5190395
Author: Étienne Deparis <etienne@depar.is>
Commit: Étienne Deparis <etienne@depar.is>
Merge branch 'develop'
---
INSTALL.md | 5 +++
README.md | 29 +++++++++++++
dracula-theme.el | 125 ++++++++++++++++++++++++++++++++++++++++++++++++-------
test-profile.el | 2 +
4 files changed, 146 insertions(+), 15 deletions(-)
diff --git a/INSTALL.md b/INSTALL.md
index 80f0f04..af9904f 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -16,3 +16,8 @@ To load a theme add the following to your init.el
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'dracula t)
+
+#### Configure
+
+Some aspects of this theme are customizable. You can change them by
+doing `M-x customize-group dracula`. Then restart Emacs to apply them.
diff --git a/README.md b/README.md
index ca784bd..b607b0c 100644
--- a/README.md
+++ b/README.md
@@ -6,9 +6,38 @@
## Install
+![Melpa badge](https://melpa.org/packages/dracula-theme-badge.svg)
+
All instructions can be found at
[draculatheme.com/emacs](https://draculatheme.com/emacs).
+## Configure
+
+Some aspects of this theme are customizable. You can change them either
+by doing `M-x customize-group dracula` or setting one or more of the
+following values in your Emacs init file. Note that these variables
+need to be set before `load-theme` is invoked for Dracula.
+
+```
+;; Don't change the font size for some headings and titles (default t)
+(setq dracula-enlarge-headings nil)
+
+;; Adjust font size of titles level 1 (default 1.3)
+(setq dracula-height-title-1 1.25)
+
+;; Adjust font size of titles level 2 (default 1.1)
+(setq dracula-height-title-1 1.15)
+
+;; Adjust font size of titles level 3 (default 1.0)
+(setq dracula-height-title-1 1.05)
+
+;; Adjust font size of document titles (default 1.44)
+(setq dracula-height-doc-title 1.4)
+
+;; Use less pink and bold on the mode-line and minibuffer (default nil)
+(setq dracula-alternate-mode-line-and-minibuffer t)
+```
+
## Test
This repository contains a small script named `start_emacs_test.sh`,
diff --git a/dracula-theme.el b/dracula-theme.el
index b54fe8f..4fdf127 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -17,6 +17,48 @@
(require 'cl-lib)
(deftheme dracula)
+
+;;;; Configuration options:
+
+(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)
+
+(defcustom dracula-alternate-mode-line-and-minibuffer nil
+ "Use less bold and pink in the minibuffer."
+ :type 'boolean
+ :group 'dracula)
+
+
+;;;; Theme definition:
+
;; Assigment form: VARIABLE COLOR [TTY-COLOR]
(let ((colors '(;; Upstream theme color
(dracula-bg "#282a36" "#262626" nil) ; official background
@@ -40,6 +82,7 @@
(other-blue "#0189cc" "#0088cc" "brightblue")))
(faces '(;; default
(cursor :background ,fg3)
+ (completions-first-difference :foreground ,dracula-pink :weight
bold)
(default :background ,dracula-bg :foreground ,dracula-fg)
(default-italic :slant italic)
(ffap :foreground ,fg4)
@@ -53,7 +96,11 @@
(linum :slant italic :foreground ,bg4 :background ,dracula-bg)
(line-number :slant italic :foreground ,bg4 :background
,dracula-bg)
(match :background ,dracula-yellow :foreground ,dracula-bg)
- (minibuffer-prompt :weight bold :foreground ,dracula-pink)
+ (minibuffer-prompt
+ ,@(if dracula-alternate-mode-line-and-minibuffer
+ (list :weight 'normal :foreground dracula-fg)
+ (list :weight 'bold :foreground dracula-pink)))
+ (read-multiple-choice-face :inherit
completions-first-difference)
(region :inherit match :extend t)
(trailing-whitespace :foreground nil :background
,dracula-orange)
(vertical-border :foreground ,bg2)
@@ -266,9 +313,12 @@
;; icomplete
(icompletep-determined :foreground ,dracula-orange)
;; ido
- (ido-first-match :foreground ,dracula-pink :weight bold)
+ (ido-first-match
+ ,@(if dracula-alternate-mode-line-and-minibuffer
+ (list :weight 'normal :foreground dracula-green)
+ (list :weight 'bold :foreground dracula-pink)))
(ido-only-match :foreground ,dracula-orange)
- (ido-subdir :foreground ,dracula-orange)
+ (ido-subdir :foreground ,dracula-yellow)
(ido-virtual :foreground ,dracula-cyan)
(ido-incomplete-regexp :inherit font-lock-warning-face)
(ido-indicator :foreground ,dracula-fg :background
,dracula-pink)
@@ -338,12 +388,47 @@
(magit-log-author :foreground ,fg3)
(magit-process-ng :foreground ,dracula-orange :weight bold)
(magit-process-ok :foreground ,dracula-green :weight bold)
+ ;; markdown
+ (markdown-blockquote-face :foreground ,dracula-orange)
+ (markdown-code-face :foreground ,dracula-orange)
+ (markdown-footnote-face :foreground ,other-blue)
+ (markdown-header-face :weight normal)
+ (markdown-header-face-1
+ :inherit bold :foreground ,dracula-pink
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-1)))
+ (markdown-header-face-2
+ :inherit bold :foreground ,dracula-purple
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-2)))
+ (markdown-header-face-3
+ :foreground ,dracula-green
+ ,@(when dracula-enlarge-headings
+ (list :height dracula-height-title-3)))
+ (markdown-header-face-4 :foreground ,dracula-yellow)
+ (markdown-header-face-5 :foreground ,dracula-cyan)
+ (markdown-header-face-6 :foreground ,dracula-orange)
+ (markdown-header-face-7 :foreground ,other-blue)
+ (markdown-header-face-8 :foreground ,dracula-fg)
+ (markdown-inline-code-face :foreground ,dracula-yellow)
+ (markdown-plain-url-face :inherit link)
+ (markdown-pre-face :foreground ,dracula-orange)
+ (markdown-table-face :foreground ,dracula-purple)
;; message
(message-mml :foreground ,dracula-green :weight normal)
(message-header-xheader :foreground ,dracula-cyan :weight
normal)
;; mode-line
- (mode-line :foreground nil :background ,dracula-current :box
,dracula-current)
- (mode-line-inactive :foreground ,dracula-fg :background ,bg2
:box ,bg2)
+ (mode-line :background ,dracula-current
+ :box ,dracula-current :inverse-video nil
+ ,@(if dracula-alternate-mode-line-and-minibuffer
+ (list :foreground fg3)
+ (list :foreground nil)))
+ (mode-line-inactive
+ :inverse-video nil
+ ,@(if dracula-alternate-mode-line-and-minibuffer
+ (list :foreground dracula-comment :background dracula-bg
+ :box dracula-bg)
+ (list :foreground dracula-fg :background bg2 :box bg2)))
;; mu4e
(mu4e-unread-face :foreground ,dracula-pink :weight normal)
(mu4e-view-url-number-face :foreground ,dracula-purple)
@@ -373,16 +458,25 @@
(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-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)
@@ -401,12 +495,12 @@
(org-upcoming-deadline :foreground ,dracula-yellow)
(org-warning :weight bold :foreground ,dracula-pink)
;; outline
- (outline-1 :foreground ,dracula-green)
+ (outline-1 :foreground ,dracula-pink)
(outline-2 :foreground ,dracula-purple)
- (outline-3 :foreground ,dracula-cyan)
- (outline-4 :foreground ,dracula-orange)
- (outline-5 :foreground ,dracula-orange)
- (outline-6 :foreground ,other-blue)
+ (outline-3 :foreground ,dracula-green)
+ (outline-4 :foreground ,dracula-yellow)
+ (outline-5 :foreground ,dracula-cyan)
+ (outline-6 :foreground ,dracula-orange)
;; powerline
(powerline-evil-base-face :foreground ,bg2)
(powerline-evil-emacs-face :inherit powerline-evil-base-face
:background ,dracula-yellow)
@@ -529,6 +623,7 @@
(t ; should be only
tty-like envs
,(funcall expand-for-kind tty-colors
spec))))))))
+
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
diff --git a/test-profile.el b/test-profile.el
index a5822f9..4339ff6 100644
--- a/test-profile.el
+++ b/test-profile.el
@@ -1,4 +1,6 @@
(advice-add #'x-apply-session-resources :override #'ignore)
+(setq make-backup-files nil
+ visible-bell t)
(load-file "dracula-theme.el")
(load-theme 'dracula t)
- [nongnu] elpa/dracula-theme caa9870 005/187: Release v1.2.0, (continued)
- [nongnu] elpa/dracula-theme caa9870 005/187: Release v1.2.0, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 74094e6 058/187: Merge pull request #31 from TheBaronHimself/master, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme ac1edaa 061/187: Merge pull request #33 from eigengrau/refactor, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 77d8c74 068/187: Merge pull request #43 from nikhilka08/master, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 2f8799e 074/187: Fix copy & paste errors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 107852f 077/187: Merge pull request #50 feat/support-line-numbers, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 320cc8c 087/187: Prefer dark theme for powerline, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme f33cfc4 093/187: Add missing faces for message and mu4e, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 3d0e21b 098/187: Fix issues with yard mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 0c111c1 112/187: Add missing helm face and flyspell faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme f885696 134/187: Merge branch 'develop',
ELPA Syncer <=
- [nongnu] elpa/dracula-theme d2ddacf 138/187: Remove outdated homebrew instructions, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme bb172df 139/187: Fix comment before color listing, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 2e6b7de 143/187: Use unspecified-bg/-fg instead of nil color spec, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 89d1318 146/187: Use inherit highlight for two matching company faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme a6a6620 147/187: Add support for speedbar, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme e5cbc35 149/187: Improve readability of company colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 3b7c290 159/187: Fix ‘message-cited-text-*’ colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 2bf9ec3 158/187: Avoid auto-save-default folder creation in test profile, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 606699a 160/187: Add selectrum-mode dracula colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 18e8aa5 167/187: Remove a blank line, ELPA Syncer, 2021/10/21