Commit graph

111 commits

Author SHA1 Message Date
Protesilaos Stavrou 4c82e40fb4
Refine the value of bg-hover-secondary in most themes 2025-04-10 13:00:41 +03:00
Protesilaos Stavrou 42e161138b
REMOVE bg-char mappings and use search faces for Avy and related
These are like search matches, anyway, plus we make the code more
simple on our end.
2025-04-07 08:32:47 +03:00
Protesilaos Stavrou 80b8de398f
Revise all "paren" colours to be mappings 2025-04-07 08:23:51 +03:00
Protesilaos Stavrou a162cd09e7
Make the bg-search-replace yellow in the deuteranopia themes
It is easier to notice the current match when there are lots of lazy
matches around it.
2025-04-07 07:53:36 +03:00
Protesilaos Stavrou 3631e70d29
Revise some of the prose mappings in the deuteranopia themes 2025-04-06 16:20:15 +03:00
Protesilaos Stavrou 34b8a5018b
Refine the "bg-char-*" values of the deuteranopia themes 2025-04-06 15:52:26 +03:00
Protesilaos Stavrou 5917d8a490
Use 'magenta-cooler' for the deuteranopia 'date-weekend' mappings 2025-04-06 13:53:22 +03:00
Protesilaos Stavrou bd28200a5b
Reduce the amount of magenta in some parts of the deuteranopia variants 2025-04-06 10:10:37 +03:00
Protesilaos Stavrou 4661315930
Update copyright header years in the theme files 2025-04-06 08:50:52 +03:00
Protesilaos Stavrou 77a0310b5c
Revise colours for deadlines and scheduled tasks
The goal is two-fold:

1. Improve the semantics of relevant faces. This now covers the Org
   agenda. We want pending/urgent tasks to be rendered in a bold font
   and use a vivid colour. Whereas tasks that are not urgent should
   have a subtle colour and a normal weight. Thanks to Adam
   Porter (GitHub @alphapapa) for discussing this with me in issue
   102: <https://github.com/protesilaos/modus-themes/issues/102>.

2. Make the applicable colours be more consistent with the rest of the
   theme. In practice, this means that the colour values are cooler
   overall and the intensity is lower.
2024-10-18 13:14:24 +03:00
Protesilaos Stavrou a9f709e344
Add more semantic palette mappings for code constructs 2024-07-09 09:38:40 +03:00
Protesilaos Stavrou 573db128a0
Implement "user" palette extension (common or per-theme) 2024-06-24 23:11:37 +03:00
Protesilaos Stavrou 1090a80a76
Define more special colour pairs 2024-06-03 18:54:16 +03:00
Protesilaos Stavrou bea2f68833
Make refinements to some graph colours in all light themes 2024-03-22 07:19:13 +02:00
Protesilaos Stavrou d33c545153
Add semantic mappings for inline code backgrounds in addition to foregrounds; plus docs 2024-03-17 08:20:29 +02:00
Protesilaos Stavrou fe281a7651
Use an explicit foreground for the fg-paren-match mapping 2024-03-15 07:09:31 +02:00
Protesilaos Stavrou 114ffb4141
Replace colour names with their hex values 2024-03-13 06:23:57 +02:00
Protesilaos Stavrou 80c5d25ad4
Add semantic color mapping 'fg-paren-match' 2024-03-03 08:17:53 +02:00
Protesilaos Stavrou 8f9255c5e1
Make the prose block delimiters more subtle 2024-03-02 12:01:46 +02:00
Protesilaos Stavrou 3ba09931d0
DEPRECATE modus-themes-org-blocks; use semantic color mappings (and overrides) 2024-03-02 07:40:24 +02:00
Protesilaos Stavrou 9252ca3d4c
Make date-now use fg-main in the deuteranopia themes 2024-02-24 12:07:45 +02:00
Protesilaos Stavrou f4237bdb02
Update development links 2024-01-17 04:54:30 +02:00
Protesilaos Stavrou 2de70fa128
Update copyright years 2024-01-12 08:30:14 +02:00
Protesilaos Stavrou 241bba6b36
Add semantic colour mappings for search 2023-12-14 07:52:11 +02:00
Protesilaos Stavrou 1d7817c05c
Recalibrate all the "nuanced" background colours
There are a tiny bit easier to spot. This means that they should be
visible even on display where colour reproduction is not optimal.
2023-12-12 12:30:57 +02:00
Protesilaos Stavrou 6940c37554
Add semantic color mappings for active arguments/values 2023-12-09 10:37:39 +02:00
Protesilaos Stavrou 186d808464
Recalibrate all nuanced backgrounds
They now are more consistent in terms of their overall intensity.
2023-12-09 09:35:43 +02:00
Protesilaos Stavrou b7b60365fb
Add 'prose-table-formula' semantinc colour mapping; use it in 'org-formula' 2023-11-24 10:14:21 +02:00
Protesilaos Stavrou b23c84e6b4
Expand 'deftheme' with metadata
This is to support new features in Emacs where themes can specify
the set they belong to, as well as whether they are light or dark.
The built-in command is 'theme-choose-variant'.

