Browse Source

Updates graph push pull icon color

main
Keith Daulton 1 year ago
parent
commit
20672150a4
2 changed files with 17 additions and 1 deletions
  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 View File

@ -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 View File

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

Loading…
Cancel
Save