[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-themes b3f39e8d10 1/6: Add warmer and cooler pres
From: |
ELPA Syncer |
Subject: |
[elpa] externals/modus-themes b3f39e8d10 1/6: Add warmer and cooler preset overrides |
Date: |
Sun, 30 Apr 2023 12:06:16 -0400 (EDT) |
branch: externals/modus-themes
commit b3f39e8d10cd18beb33190629821c2980703aa82
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add warmer and cooler preset overrides
---
doc/modus-themes.info | 202 +++++++++++++++++++++++++++-----------------------
doc/modus-themes.org | 19 ++++-
modus-themes.el | 124 ++++++++++++++++++++++++++++++-
3 files changed, 247 insertions(+), 98 deletions(-)
diff --git a/doc/modus-themes.info b/doc/modus-themes.info
index 68d1980d97..cc8cdfe4b2 100644
--- a/doc/modus-themes.info
+++ b/doc/modus-themes.info
@@ -1346,7 +1346,8 @@ File: modus-themes.info, Node: Palette override presets,
Next: Stylistic varia
This section shows how to refashion the themes by opting in to the
stylistic presets we provide. Those presets override the default color
-mappings to amplify or tone down the overall coloration of the them.
+mappings to amplify, tone down, or refashion the overall coloration of
+the themes.
To make almost all aspects of the themes less intense, use this:
@@ -1366,6 +1367,17 @@ colors are desaturated. It makes the themes less
attention-grabbing.
colors accented instead of gray and increases coloration in a number of
places. Colors stand out more and are made easier to spot.
+ For some stylistic variation try the “cooler” and “warmer” presets:
+
+ ;; This:
+ (setq modus-themes-common-palette-overrides
modus-themes-preset-overrides-cooler)
+
+ ;; Or:
+ (setq modus-themes-common-palette-overrides
modus-themes-preset-overrides-warmer)
+
+ [ The “warmer” and “cooler” preset overrides are part of 4.2.0-dev.
+]
+
Note that the user is not limited to those presets. The system of
overrides we provide makes it possible to tweak the value of each
individual named color and to change how values are assigned to semantic
@@ -5937,10 +5949,14 @@ B.2 Variable index
* modus-themes-italic-constructs: Italic constructs. (line 6)
* modus-themes-mixed-fonts: Mixed fonts. (line 6)
* modus-themes-org-blocks: Org mode blocks. (line 6)
+* modus-themes-preset-overrides-cooler: Palette override presets.
+ (line 29)
* modus-themes-preset-overrides-faint: Palette override presets.
- (line 15)
+ (line 16)
* modus-themes-preset-overrides-intense: Palette override presets.
- (line 24)
+ (line 25)
+* modus-themes-preset-overrides-warmer: Palette override presets.
+ (line 29)
* modus-themes-prompts: Command prompts. (line 6)
* modus-themes-variable-pitch-ui: UI typeface. (line 6)
* modus-vivendi-deuteranopia-palette-overrides: Palette overrides.
@@ -6047,96 +6063,96 @@ Node: UI typeface44107
Node: Palette overrides45038
Node: Advanced customization49259
Node: Palette override presets50865
-Node: Stylistic variants using palette overrides53361
-Node: Make the mode line borderless55273
-Node: Make the active mode line colorful56875
-Node: Make the tab bar more or less colorful58820
-Node: Make the fringe invisible or another color61051
-Node: Make links use subtle or no underlines62545
-Node: Make prompts more or less colorful63542
-Node: Make completion matches more or less colorful65206
-Node: Make comments yellow and strings green69106
-Node: Make code syntax use the old alt-syntax style71009
-Node: Make use of alternative styles for code syntax74290
-Node: Make matching parenthesis more or less intense77954
-Node: Make box buttons more or less gray79390
-Node: Make TODO and DONE more or less intense80696
-Node: Make headings more or less colorful82399
-Node: Make Org agenda more or less colorful84799
-Node: Make inline code in prose use alternative styles88259
-Node: Make mail citations and headers more or less colorful90800
-Node: Make the region preserve text colors plus other styles93495
-Node: Make mouse highlights more or less colorful95306
-Node: Make language underlines less colorful96613
-Node: Make line numbers use alternative styles98059
-Node: Make diffs use only a foreground99996
-Node: Make deuteranopia diffs red and blue instead of yellow and blue102767
-Node: Make the themes look like what the maintainer uses105189
-Node: More accurate colors in terminal emulators109887
-Node: Range of color with terminal emulators111179
-Node: Preview theme colors113893
-Node: Per-theme customization settings115738
-Node: Get a single color from the palette117084
-Node: Use theme colors in code with modus-themes-with-colors119288
-Node: Do not extend the region background121621
-Node: Add padding to mode line122419
-Node: Remap face with local value124977
-Node: Font configurations for Org and others127400
-Ref: Font configurations for Org and others-Footnote-1130309
-Node: Configure bold and italic faces130496
-Node: Custom Org todo keyword and priority faces134653
-Node: Custom Org emphasis faces138218
-Node: Update Org block delimiter fontification143041
-Node: Measure color contrast144958
-Node: Load theme depending on time of day147656
-Node: Backdrop for pdf-tools148666
-Node: Toggle themes without reloading them151565
-Node: A theme-agnostic hook for theme loading152841
-Node: Custom hl-todo colors155263
-Node: Add support for solaire-mode156788
-Node: Face coverage159699
-Node: Supported packages160151
-Node: Indirectly covered packages165607
-Node: Notes on individual packages166960
-Node: Note on calendarel weekday and weekend colors168060
-Node: Note on git-gutter in Doom Emacs169208
-Node: Note on php-mode multiline comments171549
-Node: Note on underlines in compilation buffers172302
-Node: Note on inline Latex in Org buffers173139
-Node: Note on dimmerel173749
-Node: Note on display-fill-column-indicator-mode175234
-Node: Note on highlight-parenthesesel176633
-Node: Note on mmm-modeel background colors182611
-Node: Note for prism184911
-Node: Note on company-mode overlay pop-up188079
-Ref: Note on company-mode overlay pop-up-Footnote-1188809
-Ref: Note on company-mode overlay pop-up-Footnote-2188876
-Node: Note on ERC escaped color sequences188931
-Ref: Note on ERC escaped color sequences-Footnote-1190359
-Node: Note on powerline or spaceline190469
-Node: Note on SHR colors190883
-Node: Note on SHR fonts191307
-Node: Note on Ement colors and fonts191946
-Node: Note on pdf-tools link hints193456
-Node: Note on the Notmuch logo195916
-Node: Note on goto-address-mode faces196454
-Node: Frequently Asked Questions197566
-Node: Is the contrast ratio about adjacent colors?198197
-Node: What does it mean to avoid exaggerations?199704
-Node: Why are colors mostly variants of blue magenta cyan?201554
-Node: What is the best setup for legibility?205860
-Node: Are these color schemes?208505
-Node: Port the Modus themes to other platforms?212187
-Node: Contributing214959
-Node: Sources of the themes215356
-Node: Issues you can help with216250
-Node: Patches require copyright assignment to the FSF217641
-Node: Acknowledgements219861
-Node: GNU Free Documentation License223863
-Node: Indices249227
-Node: Function index249406
-Node: Variable index250589
-Node: Concept index252488
+Node: Stylistic variants using palette overrides53739
+Node: Make the mode line borderless55651
+Node: Make the active mode line colorful57253
+Node: Make the tab bar more or less colorful59198
+Node: Make the fringe invisible or another color61429
+Node: Make links use subtle or no underlines62923
+Node: Make prompts more or less colorful63920
+Node: Make completion matches more or less colorful65584
+Node: Make comments yellow and strings green69484
+Node: Make code syntax use the old alt-syntax style71387
+Node: Make use of alternative styles for code syntax74668
+Node: Make matching parenthesis more or less intense78332
+Node: Make box buttons more or less gray79768
+Node: Make TODO and DONE more or less intense81074
+Node: Make headings more or less colorful82777
+Node: Make Org agenda more or less colorful85177
+Node: Make inline code in prose use alternative styles88637
+Node: Make mail citations and headers more or less colorful91178
+Node: Make the region preserve text colors plus other styles93873
+Node: Make mouse highlights more or less colorful95684
+Node: Make language underlines less colorful96991
+Node: Make line numbers use alternative styles98437
+Node: Make diffs use only a foreground100374
+Node: Make deuteranopia diffs red and blue instead of yellow and blue103145
+Node: Make the themes look like what the maintainer uses105567
+Node: More accurate colors in terminal emulators110265
+Node: Range of color with terminal emulators111557
+Node: Preview theme colors114271
+Node: Per-theme customization settings116116
+Node: Get a single color from the palette117462
+Node: Use theme colors in code with modus-themes-with-colors119666
+Node: Do not extend the region background121999
+Node: Add padding to mode line122797
+Node: Remap face with local value125355
+Node: Font configurations for Org and others127778
+Ref: Font configurations for Org and others-Footnote-1130687
+Node: Configure bold and italic faces130874
+Node: Custom Org todo keyword and priority faces135031
+Node: Custom Org emphasis faces138596
+Node: Update Org block delimiter fontification143419
+Node: Measure color contrast145336
+Node: Load theme depending on time of day148034
+Node: Backdrop for pdf-tools149044
+Node: Toggle themes without reloading them151943
+Node: A theme-agnostic hook for theme loading153219
+Node: Custom hl-todo colors155641
+Node: Add support for solaire-mode157166
+Node: Face coverage160077
+Node: Supported packages160529
+Node: Indirectly covered packages165985
+Node: Notes on individual packages167338
+Node: Note on calendarel weekday and weekend colors168438
+Node: Note on git-gutter in Doom Emacs169586
+Node: Note on php-mode multiline comments171927
+Node: Note on underlines in compilation buffers172680
+Node: Note on inline Latex in Org buffers173517
+Node: Note on dimmerel174127
+Node: Note on display-fill-column-indicator-mode175612
+Node: Note on highlight-parenthesesel177011
+Node: Note on mmm-modeel background colors182989
+Node: Note for prism185289
+Node: Note on company-mode overlay pop-up188457
+Ref: Note on company-mode overlay pop-up-Footnote-1189187
+Ref: Note on company-mode overlay pop-up-Footnote-2189254
+Node: Note on ERC escaped color sequences189309
+Ref: Note on ERC escaped color sequences-Footnote-1190737
+Node: Note on powerline or spaceline190847
+Node: Note on SHR colors191261
+Node: Note on SHR fonts191685
+Node: Note on Ement colors and fonts192324
+Node: Note on pdf-tools link hints193834
+Node: Note on the Notmuch logo196294
+Node: Note on goto-address-mode faces196832
+Node: Frequently Asked Questions197944
+Node: Is the contrast ratio about adjacent colors?198575
+Node: What does it mean to avoid exaggerations?200082
+Node: Why are colors mostly variants of blue magenta cyan?201932
+Node: What is the best setup for legibility?206238
+Node: Are these color schemes?208883
+Node: Port the Modus themes to other platforms?212565
+Node: Contributing215337
+Node: Sources of the themes215734
+Node: Issues you can help with216628
+Node: Patches require copyright assignment to the FSF218019
+Node: Acknowledgements220239
+Node: GNU Free Documentation License224241
+Node: Indices249605
+Node: Function index249784
+Node: Variable index250967
+Node: Concept index253146
End Tag Table
diff --git a/doc/modus-themes.org b/doc/modus-themes.org
index 46a1f1ab8c..07d31c6985 100644
--- a/doc/modus-themes.org
+++ b/doc/modus-themes.org
@@ -1177,8 +1177,8 @@ they are labeled as "do-it-yourself" or "DIY".
This section shows how to refashion the themes by opting in to the
stylistic presets we provide. Those presets override the default
-color mappings to amplify or tone down the overall coloration of the
-them.
+color mappings to amplify, tone down, or refashion the overall
+coloration of the themes.
To make almost all aspects of the themes less intense, use this:
@@ -1204,6 +1204,21 @@ The ~modus-themes-preset-overrides-intense~ makes many
background
colors accented instead of gray and increases coloration in a number
of places. Colors stand out more and are made easier to spot.
+#+vindex: modus-themes-preset-overrides-cooler
+#+vindex: modus-themes-preset-overrides-warmer
+For some stylistic variation try the "cooler" and "warmer" presets:
+
+#+begin_src emacs-lisp
+;; This:
+(setq modus-themes-common-palette-overrides
modus-themes-preset-overrides-cooler)
+
+;; Or:
+(setq modus-themes-common-palette-overrides
modus-themes-preset-overrides-warmer)
+#+end_src
+
+[ The "warmer" and "cooler" preset overrides are part of
+ {{{development-version}}}. ]
+
Note that the user is not limited to those presets. The system of
overrides we provide makes it possible to tweak the value of each
individual named color and to change how values are assigned to
diff --git a/modus-themes.el b/modus-themes.el
index 0d843b9d64..73eab98563 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -928,12 +928,17 @@ colorful/intense. Grays are toned down, gray backgrounds
are
removed from some contexts, and almost all accent colors are
desaturated.
+All the preset overrides the themes provide (including this one):
+
+- `modus-themes-preset-overrides-faint'
+- `modus-themes-preset-overrides-intense'
+- `modus-themes-preset-overrides-cooler'
+- `modus-themes-preset-overrides-warmer'
+
To set a preset, assign its symbol without a quote as the value
of the `modus-themes-common-palette-overrides' or as the value of
theme-specific options such as `modus-operandi-palette-overrides'.
-Also see `modus-themes-preset-overrides-intense'.
-
For overriding named colors and/or semantic color mappings read
Info node `(modus-themes) Option for palette overrides'.")
@@ -1016,11 +1021,124 @@ This changes many parts of the theme to make them look
more
colorful/intense. Many background colors are accented and
coloration is increased to pop out more.
+All the preset overrides the themes provide (including this one):
+
+- `modus-themes-preset-overrides-faint'
+- `modus-themes-preset-overrides-intense'
+- `modus-themes-preset-overrides-cooler'
+- `modus-themes-preset-overrides-warmer'
+
To set a preset, assign its symbol without a quote as the value
of the `modus-themes-common-palette-overrides' or as the value of
theme-specific options such as `modus-operandi-palette-overrides'.
-Also see `modus-themes-preset-overrides-faint'.
+For overriding named colors and/or semantic color mappings read
+Info node `(modus-themes) Option for palette overrides'.")
+
+(defvar modus-themes-preset-overrides-cooler
+ '((fg-prompt blue-cooler)
+
+ (builtin magenta-faint)
+ (constant blue-cooler)
+ (fnname cyan-cooler)
+ (keyword magenta-cooler)
+ (preprocessor blue)
+ (string blue-warmer)
+ (type green-cooler)
+ (variable cyan)
+ (rx-construct blue-cooler)
+ (rx-backslash red)
+
+ (name blue-warmer)
+ (identifier magenta-faint)
+
+ (date-deadline magenta-cooler)
+ (date-scheduled yellow-cooler)
+ (date-weekday blue-faint)
+ (date-weekend red-faint)
+
+ (mail-cite-0 blue-faint)
+ (mail-cite-1 cyan-cooler)
+ (mail-cite-2 magenta-faint)
+ (mail-cite-3 yellow-cooler)
+ (mail-part cyan)
+ (mail-recipient blue-warmer)
+ (mail-subject magenta-cooler)
+ (mail-other blue)
+
+ (prose-tag fg-dim)
+ (prose-verbatim blue-cooler))
+ "Preset of palette overrides with cooler colors.
+
+This changes parts of the palette to use more blue and
+blue-tinted colors.
+
+All the preset overrides the themes provide (including this one):
+
+- `modus-themes-preset-overrides-faint'
+- `modus-themes-preset-overrides-intense'
+- `modus-themes-preset-overrides-cooler'
+- `modus-themes-preset-overrides-warmer'
+
+To set a preset, assign its symbol without a quote as the value
+of the `modus-themes-common-palette-overrides' or as the value of
+theme-specific options such as `modus-operandi-palette-overrides'.
+
+For overriding named colors and/or semantic color mappings read
+Info node `(modus-themes) Option for palette overrides'.")
+
+(defvar modus-themes-preset-overrides-warmer
+ '((fg-prompt magenta-warmer)
+
+ (builtin magenta)
+ (constant blue-warmer)
+ (fnname magenta-cooler)
+ (keyword magenta-warmer)
+ (preprocessor red-cooler)
+ (string olive)
+ (type cyan-cooler)
+ (variable cyan)
+ (rx-construct blue-cooler)
+ (rx-backslash red-warmer)
+
+ (name blue-warmer)
+ (identifier magenta)
+ (keybind magenta-warmer)
+
+ (accent-0 magenta-warmer)
+ (accent-1 cyan)
+ (accent-2 blue-warmer)
+ (accent-3 red-cooler)
+
+ (date-common cyan-cooler)
+ (date-holiday magenta-warmer)
+
+ (mail-cite-0 magenta-faint)
+ (mail-cite-1 cyan-cooler)
+ (mail-cite-2 green-warmer)
+ (mail-cite-3 red-faint)
+ (mail-part cyan)
+ (mail-recipient magenta)
+ (mail-subject blue-warmer)
+ (mail-other magenta-warmer)
+
+ (prose-macro red-cooler)
+ (prose-tag fg-dim))
+ "Preset of palette overrides with warmer colors.
+
+This changes many parts of the theme to use warmer colors,
+including green and yellow.
+
+All the preset overrides the themes provide (including this one):
+
+- `modus-themes-preset-overrides-faint'
+- `modus-themes-preset-overrides-intense'
+- `modus-themes-preset-overrides-cooler'
+- `modus-themes-preset-overrides-warmer'
+
+To set a preset, assign its symbol without a quote as the value
+of the `modus-themes-common-palette-overrides' or as the value of
+theme-specific options such as `modus-operandi-palette-overrides'.
For overriding named colors and/or semantic color mappings read
Info node `(modus-themes) Option for palette overrides'.")
- [elpa] externals/modus-themes updated (cfc8c4eef0 -> 716a275255), ELPA Syncer, 2023/04/30
- [elpa] externals/modus-themes b3f39e8d10 1/6: Add warmer and cooler preset overrides,
ELPA Syncer <=
- [elpa] externals/modus-themes 716a275255 6/6: Add support for Emacs 29 'proced' faces, ELPA Syncer, 2023/04/30
- [elpa] externals/modus-themes ee32b1a0d4 4/6: Add rst-mode heading faces, ELPA Syncer, 2023/04/30
- [elpa] externals/modus-themes aa995a97f7 5/6: Note that rst-mode is now supported (per ee32b1a), ELPA Syncer, 2023/04/30
- [elpa] externals/modus-themes c3ed8a6e2f 2/6: Update documentation that moody is not supported, ELPA Syncer, 2023/04/30
- [elpa] externals/modus-themes 2431375725 3/6: Add support for new flymake "echo" faces, ELPA Syncer, 2023/04/30