Pārlūkot izejas kodu

Updates graph push pull icon color

main
Keith Daulton pirms 1 gada
vecāks
revīzija
20672150a4
2 mainītis faili ar 17 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      src/webviews/apps/plus/graph/GraphWrapper.tsx
  2. +12
    -0
      src/webviews/apps/plus/graph/graph.scss

+ 5
- 1
src/webviews/apps/plus/graph/GraphWrapper.tsx Parādīt failu

@ -1130,7 +1130,11 @@ export function GraphWrapper({
return (
<a href={action} className="action-button" title={tooltip}>
<span className={`codicon codicon-${icon} action-button__icon`}></span>
<span
className={`codicon codicon-${icon} action-button__icon${isBehind ? ' is-behind' : ''}${
isAhead ? ' is-ahead' : ''
}`}
></span>
{label}
{fetchedText && <span className="action-button__small">(Last fetched {fetchedText})</span>}
{(isAhead || isBehind) && (

+ 12
- 0
src/webviews/apps/plus/graph/graph.scss Parādīt failu

@ -232,6 +232,18 @@ button:not([disabled]),
width: 1.6rem;
}
&__icon {
&.is-ahead {
color: var(--vscode-gitlens-unpublishedChangesIconColor);
}
&.is-behind {
color: var(--vscode-gitlens-unpulledChangesIconColor);
}
&.is-ahead.is-behind {
color: var(--vscode-gitlens-decorations\.branchDivergedForegroundColor);
}
}
&__more,
&__more.codicon[class*='codicon-'] {
font-size: 1rem;

Notiek ielāde…
Atcelt
Saglabāt