summaryrefslogtreecommitdiff
path: root/res/about/help.gmi
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-06-17 12:11:15 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-06-17 12:11:26 +0300
commit54ef4e781ab692654ca5b4ab295400595ab2e341 (patch)
tree7622d19c7ef0df2d9cf3e2d87f6009e1340b5976 /res/about/help.gmi
parentaac0bc8a49d06fffcaca7a1fd3c35de035ac3e7c (diff)
Help: Documentation for the palette.txt file
IssueID #263
Diffstat (limited to 'res/about/help.gmi')
-rw-r--r--res/about/help.gmi57
1 files changed, 57 insertions, 0 deletions
diff --git a/res/about/help.gmi b/res/about/help.gmi
index d8a2749b..34237d06 100644
--- a/res/about/help.gmi
+++ b/res/about/help.gmi
@@ -501,6 +501,63 @@ Translation table for keyboard modifiers. For example, one could swap the Alt an
501### mimehooks.txt 501### mimehooks.txt
502See section 4. 502See section 4.
503 503
504### palette.txt
505Palette for UI color themes. This configuration file does not exist by default and must be created manually.
506
507The actual colors used in the user interface are derived from the base palette. Therefore, you should not change the colors too drastically, but instead follow the expected pattern: a range of 5 intensities (black-white), followed by two accent color pairs (dim, bright). The last five colors are used for certain specific uses, e.g., the green is used for the navbar lock icon to indicate a trusted server certificate. The palettes defined here do not affect page color themes, only the UI. Note that link icons are considered part of the UI, so you may find that changing the palette will reduce visibility of the icons with some of the page color themes.
508
509The file specifies two palettes: one for dark mode and one for light mode. The current palette is selected with the lines:
510```
511# Dark
512```
513and
514```
515# Light
516```
517
518The other lines specify colors:
519> {label}: {rgb-hex}
520> {label}: {red} {green} {blue}
521* {rgb-hex} must use the form "#RRGGBB"
522* {red}, {green}, {blue} are decimal numbers in the range 0...255
523
524The configuration below defines the built-in default palette:
525```palette.txt with the default UI palette
526# Dark
527
528black: #000000
529gray25: #282828
530gray50: #505050
531gray75: #A0A0A0
532white: #FFFFFF
533brown: 106 80 0
534orange: 255 192 0
535teal: 0 96 128
536cyan: 0 192 255
537yellow: 255 255 32
538red: 255 64 64
539magenta: 255 0 255
540blue: 132 132 255
541green: 0 200 0
542
543# Light
544
545black: 0 0 0
546gray25: 75 75 75
547gray50: 150 150 150
548gray75: 235 235 235
549white: 255 255 255
550brown: 210 120 10
551orange: 235 215 200
552teal: 10 110 130
553cyan: 170 215 220
554yellow: 255 255 32
555red: 255 64 64
556magenta: 255 0 255
557blue: 132 132 255
558green: 0 150 0
559```
560
504### prefs.cfg 561### prefs.cfg
505Persistent configuration variables. The file is rewritten when the application is closed. Each line is interpreted as an internal UI event like those printed with the --echo command line option. 562Persistent configuration variables. The file is rewritten when the application is closed. Each line is interpreted as an internal UI event like those printed with the --echo command line option.
506 563