Protesilaos
4b286c2b61
Change all HEX-COLOR parameters to COLOR in light of commit 488e913
2026-05-01 17:37:26 +03:00
Protesilaos
488e913b1e
Make helper function accept named colours as well as hex RGB
...
Otherwise we have a regression. Something like "gray50" is a valid
colour value (when list-colors-display returns it, anyway).
2026-05-01 17:35:30 +03:00
Protesilaos
f71db69bad
Use "Protesilaos" instead of "Protesilaos Stavrou"
...
As I announced here: <https://protesilaos.com/news/2026-04-21-omitting-the-surname/ >.
2026-04-24 13:27:23 +03:00
Protesilaos Stavrou
7c2ce1ff0d
Add support for the trust-manager package
2026-04-18 16:13:16 +03:00
Protesilaos Stavrou
a2c40a9f92
Add support for tab-line-active and tab-line-inactive faces (Emacs 31)
2026-04-17 12:42:03 +03:00
Protesilaos Stavrou
657fd6f92d
Make modus-themes-retrieve-palette-value public
2026-04-13 15:33:08 +03:00
Elias Gabriel Perez
51c89ec604
* modus-themes.el (modus-themes-faces): Fix regression in mc/cursor-bar-face
2026-04-10 13:02:56 -06:00
Protesilaos Stavrou
0217c0dde5
Refine modus-themes--color-eight-to-six-digits
...
Thanks to Stefan Monnier for pointing this in a message to the
emacs-devel mailing list: <https://lists.gnu.org/archive/html/emacs-devel/2026-04/msg00358.html >.
2026-04-10 18:57:57 +03:00
Protesilaos Stavrou
df74b73a60
Write a test for modus-themes--color-eight-to-six-digits and use its name instead of the older symbol
2026-04-10 14:58:24 +03:00
Protesilaos Stavrou
282dbd66b5
Improve modus-themes-adjust-value and write a test for it
2026-04-10 14:58:06 +03:00
Protesilaos Stavrou
b31966fe65
Change name of ancillary function to be more precise and refine its implementation
2026-04-10 14:57:36 +03:00
Protesilaos Stavrou
c63be80d3b
Refine modus-themes-contrast and write a test for it
2026-04-10 14:48:51 +03:00
Protesilaos Stavrou
953ec93841
Refine modus-themes-wcag-formula and write a test for it
2026-04-10 14:48:14 +03:00
Protesilaos Stavrou
a134889772
Add missing parenthesis to a doc string
2026-04-10 14:16:29 +03:00
Protesilaos Stavrou
2e19f038c3
Update the modus-themes--hex-to-rgb doc string
2026-04-10 14:03:51 +03:00
Protesilaos Stavrou
937ee8047b
Make stylistic change to modus-themes--hex-to-rgb
2026-04-10 12:45:32 +03:00
Protesilaos Stavrou
7d234fd65f
Make blink-matching-paren-offscreen the same as show-paren-match
...
Thanks to Troy Brown for suggesting this change in issue 209:
<https://github.com/protesilaos/modus-themes/issues/209 >.
2026-04-05 21:15:09 +03:00
Protesilaos Stavrou
84528d1f3e
Refine the typst-ts-script-char-face to use bold conditionally
...
This is about the user option modus-themes-bold-constructs.
2026-04-05 15:53:21 +03:00
Protesilaos Stavrou
5e69da089a
Make font-latex-script-char-face look like escape-glyph
2026-04-05 15:52:37 +03:00
Protesilaos Stavrou
bbb43a6f62
Add initial support for typst-ts-mode
...
Thanks to Pranshu Sharma for making this suggestion in issue 208:
<https://github.com/protesilaos/modus-themes/issues/208 >.
2026-04-05 15:52:05 +03:00
Protesilaos Stavrou
e0f42f2740
Extend support for my lin package faces
2026-03-25 10:09:07 +02:00
Protesilaos Stavrou
83501bcd50
Correct the modus-themes-toggle behaviour to match its doc string
...
I want to prompt for a theme only if modus-themes-to-toggle is not
right.
Thanks Morten Kjeldgaard for bringing this matter to my attention in
issue 44 in the ef-themes repository (those are built on top of the
modus-themes): <https://github.com/protesilaos/ef-themes/issues/44 >.
2026-03-20 08:15:02 +02:00
Protesilaos Stavrou
5e1621d638
Make the breadcrumb faces inherit from their base face
...
This way users can apply, say, a font height that carries over to all
the faces.
Thanks to baconabo for making this suggestion in issue 204:
<https://github.com/protesilaos/modus-themes/issues/204 >.
2026-03-16 20:17:51 +02:00
Protesilaos Stavrou
c865abc82d
Remove blank line
2026-03-15 21:48:02 +02:00
Protesilaos Stavrou
30cbfe27b5
Consolidate some colours in the modus-themes-common-palette-mappings
2026-03-15 21:47:09 +02:00
Protesilaos Stavrou
6beea7125e
Define new bg-popup named colour
...
This gives users and derivative themes the option to pick a suitable
value for those interfaces.
Thanks to aikrahguzar for making this suggestion in issue 70 of my
ef-themes repository (the ef-themes are built on top of the
modus-themes): <https://github.com/protesilaos/ef-themes/issues/70 >.
2026-03-15 21:28:05 +02:00
Protesilaos Stavrou
100533ab0f
Remove background value from company-preview face
...
This makes it consistent with the style I am applying to the built-in
completion-preview-mode.
2026-03-15 21:28:02 +02:00
Protesilaos Stavrou
a4264088b7
Make modus-themes-adjust-value return 6-digit colour
2026-03-14 10:57:29 +02:00
Protesilaos Stavrou
ed36e34132
Bring back the modus-themes-adjust-value
...
Derivative themes may need it.
2026-03-08 21:43:54 +02:00
Protesilaos Stavrou
cb20bbe83f
Remove needless comment
2026-03-08 21:30:46 +02:00
Protesilaos Stavrou
9d0226961d
Include the featurep check in modus-themes-theme
...
This is because our check involves this:
(let ((theme-exists-p (get name 'theme-feature)) ...) ...)
Thanks to Daniel Colascione for informing me about this in issue 201:
<https://github.com/protesilaos/modus-themes/issues/201 >.
2026-03-01 12:07:59 +02:00
Protesilaos Stavrou
b45b0d8a7c
Only disable 'color-schemes' with modus-themes-disable-other-themes
...
This is because Emacs 31 comes with a "newcomer" theme that we do not
want to disable by mistake.
2026-02-22 08:43:39 +02:00
Protesilaos Stavrou
ecd696daf8
Add support for my institution-calendar faces
2026-02-20 08:58:50 +02:00
Protesilaos Stavrou
127ed57f0e
Remove magit face that does not exist anymore
2026-02-17 09:26:40 +02:00
Mike Olson
c475454d87
Use color-values-from-color-spec instead of color-name-to-rgb
...
Replace `color-name-to-rgb' with a new internal helper
`modus-themes--hex-to-rgb' that uses `color-values-from-color-spec'
(a C built-in since Emacs 28.1) to parse hex RGB strings without
any display dependency.
This fixes a crash when loading a Modus theme during early-init.el
on GUI Emacs (e.g. macOS Homebrew emacs-plus), where
`color-name-to-rgb' fails because `color-values' returns nil before
the display is ready.
The fix applies to all three direct call sites:
- `modus-themes-wcag-formula' (the critical one, called during
theme loading)
- `modus-themes-generate-color-blend'
- `modus-themes-color-warm-p'
Fixes #198 .
2026-02-16 15:04:35 -05:00
Protesilaos Stavrou
ea135519d3
Revert to using a readable foreground for the org-habit faces
...
This relies on our own functions, which should be available even if
the theme is loaded via the early-init.el.
Thanks to Jacod "Jake" Gordon for reminding me to fix this and for
testing my prototype. It was done in issue 197:
<https://github.com/protesilaos/modus-themes/issues/197 >.
2026-01-31 10:00:35 +02:00
Protesilaos Stavrou
27456c3121
Change modus-themes--list-colors-tabulated to use our own function for a readable foreground (commit 2c225b6)
2026-01-31 10:00:07 +02:00
Protesilaos Stavrou
2c225b634e
Define function to get readable foreground, based on our own "dark-p" (per commit 4ecefd9)
2026-01-31 09:59:34 +02:00
Protesilaos Stavrou
4ecefd924f
Implement our own "dark-p" which relies on our WCAG formula test
...
This way I can more easily reason about the return value.
2026-01-31 09:58:21 +02:00
Protesilaos Stavrou
4b4fd65336
Change the parameter name in a couple of places to suggest it is a hexadecimal RGB colour
2026-01-31 09:56:45 +02:00
Protesilaos Stavrou
39682cd87c
Make stylistic changes to the WCAG formula functions
2026-01-31 09:56:13 +02:00
Protesilaos Stavrou
ba747a245f
Change the scroll-bar background to ensure better visibility
2026-01-25 08:59:38 +02:00
Protesilaos Stavrou
0f6ce4f8bb
Remove the box and background from the completion group titles and make them optionally italic
2026-01-24 10:18:37 +02:00
Protesilaos Stavrou
c57f158886
Only use bold in org-list-dt
...
The reason is that the foreground overrides other foregrounds, such as
for ~code~ elements.
2026-01-23 09:32:51 +02:00
Protesilaos Stavrou
55be658ddf
Use a background and box for the completion groups
2026-01-21 08:55:00 +02:00
Protesilaos Stavrou
8a45a1393a
Tweak the format of the modus-themes-with-colors error message
2026-01-13 06:31:26 +02:00
Protesilaos Stavrou
4d9a19513d
Update the copyright years
2026-01-11 12:45:54 +02:00
Protesilaos Stavrou
192b2f612e
Go back to using a "success" colour for git commit summary lines
...
This is because it is the only colour that is guaranteed to contrast
with the warning and error colours we use for long lines and non-empty
second line.
2026-01-10 07:57:30 +02:00
Protesilaos Stavrou
0b6956a783
Be more strict about how to check for loaded theme
...
This is because typically themes have a 'provide-theme' in their file,
which we do not have in our theme files. Not doing a 'provide-theme'
at all times can break user configurations.
Thanks to Daniel Colascione for pointing this out in issue 195:
<https://github.com/protesilaos/modus-themes/issues/195 >.
2026-01-10 07:51:08 +02:00
Protesilaos Stavrou
073e1d2488
Remove outdated comment
2026-01-09 07:11:35 +02:00