This is in response to Emacs bug#65468:
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65468>.  Thanks to
Mauro Aranda for bringing this matter to my attention.
2023-08-25 06:37:18 +03:00
Protesilaos Stavrou 7b65e735b8
Add semantic colour mappings for terminal emulators
These are used by ansi-term, vterm, and the like.  The idea is to
empower users to differentiate background and foreground values.  By
convention, terminal emulators use the same value for both background
and foreground, although this is not optimal with high contrast themes
because what works as a foreground does not necessarily look nice as a
background.

The default values of the new mappings retain the prior state, just to
not break existing configurations.

Thanks to Tony Zorman for reporting the bug that provided the impetus
for this change:
<https://lists.sr.ht/~protesilaos/modus-themes/%3C87fs4wforf.fsf%40hyperspace%3E>.
2023-08-10 12:28:08 +03:00
Protesilaos Stavrou 4e331d27de
Revise bg-hover hue in all themes except tritanopia
The previous colour was not sufficiently distinct from bg-completion.
This would make it hard to spot the difference while, for example,
using 'vertico-mode' in tandem with 'vertico-mouse-mode'.

Same principle for the difference between the mouse hover and lazy
isearch highlights (e.g. in Dired or Occur buffers).

Changing the hue here follows the same principle that underpinned the
redesign of the grey backgrounds for version 4 of the project:
depending on hardware capabilities, colour reproduction may not be
optimal, so we need to be more considerate with the choice of colour
values.

The tritanopia themes are not affected by this, as they already use
highly distinct hues.

Thanks to Daniel Mendler[1] for bringing this matter to my attention
and for testing the proposed alternatives.  This was done via a
private channel and the information is shared with permission.

[1] <https://github.com/minad>
2023-07-07 09:52:13 +03:00
Protesilaos Stavrou 7ef62b72fc
modus-operandi-deuteranopia: tweak bg-removed-refine value 2023-06-30 16:15:41 +03:00
Protesilaos Stavrou ae602dda25
Make bg-dim marginally brighter in all modus-operandi variants
After extensive testing and side-by-side comparisons, I have concluded
that the marginal increase in brightness improves the affected
interfaces.

