remove unused .attributeBoxText and oldAttributeBoxTextColor

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github) 2022-09-22 12:27:13 -07:00
parent 84dfc8ee4b
commit 777f888892
7 changed files with 4 additions and 23 deletions

View file

@ -14,11 +14,7 @@ const getStyles = (options) =>
fill: ${options.attributeBackgroundColorEven};
stroke: ${options.nodeBorder};
}
.attributeBoxText {
color: ${options.attributeTextColor};
}
.relationshipLabelBox {
fill: ${options.tertiaryColor};
opacity: 0.7;
@ -28,9 +24,9 @@ const getStyles = (options) =>
}
}
.relationshipLine {
stroke: ${options.lineColor};
}
.relationshipLine {
stroke: ${options.lineColor};
}
`;
export default getStyles;

View file

@ -5,4 +5,3 @@
*/
export const oldAttributeBackgroundColorOdd = '#ffffff';
export const oldAttributeBackgroundColorEven = '#f2f2f2';
export const oldAttributeBoxTextColor = '#ff0000';

View file

@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
class Theme {
@ -229,7 +228,6 @@ class Theme {
/* -------------------------------------------------- */
/* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven =

View file

@ -1,10 +1,5 @@
import { invert, lighten, darken, rgba, adjust } from 'khroma';
import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
class Theme {
constructor() {
@ -228,7 +223,6 @@ class Theme {
/* -------------------------------------------------- */
/* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || lighten(this.background, 12);
this.attributeBackgroundColorEven =

View file

@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
class Theme {
@ -266,7 +265,6 @@ class Theme {
/* -------------------------------------------------- */
/* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven =

View file

@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
class Theme {
@ -229,7 +228,6 @@ class Theme {
/* -------------------------------------------------- */
/* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven =

View file

@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
// const Color = require ( 'khroma/dist/color' ).default
@ -270,7 +269,6 @@ class Theme {
/* -------------------------------------------------- */
/* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven =