1.1.1. Theme Configuration¶
Theme configures the color scheme of Pyfx used, when presenting the JSON data.
1.1.1.1. Schema¶
Theme is configured with the following configuration schema under view configuration.
1view:
2 appearance:
3 theme: string, accepted_options = ["basic"]
Each theme
is mapped to a separate color-scheme configuration. For supported color,
please refer to Urwid Display Attributes
1.1.1.2. Basic Theme (Default)¶
basic
is transformed to the following color scheme.
1.1.1.2.1. Color Scheme Table¶
Name |
Description |
Foreground Color |
---|---|---|
body |
Pyfx body (JSON Browser) |
terminal default |
foot |
Pyfx footer (Query Bar and Help Bar) |
000000000 |
focused |
Focused display |
000000000 |
Auto Complete PopUp |
||
popup |
Autocomplete popup |
000000000 |
popup_focused |
Focused display for autocomplete popup |
000000000 |
JSON Browser |
||
json_key |
Object key |
000000000 |
json_string |
|
000000000 |
json_integer |
|
000000000 |
json_numeric |
|
000000000 |
json_bool |
|
000000000 |
json_null |
|
000000000 |
json_focused |
Focused display for JSON |
000000000 |
1.1.1.2.2. Color Scheme Configuration¶
1 # default setting for Pyfx body (JSON Browser)
2 body:
3 foreground: "default" # Terminal default
4 background: "default" # Terminal default
5
6 # default setting for Pyfx footer (Query Bar | Help Bar)
7 foot:
8 foreground: "light gray"
9 background: "default"
10
11 # default setting for focused display
12 focused:
13 foreground: "light gray"
14 background: "dark blue"
15
16 # autocomplete popup
17 popup:
18 foreground: "black"
19 background: "light cyan"
20
21 # focused color for autocomplete popup
22 popup_focused:
23 foreground: "white"
24 background: "dark magenta"
25
26 # json browser
27 json_key:
28 foreground: "light blue"
29 background: "default"
30
31 json_string:
32 foreground: "light green"
33 background: "default"
34
35 json_integer:
36 foreground: "light cyan"
37 background: "default"
38
39 json_numeric:
40 foreground: "light cyan"
41 background: "default"
42
43 json_bool:
44 foreground: "yellow"
45 background: "default"
46
47 json_null:
48 foreground: "light red"
49 background: "default"
50
51 json_focused:
52 foreground: "light gray"
53 background: "dark blue"