Rephrase web/terminal-related "platform" to "environment"

This commit is contained in:
Jan Van Bruggen 2022-09-06 19:06:55 -06:00
parent 2f0df1d64d
commit 431455dd1b
No known key found for this signature in database
GPG key ID: FE2A4E38E0FA6134

View file

@ -184,7 +184,7 @@ impl<'b> Report<'b> {
}
/// This struct is a combination of several things
/// 1. A set of StyleCodes suitable for the platform we're running on (web or terminal)
/// 1. A set of StyleCodes suitable for the environment we're running in (web or terminal)
/// 2. A set of colors we decided to use
/// 3. A mapping from UI elements to the styles we use for them
/// Note: This should really be called Theme! Usually a "palette" is just (2).
@ -212,7 +212,7 @@ pub struct Palette {
}
/// Set the default styles for various semantic elements,
/// given a set of StyleCodes for a platform (web or terminal).
/// given a set of StyleCodes for an environment (web or terminal).
const fn default_palette_from_style_codes(codes: StyleCodes) -> Palette {
Palette {
primary: codes.white,