Skip to content

Commit

Permalink
fix #4633: set git diff title icon
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Mar 21, 2019
1 parent 2519e53 commit 6779ef7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/browser/style/sidepanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
opacity: 0.6;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: 28px;
-webkit-mask-size: 28px;
}

.p-TabBar.theia-app-sides .file-icon.p-TabBar-tabIcon:hover,
Expand Down
1 change: 1 addition & 0 deletions packages/git/src/browser/diff/git-diff-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class GitDiffWidget extends GitNavigableListWidget<GitFileChangeNode> imp
this.id = GIT_DIFF;
this.scrollContainer = 'git-diff-list-container';
this.title.label = 'Diff';
this.title.iconClass = 'theia-git-diff-icon';

this.addClass('theia-git');
}
Expand Down
5 changes: 5 additions & 0 deletions packages/git/src/browser/style/diff.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
color: var(--theia-ui-font-color1);
}

.theia-git-diff-icon {
-webkit-mask: url('git-diff.svg');
mask: url('git-diff.svg');
}

.theia-git .git-diff-container {
display: flex;
flex-direction: column;
Expand Down
6 changes: 6 additions & 0 deletions packages/git/src/browser/style/git-diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6779ef7

Please sign in to comment.