Commit graph

6711 commits

Author SHA1 Message Date
Daniel Eklöf
b07ce56321
config: gamma-correct-blending: disable by default 2025-05-01 08:09:08 +02:00
Daniel Eklöf
1dc8354534
readme: add liberapay donation button 2025-04-30 11:46:20 +02:00
Daniel Eklöf
99954534e1
Merge branch 'releases/1.22' 2025-04-30 10:30:57 +02:00
Daniel Eklöf
513e91c33a
meson: bump version to 1.22.2 2025-04-30 10:23:51 +02:00
Daniel Eklöf
fc293bad5e
changelog: prepare 1.22.2 2025-04-30 10:23:20 +02:00
Daniel Eklöf
172f67a8df
doc: foot.ini: gamma-correct: tweak wording of 8- vs. 10-bit surfaces 2025-04-30 10:21:00 +02:00
Daniel Eklöf
ce424e0990
scripts: srgb: use 2.2 gamma TF instead of piece-wise sRGB TF 2025-04-30 10:20:52 +02:00
Daniel Eklöf
1ea20b1b70
changelog: add new 'unreleased' section 2025-04-30 10:19:47 +02:00
Daniel Eklöf
eb79a27900
readme: donations: add liberapay 2025-04-30 09:28:35 +02:00
Daniel Eklöf
d7b48d3924
doc: foot.ini: gamma-correct: tweak wording of 8- vs. 10-bit surfaces 2025-04-28 12:32:40 +02:00
Daniel Eklöf
97910a5cba
scripts: srgb: use 2.2 gamma TF instead of piece-wise sRGB TF 2025-04-28 11:55:43 +02:00
Daniel Eklöf
d20fbc6807
config: parse_color_theme(): make NOINLINE 2025-04-27 07:46:09 +02:00
Daniel Eklöf
4d70bb7b42
changelog: mention the new combined dark/light theme files 2025-04-26 18:15:31 +02:00
Daniel Eklöf
8273514d3c
themes: paper-color: add dark/light combined theme file 2025-04-26 15:26:36 +02:00
Daniel Eklöf
d3e45791bd
themes: nvim: add dark/light combined theme file 2025-04-26 15:26:31 +02:00
Daniel Eklöf
6a1c3b89c2
themes: gruvbox: add dark/light combined theme file 2025-04-26 15:26:22 +02:00
Daniel Eklöf
1dc14a3001
themes: selenized: add dark/light combined theme file 2025-04-26 15:26:14 +02:00
Daniel Eklöf
537092e643
themes: solarized: add dark/light combined theme file
These themes uses the 'colors' section to define the dark variant, and
'colors2' to define the light variant.
2025-04-26 15:26:05 +02:00
Daniel Eklöf
bc5b716668
config: add initial-color-theme=1|2
This option selects which color theme to use by default. I.e. at
startup, and after a reset.

This is useful with combined theme files, where a single file defines
e.g. both a dark and light version of the theme.
2025-04-26 14:43:42 +02:00
Daniel Eklöf
10e7f29149
csi: implement private mode 2031 (dark/light mode detection)
* Recognize 'CSI ? 996 n', and respond with
  - 'CSI ? 997 ; 1 n' if the primary theme is active
  - 'CSI ? 997 ; 2 n' if the alternative theme is actice
* Implement private mode 2031, where changing the color
  theme (currently only possible via key bindings) causes the terminal
  to send the same CSI sequences as above.

In this context, foot's primary theme is considered dark, and the
alternative theme light (since the default theme is dark).

Closes #2025
2025-04-26 14:23:34 +02:00
Daniel Eklöf
6bc91b5e28
key-bindings: add bindings to switch between color themes
* color-theme-switch-1: select the primary color theme
* color-theme-switch-2: select the alternative color theme
* color-theme-toggle: toggle between the primary and alternative color themes
2025-04-26 14:20:58 +02:00
Daniel Eklöf
1423babc35
config: add new section 'colors2'
This section defines an alternative color theme. The keys are the same
as in the 'colors' section, as are the default values.

