Afshin T. Darian преди 4 години
родител
ревизия
8a74b988eb
променени са 3 файла, в които са добавени 2 реда и са изтрити 31 реда
  1. 1 25
      src/panels/variables/grid.ts
  2. 1 1
      src/panels/variables/index.ts
  3. 0 5
      style/variables.css

+ 1 - 25
src/panels/variables/grid.ts

@@ -336,7 +336,7 @@ namespace Private {
   }
 
   /**
-   * The dark theme for the data grid.
+   * Compute the style and renderer for a data grid.
    */
   export function computeStyle(): {
     style: DataGrid.Style;
@@ -357,7 +357,6 @@ namespace Private {
     const headerGridLineColor = getComputedStyle(node).color;
     node = palette.querySelector('.jp-mod-selection');
     const selectionFillColor = getComputedStyle(node).color;
-    console.log('selectionFillColor', selectionFillColor);
     node = palette.querySelector('.jp-mod-text');
     const textColor = getComputedStyle(node).color;
     document.body.removeChild(palette);
@@ -382,29 +381,6 @@ namespace Private {
     };
   }
 
-  // /**
-  //  * The light theme for the data grid.
-  //  */
-  // const LIGHT_STYLE = {
-  //   dataStyle: {
-  //     voidColor: 'white',
-  //     backgroundColor: '#f5f5f5',
-  //     headerBackgroundColor: '#eeeeee',
-  //     gridLineColor: 'rgba(20, 20, 20, 0.15)',
-  //     headerGridLineColor: 'rgba(20, 20, 20, 0.25)',
-  //     rowBackgroundColor: (i: number): string =>
-  //       i % 2 === 0 ? 'white' : '#f5f5f5',
-  //     selectionFillColor: '#2196f3'
-  //   },
-  //   textRender: new TextRenderer({
-  //     font: '12px sans-serif',
-  //     textColor: '#000000',
-  //     backgroundColor: '',
-  //     verticalAlignment: 'center',
-  //     horizontalAlignment: 'left'
-  //   })
-  // };
-
   /**
    * A custom click handler to handle clicks on the variables grid.
    */

+ 1 - 1
src/panels/variables/index.ts

@@ -1,5 +1,5 @@
 // Copyright (c) Jupyter Development Team.
-// Distributed under the terms of the Modified BSD License.\
+// Distributed under the terms of the Modified BSD License.
 
 import { IThemeManager, ToolbarButton } from '@jupyterlab/apputils';
 

+ 0 - 5
style/variables.css

@@ -48,11 +48,6 @@
   border: none;
 }
 
-:root {
-  /* --md-light-blue-50 decomposed */
-  --jp-rendermime-table-row-hover-background: rgba(3, 169, 244, 0.2);
-}
-
 .jp-DebuggerVariables-colorPalette {
   visibility: hidden;
   z-index: -999;