1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing log tab layout colors (#1995)

* Making "since" date visible as bolded text

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing colors in log tab elements

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-01-21 10:38:49 +03:00 committed by GitHub
parent 55759fb3b8
commit 64be4ee948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 12 deletions

View File

@ -1,12 +1,16 @@
.InfoPanel {
@include hidden-scrollbar;
background: $dockInfoBackground;
padding: $padding $padding * 2;
background: var(--dockInfoBackground);
padding: var(--padding) calc(var(--padding) * 2);
flex-shrink: 0;
.Spinner {
margin-right: $padding;
margin-right: var(--padding);
}
.Badge {
background-color: var(--dockBadgeBackground);
}
> .controls {
@ -15,8 +19,8 @@
&:not(:empty) + .info {
min-height: 25px;
padding-left: $padding;
padding-right: $padding;
padding-left: var(--padding);
padding-right: var(--padding);
}
}
}

View File

@ -41,7 +41,12 @@ export const LogControls = observer((props: Props) => {
return (
<div className={cssNames("LogControls flex gaps align-center justify-space-between wrap")}>
<div className="time-range">
{since && `Logs from ${new Date(since[0]).toLocaleString()}`}
{since && (
<span>
Logs from{" "}
<b>{new Date(since[0]).toLocaleString()}</b>
</span>
)}
</div>
<div className="flex gaps align-center">
<Checkbox

View File

@ -3,11 +3,9 @@
html {
$menuBackgroundColor: $contentColor;
$menuSelectedOptionBgc: $layoutBackground;
--select-menu-bgc: #{$menuBackgroundColor};
--select-menu-border-color: #{$halfGray};
--select-option-selected-bgc: #{$menuSelectedOptionBgc};
--select-option-selected-color: #{$selectOptionHoveredColor};
--select-option-focused-bgc: #{$colorInfo};
--select-option-focused-color: #{$textColorAccent};
@ -95,7 +93,7 @@ html {
}
&--is-selected {
background: var(--select-option-selected-bgc);
background: var(--menuSelectedOptionBgc);
color: var(--select-option-selected-color);
}
@ -148,7 +146,6 @@ html {
&.theme-light {
--select-menu-bgc: white;
--select-option-selected-color: $textColorSecondary;
--select-option-selected-bgc: $textColorSecondary;
.Select {
&__multi-value {

View File

@ -65,6 +65,7 @@
"dockEditorKeyword": "#ffffff",
"dockEditorComment": "#808080",
"dockEditorActiveLineBackground": "#3a3d41",
"dockBadgeBackground": "#36393e",
"logsBackground": "#000000",
"logsForeground": "#ffffff",
"logRowHoverBackground": "#35373a",
@ -114,6 +115,7 @@
"lineProgressBackground": "#414448",
"radioActiveBackground": "#36393e",
"menuActiveBackground": "#36393e",
"menuSelectedOptionBgc": "#36393e",
"scrollBarColor": "#5f6064"
}
}

View File

@ -59,13 +59,14 @@
"colorVague": "#ededed",
"colorTerminated": "#9dabb5",
"dockHeadBackground": "#e8e8e8",
"dockInfoBackground": "#e8e8e8",
"dockInfoBackground": "#f3f3f3",
"dockInfoBorderColor": "#c9cfd3",
"dockEditorBackground": "#24292e",
"dockEditorTag": "#8e97a3",
"dockEditorKeyword": "#ffffff",
"dockEditorComment": "#808080",
"dockEditorActiveLineBackground": "#3a3d41",
"dockBadgeBackground": "#dedede",
"logsBackground": "#24292e",
"logsForeground": "#ffffff",
"logRowHoverBackground": "#35373a",
@ -115,6 +116,7 @@
"lineProgressBackground": "#e8e8e8",
"radioActiveBackground": "#f1f1f1",
"menuActiveBackground": "#e8e8e8",
"menuSelectedOptionBgc": "#e8e8e8",
"scrollBarColor": "#bbbbbb",
"canvasBackground": "#24292e"
}

View File

@ -67,6 +67,7 @@ $helmDescriptionPreColor: var(--helmDescriptionPreColor);
$dockHeadBackground: var(--dockHeadBackground);
$dockInfoBackground: var(--dockInfoBackground);
$dockInfoBorderColor: var(--dockInfoBorderColor);
$dockBadgeBackground: var(--dockBadgeBackground);
// Terminal
$terminalBackground: var(--terminalBackground);
@ -129,4 +130,5 @@ $filterAreaBackground: var(--filterAreaBackground);
$selectOptionHoveredColor: var(--selectOptionHoveredColor);
$lineProgressBackground: var(--lineProgressBackground);
$radioActiveBackground: var(--radioActiveBackground);
$menuActiveBackground: var(--menuActiveBackground);
$menuActiveBackground: var(--menuActiveBackground);
$menuSelectedOptionBgc: var(--menuSelectedOptionBgc);