Values are *not* inherited from 'colors'. That is, if you set a value
in 'colors', but not in 'colors2', it is *not* inherited by 'colors2'.
2025-04-26 14:20:58 +02:00
Daniel Eklöf
01c43f1644
config: refactor: break out color theme parsing to a separate function 2025-04-26 14:20:57 +02:00
Daniel Eklöf
b24a9a59b9
tests: config: colors: verify loaded color is correct 2025-04-26 14:20:57 +02:00
Daniel Eklöf
5406ae3355
themes: cursor.color -> colors.cursor 2025-04-26 14:20:57 +02:00
Daniel Eklöf
624c383a1f
config: move cursor.color to colors.cursor 2025-04-26 10:46:39 +02:00
Daniel Eklöf
a7276d9dff
config: refactor: break out 'colors' to a color_theme struct 2025-04-26 10:46:39 +02:00
Daniel Eklöf
79f6b4b1de
changelog: add new 'unreleased' section 2025-04-26 10:41:14 +02:00
Daniel Eklöf
fea9f5579f
Merge branch 'releases/1.22' 2025-04-26 10:40:38 +02:00
Daniel Eklöf
c85d5d5096
meson: bump version to 1.22.1 2025-04-26 10:36:23 +02:00
Daniel Eklöf
89bfac00e7
changelog: prepare for 1.22.1 2025-04-26 10:36:13 +02:00
Daniel Eklöf
9d0b048cf9
Merge branch 'master' into releases/1.22 2025-04-26 10:34:56 +02:00
Daniel Eklöf
0020ef12b4
changelog: add missing bug ref 2025-04-26 10:31:09 +02:00
Daniel Eklöf
cb1b7ba0c5
render: regression: alpha applied to inversed text/selections
Introduced by 5f83278afd

Closes #2073
2025-04-25 19:20:36 +02:00
Daniel Eklöf
d43326d2b5
changelog: zero-width grapheme breaking codepoints causing fallback font to be used 2025-04-24 18:40:22 +02:00
Daniel Eklöf
1fec0cf5ea
Revert "term: append zero-width grapheme breaking characters to previous cell"
This reverts commit 76503fb86a.
2025-04-24 18:22:37 +02:00
Daniel Eklöf
1b15cc5f3d
Revert "term: ignore LTR+RTL markers (U+200E + U+200F)"
This reverts commit 70b324b24c.
2025-04-24 18:20:18 +02:00
Daniel Eklöf
70b324b24c
term: ignore LTR+RTL markers (U+200E + U+200F)
Foot doesn't implement RTL, and explicit LTR markers is neither
needed, nor used in anyway. In fact, they cause issues with font
lookup, as fcft often fails to find the marker codepoint in the
primary font, causing a fallback font to be used instead.

Closes #2049
2025-04-24 08:23:56 +02:00
valoq
b2dfd339e4
Add alacritty theme
This adds the default colors from alacritty  as an additional theme
2025-04-23 12:08:37 +02:00
Jan Palus
bc8d6d1ff3
build: fix race when generating emoji-variation-sequences.h
d3f692990e moved emoji-variation-sequences.h header inclusion from
vt.c to terminal.c. these two files are part of different libraries
hence target for generating emoji-variation-sequences.h needs to be
moved too.
2025-04-23 11:44:41 +02:00
Daniel Eklöf
8bded8ce8c
doc: foot.ini: add newish Unicode range to 'box-drawings-uses-font-glyphs' 2025-04-19 17:10:52 +02:00
Daniel Eklöf
ef4a680ae8
input: reset modifiers in keyboard_leave()
Closes #2034
2025-04-19 13:36:13 +02:00
Daniel Eklöf
cb2a64c585
csi: don't allow client app to enable grapheme-shaping when disabled at compile-time
Closes #2039
2025-04-19 13:35:06 +02:00
Daniel Eklöf
1a2e5f4932
render: fix colors.alpha-mode=matching
Before this patch, it only matched RGB color sources. It did not match
the default bg color, or indexed colors. That is, e.g. CSI 43m didn't
apply alpha, even if the color3 matched the default background color.
2025-04-19 13:33:23 +02:00
Daniel Eklöf
1bf9156628
doc: foot.ini: spaces -> tab (for indentation) 2025-04-19 11:59:50 +02:00
Daniel Eklöf
179e14e0a1
doc: foot.ini: gamma-correct-blending: mention colors being off 2025-04-19 09:16:28 +02:00
Daniel Eklöf
155c7c96b7
doc: foot.ini: key-bindings: untranslated symbols are tried before translated 2025-04-18 14:43:36 +02:00
Daniel Eklöf
30aafce82d
foot.ini: move alpha-mode to colors section
This is where the config parser expects it
2025-04-18 13:59:43 +02:00
Daniel Eklöf
6e5a602f67
changelog: add new 'unreleased' section 2025-04-17 14:44:05 +02:00
Daniel Eklöf
9799c4ddcd
Merge branch 'releases/1.22' 2025-04-17 14:42:52 +02:00