Rename colour-theme/scheme option to theme

Previously both colourscheme and coloutheme were used.
This commit is contained in:
Hugo Machet 2022-09-06 21:52:43 +02:00 committed by Leon Henrik Plickat
parent 544321e53b
commit dd436dac4b
3 changed files with 5 additions and 4 deletions

View file

@ -86,9 +86,9 @@ Defaults to false.
.RE
.
.P
\fBcolour-scheme\fR = default|mono|paige|solarized-dark|solarized-light;
\fBtheme\fR = default|mono|paige|solarized-dark|solarized-light;
.RS
Which pre-defined colour-scheme to use.
Which pre-defined colour theme to use.
Colours can be configured individually in the \fBcolours\fR section.
Defaults to default.
.RE
@ -475,7 +475,7 @@ s = "/path/with spaces";
.
.SH SECTION: colours
.P
This section allows to overwrite individual colours of the chosen colourscheme.
This section allows to overwrite individual colours of the chosen colour theme.
This means setting either only a foreground colour or both a foreground and a
background colour.
.

View file

@ -9,6 +9,7 @@ directories-first = true;
permission-format = text;
size-format = iec;
mouse-support = false;
theme = default;
[keybinds]
j = cursor-move-down;

View file

@ -319,7 +319,7 @@ fn assignMain(self: *Self, variable: []const u8, value: []const u8, path: []cons
};
} else if (mem.eql(u8, variable, "mouse-support")) {
self.mouse_support = try parseBool(value, path, line);
} else if (mem.eql(u8, variable, "colour-theme")) {
} else if (mem.eql(u8, variable, "theme")) {
inline for (@typeInfo(themes).Struct.decls) |decl| {
if (mem.eql(u8, value, decl.name)) {
self.theme = @field(themes, decl.name);