浏览代码

Updates graph push pull icon color

main
Keith Daulton 1年前
父节点
当前提交
20672150a4
共有 2 个文件被更改,包括 17 次插入1 次删除
  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 查看文件

@ -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 查看文件

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

正在加载...
取消
保存