mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
The main reason for having two color sections is to be able to switch between dark and light. Thus, it's better if the section names reflect this, rather than the more generic 'colors' and 'colors2' (which was the dark one and which was the light one, now again?) When the second color section was added, we kept the original name, colors, to make sure we didn't break existing configurations, and third-party themes. However, in the long run, it's probably better to be specific in the section naming, to avoid confusion. So, add 'colors-dark', and 'colors-light'. Keep 'colors' and 'colors2' as aliases for now, but mark them as deprecated. They WILL be removed in a future release. Also rename the option values for initial-color-theme, from 1/2, to dark/light. Keep the old ones for now, marked as deprecated. Update all bundled themes to use the new names. In the light-only themes (i.e. themes that define a single, light, theme), use colors-light, and set initial-color-theme=light. Possible improvements: disable color switching if only one color section has been explicitly configured (todo: figure out how to handle the default color theme values...)
36 lines
969 B
Text
36 lines
969 B
Text
# -*- conf -*-
|
|
# Electrophoretic
|
|
# Theme for electrophoretic displays (like e-ink) which usually supports
|
|
# 16 levels of grays. This theme aims to maximize the contrast between the
|
|
# text and the white background.
|
|
# author: Eugen Rahaian <eugen@rah.ro>
|
|
|
|
[main]
|
|
initial-color-theme=light
|
|
|
|
[colors-light]
|
|
cursor=ffffff 515151
|
|
background= ffffff
|
|
foreground= 000000
|
|
|
|
# The colors are sorted based on their luminance, so we can more easily assign
|
|
# them a gray level.
|
|
# grayscale order: black_0 blue_4 red_1 magenta_5 green_2 cyan_6 yellow_3 white_7
|
|
regular0= ffffff
|
|
regular4= 616161
|
|
regular1= 515151
|
|
regular5= 414141
|
|
regular2= 313131
|
|
regular6= 212121
|
|
regular3= 111111
|
|
regular7= 000000
|
|
# Here, we also stay away from the white background by reusing the dark gray levels
|
|
# from above, with small variations
|
|
bright0= 818181
|
|
bright4= 717171
|
|
bright1= 616161
|
|
bright5= 515151
|
|
bright2= 414141
|
|
bright6= 313131
|
|
bright3= 212121
|
|
bright7= 111111
|