diff --git a/src/renderer/scss/_data-types.scss b/src/renderer/scss/_data-types.scss index b90fba49..c1c18e4d 100644 --- a/src/renderer/scss/_data-types.scss +++ b/src/renderer/scss/_data-types.scss @@ -12,35 +12,35 @@ @include type-colors( ( - "char": seagreen, - "varchar": seagreen, - "text": seagreen, - "mediumtext": seagreen, - "longtext": seagreen, - "int": cornflowerblue, - "tinyint": cornflowerblue, - "smallint": cornflowerblue, - "mediumint": cornflowerblue, - "float": cornflowerblue, - "double": cornflowerblue, - "decimal": cornflowerblue, - "bigint": cornflowerblue, - "datetime": coral, - "date": coral, - "time": coral, - "timestamp": coral, - "bit": lightskyblue, - "blob": darkorchid, - "mediumblob": darkorchid, - "longblob": darkorchid, - "enum": gold, - "set": gold, - "unknown": gray, + "char": $string-color, + "varchar": $string-color, + "text": $string-color, + "mediumtext": $string-color, + "longtext": $string-color, + "int": $number-color, + "tinyint": $number-color, + "smallint": $number-color, + "mediumint": $number-color, + "float": $number-color, + "double": $number-color, + "decimal": $number-color, + "bigint": $number-color, + "datetime": $date-color, + "date": $date-color, + "time": $date-color, + "timestamp": $date-color, + "bit": $bit-color, + "blob": $blob-color, + "mediumblob": $blob-color, + "longblob": $blob-color, + "enum": $enum-color, + "set": $enum-color, + "unknown": $unknown-color, ) ); .is-null { - color: gray; + color: $unknown-color; &::after { content: "NULL"; diff --git a/src/renderer/scss/_variables.scss b/src/renderer/scss/_variables.scss index 353b5b36..5f354a2c 100644 --- a/src/renderer/scss/_variables.scss +++ b/src/renderer/scss/_variables.scss @@ -9,6 +9,14 @@ $success-color: #32b643; $error-color: #de3b28; $warning-color: #e0a40c; +$string-color: seagreen; +$number-color: cornflowerblue; +$date-color: coral; +$bit-color: lightskyblue; +$blob-color: darkorchid; +$enum-color: gold; +$unknown-color: gray; + /* Sizes */ $titlebar-height: 1.5rem; $settingbar-width: 3rem;