Bläddra i källkod

Updates graph push pull icon color

main
Keith Daulton 1 år sedan
förälder
incheckning
20672150a4
2 ändrade filer med 17 tillägg och 1 borttagningar
  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 Visa fil

@ -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 Visa fil

@ -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;

Laddar…
Avbryt
Spara