mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-04 00:54:36 +00:00
Rephrase web/terminal-related "platform" to "environment"
This commit is contained in:
parent
2f0df1d64d
commit
431455dd1b
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue