.Tabs {
- background: $layoutTabsBackground;
+ background: var(--layoutTabsBackground);
min-height: 32px;
}
diff --git a/src/renderer/components/layout/wizard-layout.scss b/src/renderer/components/layout/wizard-layout.scss
index 368ead2efb..9a1204d8d8 100644
--- a/src/renderer/components/layout/wizard-layout.scss
+++ b/src/renderer/components/layout/wizard-layout.scss
@@ -38,12 +38,12 @@
> .head-col {
position: sticky;
justify-content: space-between;
- background-color: $clusterMenuBackground;
+ background-color: var(--clusterMenuBackground);
}
> .content-col {
margin-right: $spacing;
- background-color: $contentColor;
+ background-color: var(--contentColor);
border-radius: $radius;
> div {
@@ -58,7 +58,7 @@
}
> .info-col {
- background-color: $contentColor;
+ background-color: var(--contentColor);
}
p {
@@ -66,7 +66,7 @@
}
a {
- color: $colorInfo;
+ color: var(--colorInfo);
}
&.centered {
diff --git a/src/renderer/components/line-progress/line-progress.scss b/src/renderer/components/line-progress/line-progress.scss
index 20a7fd7938..9cf52feb6c 100644
--- a/src/renderer/components/line-progress/line-progress.scss
+++ b/src/renderer/components/line-progress/line-progress.scss
@@ -23,7 +23,7 @@
.LineProgress {
position: relative;
border-radius: 2px;
- background: $lineProgressBackground;
+ background: var(--lineProgressBackground);
height: 3px;
// line indicator
diff --git a/src/renderer/components/markdown-viewer/markdown-viewer.scss b/src/renderer/components/markdown-viewer/markdown-viewer.scss
index ccd2599e18..ccd8258742 100644
--- a/src/renderer/components/markdown-viewer/markdown-viewer.scss
+++ b/src/renderer/components/markdown-viewer/markdown-viewer.scss
@@ -377,15 +377,15 @@
height: 0.25em;
padding: 0;
margin: 24px 0;
- background-color: $helmDescriptionHr;
+ background-color: var(--helmDescriptionHr);
border: 0;
}
blockquote {
padding: 8px 1em;
- color: $helmDescriptionBlockquoteColor;
- border-left: 0.25em solid $helmDescriptionBlockquoteBorder;
- background: $helmDescriptionBlockquoteBackground;
+ color: var(--helmDescriptionBlockquoteColor);
+ border-left: 0.25em solid var(--helmDescriptionBlockquoteBorder);
+ background: var(--helmDescriptionBlockquoteBackground);
}
blockquote > :first-child {
@@ -455,20 +455,20 @@
padding-bottom: 0.3em;
font-size: 1.8em;
font-weight: normal;
- border-bottom: 1px solid $borderFaintColor;
+ border-bottom: 1px solid var(--borderFaintColor);
}
h2 {
padding-bottom: 0.3em;
font-size: 1.3em;
font-weight: normal;
- border-bottom: 1px solid $borderFaintColor;
+ border-bottom: 1px solid var(--borderFaintColor);
}
h3 {
font-size: 1.1em;
font-weight: normal;
- border-bottom: 1px solid $borderFaintColor;
+ border-bottom: 1px solid var(--borderFaintColor);
padding-bottom: 0.4em;
}
@@ -482,7 +482,7 @@
h6 {
font-size: 0.85em;
- color: $helmDescriptionH6;
+ color: var(--helmDescriptionH6);
}
ul,
@@ -542,7 +542,7 @@
th, td {
padding: 6px 13px;
- border: 1px solid $helmDescriptionTdBorder;
+ border: 1px solid var(--helmDescriptionTdBorder);
text-align: left;
word-break: break-all;
hyphens: auto;
@@ -553,29 +553,29 @@
}
table tr {
- background-color: $tableBgcStripe;
+ background-color: var(--tableBgcStripe);
}
table tr:nth-child(2n) {
- background-color: $tableBgcSelected;
+ background-color: var(--tableBgcSelected);
}
img {
max-width: 100%;
box-sizing: content-box;
- background-color: $mainBackground;
+ background-color: var(--mainBackground);
}
code {
padding: .15em .35em;
margin: 0;
font-size: 85%;
- background-color: $helmDescriptionCodeBackground;
+ background-color: var(--helmDescriptionCodeBackground);
border-radius: 3px;
white-space: normal;
display: inline-block;
vertical-align: middle;
- color: $helmDescriptionPreColor;
+ color: var(--helmDescriptionPreColor);
}
pre > code {
@@ -602,7 +602,7 @@
padding: 16px;
font-size: 85%;
line-height: 1.45;
- background-color: $helmDescriptionPreBackground;
+ background-color: var(--helmDescriptionPreBackground);
border-radius: 3px;
overflow: auto;
}
@@ -617,7 +617,7 @@
word-wrap: normal;
background-color: transparent;
border: 0;
- color: $helmDescriptionPreColor;
+ color: var(--helmDescriptionPreColor);
}
pre code::before,
diff --git a/src/renderer/components/menu/menu-actions.scss b/src/renderer/components/menu/menu-actions.scss
index 2b2a36a030..5f2a605ae8 100644
--- a/src/renderer/components/menu/menu-actions.scss
+++ b/src/renderer/components/menu/menu-actions.scss
@@ -31,7 +31,7 @@
margin-right: var(--flex-gap) !important;
.Icon {
- color: $textColorAccent;
+ color: var(--textColorAccent);
padding-right: 0;
}
diff --git a/src/renderer/components/menu/menu-actions.tsx b/src/renderer/components/menu/menu-actions.tsx
index 06a44e3b06..f02ce2f1e1 100644
--- a/src/renderer/components/menu/menu-actions.tsx
+++ b/src/renderer/components/menu/menu-actions.tsx
@@ -146,7 +146,7 @@ export class MenuActions extends React.Component {
{removeAction && (
)}
diff --git a/src/renderer/components/menu/menu.scss b/src/renderer/components/menu/menu.scss
index 702c70fd2b..b9403436d5 100644
--- a/src/renderer/components/menu/menu.scss
+++ b/src/renderer/components/menu/menu.scss
@@ -20,14 +20,14 @@
*/
.Menu {
- --bgc: #{$layoutBackground};
+ --bgc: var(--layoutBackground);
position: absolute;
display: flex;
flex-direction: column;
background: var(--bgc);
list-style: none;
- border: 1px solid var(--colorVague);
+ border: 1px solid var(--borderColor);
z-index: 101;
box-shadow: rgb(0 0 0 / 17%) 0px 6px 9px 0px;
border-radius: 4px;
@@ -63,7 +63,7 @@
}
.MenuItem {
- --color: #{$textColorPrimary};
+ --color: var(--textColorPrimary);
--color-active: white;
--bgc-active: var(--menuActiveBackground);
@@ -107,7 +107,7 @@
padding: 0;
height: 0;
overflow: hidden;
- border-top: 1px solid $contentColor;
+ border-top: 1px solid var(--contentColor);
pointer-events: none;
}
diff --git a/src/renderer/components/mixins.scss b/src/renderer/components/mixins.scss
index 057519b925..a3bff39a6b 100755
--- a/src/renderer/components/mixins.scss
+++ b/src/renderer/components/mixins.scss
@@ -50,7 +50,7 @@
}
}
-@mixin pseudo-link($color: $primary) {
+@mixin pseudo-link($color: var(--primary)) {
color: $color;
text-decoration: underline;
cursor: pointer;
diff --git a/src/renderer/components/notifications/notifications.scss b/src/renderer/components/notifications/notifications.scss
index 3ce3850b89..fe12ab3b5a 100644
--- a/src/renderer/components/notifications/notifications.scss
+++ b/src/renderer/components/notifications/notifications.scss
@@ -56,11 +56,11 @@
}
}
- @each $status, $color in (ok: $colorOk, error: $colorError, info: $colorInfo) {
+ @each $status, $color in (ok: var(--colorOk), error: var(--colorError), info: var(--colorInfo)) {
&.#{$status} {
background: $color;
color: $color-white;
- box-shadow: 0 0 20px $boxShadow;
+ box-shadow: 0 0 20px var(--boxShadow);
}
}
diff --git a/src/renderer/components/radio/radio.scss b/src/renderer/components/radio/radio.scss
index 151cfd1a6a..500d051f26 100644
--- a/src/renderer/components/radio/radio.scss
+++ b/src/renderer/components/radio/radio.scss
@@ -30,7 +30,7 @@
.Radio {
display: inline-block;
- border: 1px solid $borderFaintColor;
+ border: 1px solid var(--borderFaintColor);
border-radius: $radius;
text-align: center;
padding: round($padding * .7) $padding;
@@ -41,21 +41,21 @@
cursor: pointer;
&:not(:active):focus {
position: relative;
- border-color: $primary;
- box-shadow: inset 0 0 0 1px $primary;
+ border-color: var(--primary);
+ box-shadow: inset 0 0 0 1px var(--primary);
}
}
&.checked {
- background-color: $radioActiveBackground;
- color: $textColorAccent;
+ background-color: var(--radioActiveBackground);
+ color: var(--textColorAccent);
* {
cursor: default;
}
}
&:hover {
- color: $textColorAccent
+ color: var(--textColorAccent)
}
+ .Radio {
@@ -76,9 +76,9 @@
.Radio {
$tickSize: round(1.8 * $unit);
$tickColor: currentColor;
- $tickColorActive: $colorInfo;
- $tickColorFocus: $colorInfo;
- $labelColorActive: $textColorAccent;
+ $tickColorActive: var(--colorInfo);
+ $tickColorFocus: var(--colorInfo);
+ $labelColorActive: var(--textColorAccent);
input[type="radio"] {
display: none;
diff --git a/src/renderer/components/select/select.scss b/src/renderer/components/select/select.scss
index 2eb97cf79b..8f5a3fa0e9 100644
--- a/src/renderer/components/select/select.scss
+++ b/src/renderer/components/select/select.scss
@@ -23,13 +23,13 @@
// Docs: https://react-select.com/styles
html {
- $menuBackgroundColor: $contentColor;
+ $menuBackgroundColor: var(--contentColor);
--select-menu-bgc: #{$menuBackgroundColor};
- --select-menu-border-color: #{$halfGray};
- --select-option-selected-color: #{$inputOptionHoverColor};
- --select-option-focused-bgc: #{$colorInfo};
- --select-option-focused-color: #{$textColorAccent};
+ --select-menu-border-color: var(--halfGray);
+ --select-option-selected-color: var(--inputOptionHoverColor);
+ --select-option-focused-bgc: var(--colorInfo);
+ --select-option-focused-color: var(--textColorAccent);
.Select {
position: relative;
@@ -50,12 +50,12 @@ html {
border-radius: $radius;
background: var(--select-menu-bgc);
min-height: 0;
- box-shadow: 0 0 0 1px $halfGray;
+ box-shadow: 0 0 0 1px var(--halfGray);
cursor: pointer;
line-height: 1;
&--is-focused {
- box-shadow: 0 0 0 1px $primary;
+ box-shadow: 0 0 0 1px var(--primary);
}
}
@@ -110,7 +110,7 @@ html {
cursor: pointer;
&:active {
- background: $primary;
+ background: var(--primary);
}
&--is-selected {
@@ -144,14 +144,14 @@ html {
}
&__multi-value {
- background: $layoutBackground;
+ background: var(--layoutBackground);
&__remove {
background: inherit;
&:hover {
- background: $colorError;
- color: $textColorAccent;
+ background: var(--colorError);
+ color: var(--textColorAccent);
}
}
}
@@ -166,12 +166,12 @@ html {
.Select, .Select__menu {
&.theme-light {
--select-menu-bgc: white;
- --select-option-selected-color: $textColorSecondary;
+ --select-option-selected-color: var(--textColorSecondary);
.Select {
&__multi-value {
background: none;
- box-shadow: 0 0 0 1px $textColorSecondary;
+ box-shadow: 0 0 0 1px var(--textColorSecondary);
}
&__option {
@@ -196,8 +196,8 @@ html {
&.theme-outlined {
.Select__control {
- box-shadow: 0 0 0 1px $colorVague;
- color: $primary;
+ box-shadow: 0 0 0 1px var(--colorVague);
+ color: var(--primary);
.Select__value-container {
padding: 0 $padding * 0.5;
@@ -219,7 +219,7 @@ html {
:focus-within {
&.Select__control {
- box-shadow: 0 0 0 1px $colorInfo;
+ box-shadow: 0 0 0 1px var(--colorInfo);
}
}
diff --git a/src/renderer/components/slider/slider.scss b/src/renderer/components/slider/slider.scss
index 6f87c3727f..e97d3c96f7 100644
--- a/src/renderer/components/slider/slider.scss
+++ b/src/renderer/components/slider/slider.scss
@@ -21,18 +21,18 @@
.Slider {
.track {
- background: $lensBlue;
+ background: var(--blue);
}
.thumb {
- background: $lensBlue;
+ background: var(--blue);
&.activated, &.jumped, &.focused {
- box-shadow: 0 0 0 $unit * 2 rgba($lensBlue, 0.16)!important;
+ box-shadow: 0 0 0 #{$unit * 2} var(--blue) !important;
}
&:hover{
- box-shadow: 0 0 0 $unit rgba($lensBlue, 0.16);
+ box-shadow: 0 0 0 $unit var(--blue);
}
}
}
\ No newline at end of file
diff --git a/src/renderer/components/spinner/spinner.scss b/src/renderer/components/spinner/spinner.scss
index f9e426c274..9f0061e581 100644
--- a/src/renderer/components/spinner/spinner.scss
+++ b/src/renderer/components/spinner/spinner.scss
@@ -43,7 +43,7 @@
}
&.singleColor {
- @include spinner-color($textColorPrimary);
+ @include spinner-color(var(--textColorPrimary));
animation: $rotateAnimation;
}
diff --git a/src/renderer/components/status-brick/status-brick.scss b/src/renderer/components/status-brick/status-brick.scss
index 6052861718..6b70820265 100644
--- a/src/renderer/components/status-brick/status-brick.scss
+++ b/src/renderer/components/status-brick/status-brick.scss
@@ -26,7 +26,7 @@
width: $brickSize;
height: $brickSize;
margin-right: $margin;
- background: $colorOk;
+ background: var(--colorOk);
border-radius: 2px;
&:last-child {
diff --git a/src/renderer/components/stepper/stepper.scss b/src/renderer/components/stepper/stepper.scss
index ad26910172..fcc9e22614 100644
--- a/src/renderer/components/stepper/stepper.scss
+++ b/src/renderer/components/stepper/stepper.scss
@@ -21,8 +21,8 @@
.Stepper {
- --stepper-color: $contentColor;
- --stepper-color-text: $textColorPrimary;
+ --stepper-color: var(--contentColor);
+ --stepper-color-text: var(--textColorPrimary);
--stepper-color-active: var(--color-primary);
--stepper-color-point: var(--stepper-color);
@@ -34,13 +34,13 @@
text-align: center;
&.active, &.done {
.point {
- color: $textColorAccent;
+ color: var(--textColorAccent);
background: var(--stepper-color-active);
}
}
&.active {
.step-title {
- color: $textColorAccent;
+ color: var(--textColorAccent);
}
}
&.done > .line {
diff --git a/src/renderer/components/table/table-cell.scss b/src/renderer/components/table/table-cell.scss
index 1b2ffeb067..f0cce05e91 100644
--- a/src/renderer/components/table/table-cell.scss
+++ b/src/renderer/components/table/table-cell.scss
@@ -80,11 +80,11 @@
}
a {
- color: $primary;
+ color: var(--primary);
transition: 150ms color;
&:hover {
- color: $textColorAccent;
+ color: var(--textColorAccent);
}
}
}
\ No newline at end of file
diff --git a/src/renderer/components/table/table-head.scss b/src/renderer/components/table/table-head.scss
index efa0bdb9b9..5a96fdc4bb 100644
--- a/src/renderer/components/table/table-head.scss
+++ b/src/renderer/components/table/table-head.scss
@@ -20,13 +20,13 @@
*/
.TableHead {
- $border: 1px solid $layoutBackground;
+ $border: 1px solid var(--layoutBackground);
- background-color: $tableHeaderBackground;
- border-bottom-width: $tableHeaderBorderWidth;
+ background-color: var(--tableHeaderBackground);
+ border-bottom-width: var(--tableHeaderBorderWidth);
border-bottom-style: solid;
- border-bottom-color: $tableHeaderBorderColor;
- color: $tableHeaderColor;
+ border-bottom-color: var(--tableHeaderBorderColor);
+ color: var(--tableHeaderColor);
display: flex;
flex-shrink: 0;
diff --git a/src/renderer/components/table/table.scss b/src/renderer/components/table/table.scss
index 51cf7b8688..60d8a01e69 100644
--- a/src/renderer/components/table/table.scss
+++ b/src/renderer/components/table/table.scss
@@ -39,16 +39,16 @@
cursor: pointer;
&:hover {
- background-color: $tableBgcSelected !important;
+ background-color: var(--tableBgcSelected) !important;
}
&.selected {
- background-color: $tableBgcSelected;
- color: $tableSelectedRowColor;
+ background-color: var(--tableBgcSelected);
+ color: var(--tableSelectedRowColor);
&:before {
content: "";
- background: $primary;
+ background: var(--primary);
position: absolute;
left: 0;
top: 0;
@@ -62,7 +62,7 @@
&.striped {
.TableRow {
&:nth-child(odd) {
- background-color: $tableBgcStripe;
+ background-color: var(--tableBgcStripe);
}
}
}
diff --git a/src/renderer/components/tabs/tabs.scss b/src/renderer/components/tabs/tabs.scss
index 9ffc935415..ffd896189c 100644
--- a/src/renderer/components/tabs/tabs.scss
+++ b/src/renderer/components/tabs/tabs.scss
@@ -26,7 +26,7 @@
-moz-user-select: none; /* firefox */
&.withBorder {
- border-bottom: 1px solid $borderFaintColor;
+ border-bottom: 1px solid var(--borderFaintColor);
}
&.wrap {
@@ -49,8 +49,8 @@
}
.Tab {
- --color-active: #{$layoutTabsActiveColor};
- --line-color-active: #{$primary};
+ --color-active: var(--layoutTabsActiveColor);
+ --line-color-active: var(--primary);
--line-color-focus: currentColor;
position: relative;
@@ -74,7 +74,7 @@
height: $unit * 0.5;
transition: width 150ms;
background: currentColor;
- color: $halfGray
+ color: var(--halfGray)
}
&:focus {
diff --git a/src/renderer/components/tooltip/tooltip.scss b/src/renderer/components/tooltip/tooltip.scss
index a53cc29a57..d7fb7518fe 100644
--- a/src/renderer/components/tooltip/tooltip.scss
+++ b/src/renderer/components/tooltip/tooltip.scss
@@ -21,10 +21,10 @@
.Tooltip {
- --bgc: #{$mainBackground};
+ --bgc: var(--mainBackground);
--radius: #{$radius};
- --color: #{$textColorAccent};
- --border: 1px solid #{$borderColor};
+ --color: var(--textColorAccent);
+ --border: 1px solid var(--borderColor);
// use positioning relative to viewport (window)
// https://developer.mozilla.org/en-US/docs/Web/CSS/position
@@ -74,7 +74,7 @@
}
&.warning {
- color: $colorError;
+ color: var(--colorError);
}
&.tableView {
@@ -85,12 +85,12 @@
}
.title {
- color: $textColorAccent;
+ color: var(--textColorAccent);
text-align: center;
}
.name {
- color: $textColorAccent;
+ color: var(--textColorAccent);
text-align: right;
flex: 0 0 35%;
}
diff --git a/src/renderer/components/vars.scss b/src/renderer/components/vars.scss
index 1813a73a6b..3e55c1b3b4 100755
--- a/src/renderer/components/vars.scss
+++ b/src/renderer/components/vars.scss
@@ -20,7 +20,6 @@
*/
@import "colors", "media";
-@import "../themes/theme-vars";
// Dimensions
$unit: 8px;
diff --git a/src/renderer/components/wizard/wizard.scss b/src/renderer/components/wizard/wizard.scss
index 011fb0f914..c3a075e70d 100755
--- a/src/renderer/components/wizard/wizard.scss
+++ b/src/renderer/components/wizard/wizard.scss
@@ -25,10 +25,10 @@
--wizard-content-height: auto;
--wizard-content-max-height: #{40 * $unit};
--wizard-spacing: #{$padding * 3};
- --wizard-step-bgc: #{$dialogBackground};
+ --wizard-step-bgc: var(--dialogBackground);
width: var(--wizard-width);
- color: $dialogTextColor;
+ color: var(--dialogTextColor);
&.small {
--wizard-width: #{45 * $unit};
@@ -45,7 +45,7 @@
> .header {
text-align: center;
color: white;
- background: $dialogHeaderBackground;
+ background: var(--dialogHeaderBackground);
padding: var(--wizard-spacing);
border-top-left-radius: $radius;
border-top-right-radius: $radius;
@@ -95,7 +95,7 @@
// buttons
> :last-child {
padding: var(--wizard-spacing);
- background: $dialogFooterBackground;
+ background: var(--dialogFooterBackground);
border-bottom-left-radius: $radius;
border-bottom-right-radius: $radius;
diff --git a/src/renderer/lens-app.tsx b/src/renderer/lens-app.tsx
index 7d9e41a8b6..17322e9a01 100644
--- a/src/renderer/lens-app.tsx
+++ b/src/renderer/lens-app.tsx
@@ -38,6 +38,7 @@ import { IpcRendererNavigationEvents } from "./navigation/events";
import { catalogEntityRegistry } from "./api/catalog-entity-registry";
import logger from "../common/logger";
import { unmountComponentAtNode } from "react-dom";
+import { ClusterFrameHandler } from "./components/cluster-manager/lens-views";
injectSystemCAs();
@@ -61,6 +62,12 @@ export class LensApp extends React.Component {
};
}
+ constructor(props: {}) {
+ super(props);
+
+ ClusterFrameHandler.createInstance();
+ }
+
componentDidMount() {
ipcRenderer.send(IpcRendererNavigationEvents.LOADED);
}
diff --git a/src/renderer/port-forward/port-forward-dialog.scss b/src/renderer/port-forward/port-forward-dialog.scss
index 6d5e07176b..72ad02d419 100644
--- a/src/renderer/port-forward/port-forward-dialog.scss
+++ b/src/renderer/port-forward/port-forward-dialog.scss
@@ -56,7 +56,7 @@
}
.warning {
- color: $colorSoftError;
+ color: var(--colorSoftError);
font-size: small;
display: flex;
align-items: center;
diff --git a/src/renderer/theme.store.ts b/src/renderer/theme.store.ts
index faef28a1c2..144ecf7d47 100644
--- a/src/renderer/theme.store.ts
+++ b/src/renderer/theme.store.ts
@@ -91,7 +91,7 @@ export class ThemeStore extends Singleton {
if (!this.styles) {
this.styles = document.createElement("style");
this.styles.id = "lens-theme";
- document.head.prepend(this.styles);
+ document.head.append(this.styles);
}
const cssVars = Object.entries(theme.colors).map(([cssName, color]) => {
return `--${cssName}: ${color};`;
diff --git a/src/renderer/themes/lens-dark.json b/src/renderer/themes/lens-dark.json
index 75e40f4562..023f9f6ccf 100644
--- a/src/renderer/themes/lens-dark.json
+++ b/src/renderer/themes/lens-dark.json
@@ -23,6 +23,7 @@
"layoutBackground": "#2e3136",
"layoutTabsBackground": "#252729",
"layoutTabsActiveColor": "#ffffff",
+ "layoutTabsLineColor": "#87909c80",
"sidebarBackground": "#36393e",
"sidebarLogoBackground": "#414448",
"sidebarActiveColor": "#ffffff",
@@ -126,6 +127,7 @@
"radioActiveBackground": "#36393e",
"menuActiveBackground": "#3d90ce",
"menuSelectedOptionBgc": "#36393e",
+ "canvasBackground": "#24292e",
"scrollBarColor": "#5f6064",
"settingsBackground": "#262b2e",
"settingsColor": "#909ba6",
diff --git a/src/renderer/themes/lens-light.json b/src/renderer/themes/lens-light.json
index 4085c30bc6..8525d31a56 100644
--- a/src/renderer/themes/lens-light.json
+++ b/src/renderer/themes/lens-light.json
@@ -127,8 +127,8 @@
"radioActiveBackground": "#f1f1f1",
"menuActiveBackground": "#3d90ce",
"menuSelectedOptionBgc": "#e8e8e8",
- "scrollBarColor": "#bbbbbb",
"canvasBackground": "#24292e",
+ "scrollBarColor": "#bbbbbb",
"settingsBackground": "#ffffff",
"settingsColor": "#555555",
"navSelectedBackground": "#ffffff",
diff --git a/src/renderer/themes/theme-vars.css b/src/renderer/themes/theme-vars.css
new file mode 100644
index 0000000000..e0a695b72d
--- /dev/null
+++ b/src/renderer/themes/theme-vars.css
@@ -0,0 +1,138 @@
+
+/*
+ Generated Lens theme CSS-variables, don't edit manually.
+ To refresh file run $: yarn run ts-node build/build_theme_vars.ts
+*/
+
+:root {
+--blue: #3d90ce;
+--magenta: #c93dce;
+--golden: #ffc63d;
+--halfGray: #87909c80;
+--primary: #3d90ce;
+--textColorPrimary: #8e9297;
+--textColorSecondary: #a0a0a0;
+--textColorTertiary: #909ba6;
+--textColorAccent: #ffffff;
+--textColorDimmed: #8e92978c;
+--borderColor: #4c5053;
+--borderFaintColor: #373a3e;
+--mainBackground: #1e2124;
+--secondaryBackground: #1e2125;
+--contentColor: #262b2f;
+--layoutBackground: #2e3136;
+--layoutTabsBackground: #252729;
+--layoutTabsActiveColor: #ffffff;
+--layoutTabsLineColor: #87909c80;
+--sidebarBackground: #36393e;
+--sidebarLogoBackground: #414448;
+--sidebarActiveColor: #ffffff;
+--sidebarSubmenuActiveColor: #ffffff;
+--sidebarItemHoverBackground: #3a3e44;
+--buttonPrimaryBackground: #3d90ce;
+--buttonDefaultBackground: #414448;
+--buttonLightBackground: #f1f1f1;
+--buttonAccentBackground: #e85555;
+--buttonDisabledBackground: #808080;
+--tableBgcStripe: #2a2d33;
+--tableBgcSelected: #383c42;
+--tableHeaderBackground: #262b2f;
+--tableHeaderBorderWidth: 1px;
+--tableHeaderBorderColor: #36393e;
+--tableHeaderColor: #ffffff;
+--tableSelectedRowColor: #ffffff;
+--helmLogoBackground: #ffffff;
+--helmImgBackground: #414448;
+--helmStableRepo: #3d90ce;
+--helmIncubatorRepo: #ff7043;
+--helmDescriptionHr: #41474a;
+--helmDescriptionBlockquoteColor: #bbb;
+--helmDescriptionBlockquoteBorder: #8a8f93;
+--helmDescriptionBlockquoteBackground: #3b4348;
+--helmDescriptionHeaders: #3e4147;
+--helmDescriptionH6: #6a737d;
+--helmDescriptionTdBorder: #47494a;
+--helmDescriptionTrBackground: #1c2125;
+--helmDescriptionCodeBackground: #ffffff1a;
+--helmDescriptionPreBackground: #1b1f21;
+--helmDescriptionPreColor: #b4b5b4;
+--colorSuccess: #43a047;
+--colorOk: #4caf50;
+--colorInfo: #3d90ce;
+--colorError: #ce3933;
+--colorSoftError: #e85555;
+--colorWarning: #ff9800;
+--colorVague: #36393e;
+--colorTerminated: #4c5053;
+--dockHeadBackground: #2e3136;
+--dockInfoBackground: #1e2125;
+--dockInfoBorderColor: #303136;
+--dockEditorBackground: #000000;
+--dockEditorTag: #8e97a3;
+--dockEditorKeyword: #ffffff;
+--dockEditorComment: #808080;
+--dockEditorActiveLineBackground: #3a3d41;
+--dockBadgeBackground: #36393e;
+--logsBackground: #000000;
+--logsForeground: #ffffff;
+--logRowHoverBackground: #35373a;
+--terminalBackground: #000000;
+--terminalForeground: #ffffff;
+--terminalCursor: #ffffff;
+--terminalCursorAccent: #000000;
+--terminalSelection: #ffffff77;
+--terminalBlack: #2e3436;
+--terminalRed: #cc0000;
+--terminalGreen: #4e9a06;
+--terminalYellow: #c4a000;
+--terminalBlue: #3465a4;
+--terminalMagenta: #75507b;
+--terminalCyan: #06989a;
+--terminalWhite: #d3d7cf;
+--terminalBrightBlack: #555753;
+--terminalBrightRed: #ef2929;
+--terminalBrightGreen: #8ae234;
+--terminalBrightYellow: #fce94f;
+--terminalBrightBlue: #729fcf;
+--terminalBrightMagenta: #ad7fa8;
+--terminalBrightCyan: #34e2e2;
+--terminalBrightWhite: #eeeeec;
+--dialogTextColor: #87909c;
+--dialogBackground: #ffffff;
+--dialogHeaderBackground: #36393e;
+--dialogFooterBackground: #f4f4f4;
+--drawerTogglerBackground: #2f343a;
+--drawerTitleText: #ffffff;
+--drawerSubtitleBackground: #373a3e;
+--drawerItemNameColor: #87909c;
+--drawerItemValueColor: #a0a0a0;
+--clusterMenuBackground: #252729;
+--clusterMenuBorderColor: #252729;
+--clusterMenuCellBackground: #2e3136;
+--clusterSettingsBackground: #1e2124;
+--addClusterIconColor: #252729;
+--boxShadow: #0000003a;
+--iconActiveColor: #ffffff;
+--iconActiveBackground: #ffffff18;
+--filterAreaBackground: #23272b;
+--chartLiveBarBackground: #00000033;
+--chartStripesColor: #ffffff08;
+--chartCapacityColor: #4c545f;
+--pieChartDefaultColor: #30353a;
+--inputOptionHoverColor: #87909c;
+--inputControlBackground: #1e2125;
+--inputControlBorder: #414448;
+--inputControlHoverBorder: #474a4f;
+--lineProgressBackground: #414448;
+--radioActiveBackground: #36393e;
+--menuActiveBackground: #36393e;
+--menuSelectedOptionBgc: #36393e;
+--canvasBackground: #24292e;
+--scrollBarColor: #5f6064;
+--settingsBackground: #262b2e;
+--settingsColor: #909ba6;
+--navSelectedBackground: #262b2e;
+--navHoverColor: #dcddde;
+--hrColor: #ffffff0f;
+--tooltipBackground: #18191c;
+}
diff --git a/src/renderer/themes/theme-vars.scss b/src/renderer/themes/theme-vars.scss
deleted file mode 100644
index 80792216b9..0000000000
--- a/src/renderer/themes/theme-vars.scss
+++ /dev/null
@@ -1,156 +0,0 @@
-/**
- * Copyright (c) 2021 OpenLens Authors
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
- * the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
-
-// Base colors
-$lensBlue: var(--blue);
-$lensMagenta: var(--magenta);
-$golden: var(--golden);
-$halfGray: var(--halfGray);
-$primary: var(--primary);
-$textColorPrimary: var(--textColorPrimary);
-$textColorSecondary: var(--textColorSecondary);
-$textColorAccent: var(--textColorAccent);
-$borderColor: var(--borderColor);
-$borderFaintColor: var(--borderFaintColor);
-$colorSuccess: var(--colorSuccess);
-$colorOk: var(--colorOk);
-$colorInfo: var(--colorInfo);
-$colorError: var(--colorError);
-$colorSoftError: var(--colorSoftError);
-$colorWarning: var(--colorWarning);
-$colorVague: var(--colorVague);
-$colorTerminated: var(--colorTerminated);
-
-// Layout
-$mainBackground: var(--mainBackground);
-$contentColor: var(--contentColor);
-$layoutBackground: var(--layoutBackground);
-$layoutTabsBackground: var(--layoutTabsBackground);
-$layoutTabsActiveColor: var(--layoutTabsActiveColor);
-
-// Sidebar
-$sidebarLogoBackground: var(--sidebarLogoBackground);
-$sidebarActiveColor: var(--sidebarActiveColor);
-$sidebarSubmenuActiveColor: var(--sidebarSubmenuActiveColor);
-$sidebarBackground: var(--sidebarBackground);
-
-// Elements
-$buttonPrimaryBackground: var(--buttonPrimaryBackground);
-$buttonDefaultBackground: var(--buttonDefaultBackground);
-$buttonLightBackground: var(--buttonLightBackground);
-$buttonAccentBackground: var(--buttonAccentBackground);
-$buttonDisabledBackground: var(--buttonDisabledBackground);
-
-// Tables
-$tableBgcStripe: var(--tableBgcStripe);
-$tableBgcSelected: var(--tableBgcSelected);
-$tableHeaderBackground: var(--tableHeaderBackground);
-$tableHeaderBorderWidth: var(--tableHeaderBorderWidth);
-$tableHeaderBorderColor: var(--tableHeaderBorderColor);
-$tableHeaderColor: var(--tableHeaderColor);
-$tableSelectedRowColor: var(--tableSelectedRowColor);
-
-// Helm
-$helmLogoBackground: var(--helmLogoBackground);
-$helmImgBackground: var(--helmImgBackground);
-$helmStableRepo: var(--helmStableRepo);
-$helmIncubatorRepo: var(--helmIncubatorRepo);
-$helmDescriptionHr: var(--helmDescriptionHr);
-$helmDescriptionBlockquoteColor: var(--helmDescriptionBlockquoteColor);
-$helmDescriptionBlockquoteBorder: var(--helmDescriptionBlockquoteBorder);
-$helmDescriptionBlockquoteBackground: var(--helmDescriptionBlockquoteBackground);
-$helmDescriptionHeaders: var(--helmDescriptionHeaders);
-$helmDescriptionH6: var(--helmDescriptionH6);
-$helmDescriptionTdBorder: var(--helmDescriptionTdBorder);
-$helmDescriptionTrBackground: var(--helmDescriptionTrBackground);
-$helmDescriptionCodeBackground: var(--helmDescriptionCodeBackground);
-$helmDescriptionPreBackground: var(--helmDescriptionPreBackground);
-$helmDescriptionPreColor: var(--helmDescriptionPreColor);
-
-// Dock
-$dockHeadBackground: var(--dockHeadBackground);
-$dockInfoBackground: var(--dockInfoBackground);
-$dockInfoBorderColor: var(--dockInfoBorderColor);
-$dockBadgeBackground: var(--dockBadgeBackground);
-
-// Terminal
-$terminalBackground: var(--terminalBackground);
-$terminalForeground: var(--terminalForeground);
-$terminalCursor: var(--terminalCursor);
-$terminalCursorAccent: var(--terminalCursorAccent);
-$terminalSelection: var(--terminalSelection);
-$terminalBlack: var(--terminalBlack);
-$terminalRed: var(--terminalRed);
-$terminalGreen: var(--terminalGreen);
-$terminalYellow: var(--terminalYellow);
-$terminalBlue: var(--terminalBlue);
-$terminalMagenta: var(--terminalMagenta);
-$terminalCyan: var(--terminalCyan);
-$terminalWhite: var(--terminalWhite);
-$terminalBrightBlack: var(--terminalBrightBlack);
-$terminalBrightRed: var(--terminalBrightRed);
-$terminalBrightGreen: var(--terminalBrightGreen);
-$terminalBrightYellow: var(--terminalBrightYellow);
-$terminalBrightBlue: var(--terminalBrightBlue);
-$terminalBrightMagenta: var(--terminalBrightMagenta);
-$terminalBrightCyan: var(--terminalBrightCyan);
-$terminalBrightWhite: var(--terminalBrightWhite);
-
-// Logs
-$logsBackground: var(--logsBackground);
-$logRowHoverBackground: var(--logRowHoverBackground);
-
-// Dialogs
-$dialogTextColor: var(--dialogTextColor);
-$dialogBackground: var(--dialogBackground);
-$dialogHeaderBackground: var(--dialogHeaderBackground);
-$dialogFooterBackground: var(--dialogFooterBackground);
-
-// Drawer
-$drawerTogglerBackground: var(--drawerTogglerBackground);
-$drawerTitleText: var(--drawerTitleText);
-$drawerSubtitleBackground: var(--drawerSubtitleBackground);
-$drawerItemNameColor: var(--drawerItemNameColor);
-$drawerItemValueColor: var(--drawerItemValueColor);
-
-// Charts
-$chartLiveBarBackground: var(--chartLiveBarBackground);
-$chartStripesColor: var(--chartStripesColor);
-$chartCapacityColor: var(--chartCapacityColor);
-$pieChartDefaultColor: var(--pieChartDefaultColor);
-
-// Cluster Menu
-$clusterMenuBackground: var(--clusterMenuBackground);
-$clusterMenuBorderColor: var(--clusterMenuBorderColor);
-$clusterSettingsBackground: var(--clusterSettingsBackground);
-$addClusterIconColor: var(--addClusterIconColor);
-
-// Misc
-$boxShadow: var(--boxShadow);
-$iconActiveColor: var(--iconActiveColor);
-$iconActiveBackground: var(--iconActiveBackground);
-$filterAreaBackground: var(--filterAreaBackground);
-
-$inputOptionHoverColor: var(--inputOptionHoverColor);
-$lineProgressBackground: var(--lineProgressBackground);
-$radioActiveBackground: var(--radioActiveBackground);
-$menuActiveBackground: var(--menuActiveBackground);
-$menuSelectedOptionBgc: var(--menuSelectedOptionBgc);
diff --git a/yarn.lock b/yarn.lock
index 18bf4ec035..adb7d8ad93 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1606,10 +1606,10 @@
"@types/node" "*"
form-data "^3.0.0"
-"@types/node@*", "@types/node@14.17.27", "@types/node@^14.6.2":
- version "14.17.27"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.27.tgz#5054610d37bb5f6e21342d0e6d24c494231f3b85"
- integrity sha512-94+Ahf9IcaDuJTle/2b+wzvjmutxXAEXU6O81JHblYXUg2BDG+dnBy7VxIPHKAyEEDHzCMQydTJuWvrE+Aanzw==
+"@types/node@*", "@types/node@14.17.33", "@types/node@^14.6.2":
+ version "14.17.33"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.33.tgz#011ee28e38dc7aee1be032ceadf6332a0ab15b12"
+ integrity sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g==
"@types/node@^10.12.0":
version "10.17.24"
@@ -1771,10 +1771,10 @@
dependencies:
"@types/react" "*"
-"@types/react@*", "@types/react@^17.0.33":
- version "17.0.33"
- resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.33.tgz#e01ae3de7613dac1094569880bb3792732203ad5"
- integrity sha512-pLWntxXpDPaU+RTAuSGWGSEL2FRTNyRQOjSWDke/rxRg14ncsZvx8AKWMWZqvc1UOaJIAoObdZhAWvRaHFi5rw==
+"@types/react@*", "@types/react@^17.0.34":
+ version "17.0.34"
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.34.tgz#797b66d359b692e3f19991b6b07e4b0c706c0102"
+ integrity sha512-46FEGrMjc2+8XhHXILr+3+/sTe3OfzSPU9YGKILLrUYbQ1CLQC9Daqo1KzENGXAWwrFwiY0l4ZbF20gRvgpWTg==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
@@ -9761,10 +9761,9 @@ node-fetch@2.6.1:
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
-node-fetch@^2.6.6:
+node-fetch@lensapp/node-fetch#2.x:
version "2.6.6"
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89"
- integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==
+ resolved "https://codeload.github.com/lensapp/node-fetch/tar.gz/c869d40ba7dd3bce392c34e36118c225b6ada8fb"
dependencies:
whatwg-url "^5.0.0"
@@ -13212,10 +13211,10 @@ table@^6.0.9:
string-width "^4.2.3"
strip-ansi "^6.0.1"
-tailwindcss@^2.2.17:
- version "2.2.17"
- resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-2.2.17.tgz#c6332731f9ff1b6628ff589c95c38685347775e3"
- integrity sha512-WgRpn+Pxn7eWqlruxnxEbL9ByVRWi3iC10z4b6dW0zSdnkPVC4hPMSWLQkkW8GCyBIv/vbJ0bxIi9dVrl4CfoA==
+tailwindcss@^2.2.19:
+ version "2.2.19"
+ resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-2.2.19.tgz#540e464832cd462bb9649c1484b0a38315c2653c"
+ integrity sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==
dependencies:
arg "^5.0.1"
bytes "^3.0.0"