Behaviour SwRS-MDOKFSTUDIO-THEME-025
Dark, White and Cream paint the whole page the same on any VS Code theme
When a forced theme mode (Dark, White or Cream) is shown, the extension SHALL paint the page, the floating toolbar and its pressed button, the sticky heading band and the note panels from the palette of that mode alone, so that the White mode paints a white page with the dark foreground text, light panels and a light colour scheme, and every forced mode looks the same on a dark and on a light VS Code theme.
Step 2 of path 1 in StRS-MDOKFSTUDIO-THEME-002: from “A theme mode is active” to “The whole page is painted in the colours of the mode”.
Scenarios 8
The situations the tests check; open one to read it.
nominalWhite on a dark host
nominalDark on a light host and on a dark host
nominalCream on a dark host
The edition palette's mode selector uses the forced palette's widget background, page foreground and widget border rather than the host dropdown colours. In Cream these are rgb(251, 248, 241), rgb(43, 42, 39) and rgb(214, 205, 189), even when the host dropdown is dark. Dark and White apply the same rule with their own palette; Current mode continues to follow the host.
boundaryWarm paper rule
nominalToolbar colours of the forced modes
| Input | Outcome |
|---|---|
| White mode on a dark VS Code theme | Toolbar background rgb(243, 243, 243), text rgb(51, 51, 51) |
| Dark mode on a light VS Code theme | Toolbar background rgb(37, 37, 38), pressed button rgb(14, 99, 156) |
| Dark mode on a dark VS Code theme (capture theme-zoom/r03) | Toolbar background rgb(37, 37, 38) |
nominalSticky heading band and borders
| Input | Outcome |
|---|---|
| Sticky heading band, White mode on a dark host | Background is the white page colour, text is the dark page text |
| Sticky heading band, Dark mode on a light host | Background is rgb(30, 30, 30) |
| Toolbar and note panel borders, Dark | rgb(69, 69, 69) |
| Toolbar and note panel borders, White | rgb(200, 200, 200) |
| Toolbar and note panel borders, Cream | rgb(214, 205, 189) |
boundaryThe same colours on both hosts
boundaryThe three mode blocks of the stylesheet
Implemented in 1
Tested by 8
- test/core/preview/creamTheme.test.tsunit
- test/core/preview/diagReq.styles.requirements.test.tsunit
- test/core/preview/previewStyles.test.tsunit
- test/core/preview/themeTokens.test.tsunit
- test/integration/realInput/previewWindow.tsintegration
- test/visual/capture_page_checks.pyvisual
- test/visual/scenarioDefinitions1.tsvisual
- test/visual/scenarioDefinitions2.tsvisual