jupyterlab_mechanicum_dark_theme 1.0.3 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,12 +37,12 @@ Recite it once before a long training run. Recite it twice before a demo.
37
37
 
38
38
  ## What the theme changes
39
39
 
40
- - **Text areas** - the editor, the notebook, the terminal and the file list are flat and nearly black, with parchment-coloured text. No pattern lies behind text
40
+ - **Text areas** - the editor, the notebook, the terminal and the file list are flat and nearly black, with parchment-coloured text; the terminal's default text is the grey-green of an old terminal. No pattern lies behind text
41
41
  - **Panels and toolbars** - crimson cloth with gold stitching
42
42
  - **Top bar** - the Cog Mechanicum as the icon in the top-left corner, the menu in capitals, and a frieze of Latin mottos in the free middle of the bar
43
43
  - **Fonts** - the theme sets no font: all text keeps the font of JupyterLab
44
44
  - **Activity bars** - plain iron; the open panel's icon stands on crimson
45
- - **Tabs of the main area** - the open tab is a crimson banner with a thin gold edge, on a bar of plain iron
45
+ - **Tabs of the main area** - the open tab is a crimson banner with a thin gold edge, on a bar of plain iron; the strip under the tab bar continues the banner
46
46
  - **Launcher** - a thin strip of riveted steel across the top: the Cog Mechanicum, a skull that is half bone and half machine in a gear, between the words `ADEPTUS` and `MECHANICUS` in gold, steel plates with a gold rail beside it and hazard stripes at both ends; section titles over an embroidered band, cards as stitched patches with gears in the corners
47
47
  - **Notebook** - headings in gold with an embroidered band, a red first letter in the title, gears as list bullets, a crimson ribbon and a purity seal on the active cell
48
48
  - **Dialogs and menus** - cloth with a stitched hem; a purity seal hangs in the corner of every dialog
@@ -52,7 +52,7 @@ Recite it once before a long training run. Recite it twice before a demo.
52
52
 
53
53
  A blinded adept computes nothing. The ornament must not make the lab harder to use. Three rules hold everywhere:
54
54
 
55
- - **Contrast** - every text and code colour has a contrast of 4.8 or more against the editor background; body text has 10 or more
55
+ - **Contrast** - every text and code colour has a contrast of 4.8 or more against the editor background; body text has 10 or more, and the terminal's grey-green default text has 8.4
56
56
  - **No bright areas** - no large area is brighter than the crimson of the cloth. Selected rows are crimson with a gold thread, and no row is a block of gold
57
57
  - **No motion** - the theme has no animation
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_mechanicum_dark_theme",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "description": "Dark Adeptus Mechanicum theme for JupyterLab: crimson cloth, gold embroidery, steel and parchment",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -21,6 +21,11 @@
21
21
  --mech-crimson: #7d241e;
22
22
  --mech-crimson-dark: #4f1512;
23
23
  --mech-iron: #14100f;
24
+ --mech-banner-foot: #5c1a16; /* the bottom of the selected tab and the strip under the tab bar */
25
+ --mech-phosphor: #9eb59c; /* terminal text, the grey-green of an old terminal: 8.4 on the terminal background */
26
+ --mech-parchment: var(
27
+ --jp-ui-font-color0
28
+ ); /* the theme's own value, kept for the children of body */
24
29
  }
25
30
 
26
31
  /* only the background: selected code keeps its colours */
@@ -28,6 +33,21 @@
28
33
  background: var(--mech-crimson);
29
34
  }
30
35
 
36
+ /* ---------------------------------------------------------------------------
37
+ * Terminal: the grey-green text of an old terminal
38
+ * ------------------------------------------------------------------------- */
39
+
40
+ /* the terminal reads its text colour from --jp-ui-font-color0 as computed on body. The value
41
+ changes on body alone: the children of body get the theme's value back, so no other text
42
+ changes colour */
43
+ body {
44
+ --jp-ui-font-color0: var(--mech-phosphor);
45
+ }
46
+
47
+ body > * {
48
+ --jp-ui-font-color0: var(--mech-parchment);
49
+ }
50
+
31
51
  /* ---------------------------------------------------------------------------
32
52
  * Cloth: the frame of the application is crimson cloth
33
53
  * ------------------------------------------------------------------------- */
@@ -144,13 +164,30 @@
144
164
  color: var(--jp-ui-font-color0);
145
165
  }
146
166
 
167
+ /* the gold line is one ring. A line in the colour of the strip covers its bottom segment,
168
+ so the tab joins the strip under it */
147
169
  .lm-DockPanel-tabBar .lm-TabBar-tab.lm-mod-current {
148
- background: linear-gradient(#872a22, #5c1a16);
170
+ background: linear-gradient(#872a22, var(--mech-banner-foot));
149
171
  border-color: var(--mech-gold-dark);
150
- box-shadow: inset 0 0 0 1px rgba(227, 200, 120, 0.28);
172
+ box-shadow:
173
+ inset 0 -1px 0 var(--mech-banner-foot),
174
+ inset 0 0 0 1px rgba(227, 200, 120, 0.28);
151
175
  color: #f6ecce;
152
176
  }
153
177
 
178
+ /* the strip under the tab bar of a panel with no toolbar buttons, such as a terminal: it
179
+ continues the selected tab, as in the sibling themes */
180
+ .jp-MainAreaWidget > .jp-Toolbar.jp-Toolbar-micro {
181
+ background: var(--mech-banner-foot);
182
+ }
183
+
184
+ /* a tab coloured by jupyterlab_colourful_tab_extension. The extension sets a background
185
+ colour only, so the gradient and the gold line are removed and the colour fills the tab */
186
+ .lm-DockPanel-tabBar .lm-TabBar-tab.lm-mod-current[class*='jp-colourful-tab-'] {
187
+ background-image: none;
188
+ box-shadow: none;
189
+ }
190
+
154
191
  /* stylelint-disable no-descending-specificity */
155
192
 
156
193
  /* ---------------------------------------------------------------------------