The 'bg-dim' background is used, among others, in the header-line, the
company/corfu popup, and the Org source blocks (when the user option
'modus-themes-org-blocks' is configured appropriately).
2023-06-25 16:27:29 +03:00
Protesilaos Stavrou 99b23d6983
Add support for japanese-holidays
Thanks to Olaf Meeuwissen for bringing this package to my attention
and showing me how traditional Japanese calendars style Saturdays.
This was done in issue 311 on the GitLab mirror:
<https://gitlab.com/protesilaos/modus-themes/-/issues/311>.
2023-06-15 07:22:14 +03:00
Protesilaos Stavrou f9c83600a9
Tweak deuteranopia mail-cite-2 colour mapping
This makes nested quotes in mail/message buffers easier to spot, while
still being consistent with the requirements of those themes.
2023-05-29 08:13:24 +03:00
Protesilaos Stavrou 51eca51ef3
Define "prominent" faces and semantic colour mappings
These are used for Flymake/Flycheck fringe indicators, errors in
isearch, and other such highlights.
2023-05-17 09:24:57 +03:00
Protesilaos Stavrou adbd8e3f83
Add semantic colour mappings for space errors
This extends commit fe02830.
2023-05-17 07:53:00 +03:00
Protesilaos Stavrou 7c418faf58
modus-operandi-deuteranopia: tweak mail-subject colour mapping 2023-05-17 07:43:02 +03:00
Protesilaos Stavrou b503206a62
Introduce semantic colour mappings for marks
These are encountered in various buffers, such as Dired and Trashed.
2023-05-17 07:38:30 +03:00
Protesilaos Stavrou fe028304d4
Make whitespace-mode much more subtle; add semantic colour mappings
The previous style involved the use of a dim grey background.  While
this is good to spot invisible characters quickly, it is bad for users
who want to run 'whitespace-mode' at all times (e.g. for Python which
is space-sensitive).

We thus remove the backgrounds by default but provide the option to
reinstate them via palette overrides (as documented at length in the
manual).  To this end, we have two new semantic colour mappings for
ordinary negative space and its invisible characters.

Thanks to Christian Tietze and Oliver Epper for their feedback in
issue 80 on the GitHub mirror: <https://github.com/protesilaos/modus-themes/issues/80>.
2023-05-17 07:17:45 +03:00
Protesilaos Stavrou 36aeb9d8f8
Refine the deuteranopia yellows for warnings, errors, comments
These slight adjustments make it easier to tell apart distinct
elements that may be positioned close together.
2023-05-17 07:16:04 +03:00
Protesilaos Stavrou ae8808400c
Recalibrate deuteranopia "graph" colours
This is the same idea as with commit 66b8509, except here we need to
make extra arrangements to account for the red-green colour
deficiency.
2023-05-03 08:19:06 +03:00
Protesilaos Stavrou 98690410be
Add semantic colour mapping for "date range" 2023-05-02 14:42:29 +03:00
Protesilaos Stavrou 038295f72c
Make all theme descriptions more informative 2023-03-25 17:37:33 +02:00
Protesilaos Stavrou 28fa9ad0b7
Tweak bg-hl-line for modus-operandi{,-deuteranopia} 2023-02-05 09:23:42 +02:00
Protesilaos Stavrou 21099418eb
Add bg-diff-context palette entry; implement it 2023-02-04 09:09:31 +02:00
Protesilaos Stavrou 1ee4c9576f
RENAME bg-\(added\|changed\|removed\)-intense to bg-\1-fringe
This specifies what the colours are used for.  Otherwise they are
confusing.

This change breaks any colour overrides for those names.  They need to
be renamed to use "-fringe" instead of "-intense".
2023-02-04 08:31:48 +02:00
Protesilaos Stavrou 235435c68f
Refine diff colours for fringes and deuteranopia added
Thanks to Andrew Troppin for showing me some usability issues with the
previous style.  This was done via a private channel and the
information is shared with permission.
2023-02-04 08:27:02 +02:00
Protesilaos Stavrou 4dca14bb16
Tweak "blue-warmer" for the light themes
It needs to be a tiny bit darker.
2023-01-23 06:59:53 +02:00
Protesilaos Stavrou 188f68ba43
Make it possible to have recursive palette mapping
This means that a semantic colour mapping in the palette can have as
its value another mapping.  The function will find the underlying
colour.

This solves a problem reported by Imran Khan on the mailing list:
<https://lists.sr.ht/~protesilaos/modus-themes/%3Cb7ca4702162fd575593f8ded28d9a888.contact%40imrankhan.live%3E>.

I was aware of it from before the release of version 4.0.0 but I was
hesitant to implement recursion prior to getting some feedback on the
new palette overriding feature.

Also thanks to Christian Tietze for participating in that discussion
on the mailing list.
2023-01-04 12:28:06 +02:00