-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Default theme palette using 16 terminal colors #699
feat: Default theme palette using 16 terminal colors #699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
c9ac2fb
to
2cbaed5
Compare
palette: mut default, | ||
} = ThemePalette::default(); | ||
|
||
default.extend(palette); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't all of this the same as
let theme = ThemePalette::default();
theme.palette(palette);
theme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But there is no palette
method on ThemePalette
? Also we are merging the user palette onto the default palette so that the defaults can be overridden.
Closes #687
Allows using default terminal colors in the theme like so:
This requires that there is no separate[palette]
section in the theme file. If it is present, that palette will completely override the default palette (there is no merging).The default palette is merged with the user palette, with the user palette taking precedence.