Skip to content

Commit 5693a58

Browse files
committed
Revamps GitLens Welcome page
Moves Support GitLens up in README Removes Support GitLens from Settings page
1 parent b7da064 commit 5693a58

File tree

5 files changed

+490
-876
lines changed

5 files changed

+490
-876
lines changed

README.md

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
1313
<br />
1414

15+
# Support GitLens
16+
17+
While GitLens is generously offered to everyone free of charge, if you find it useful, please consider [**supporting**](https://gitlens.amod.io/#support-gitlens) it.
18+
19+
- [**Become a Sponsor**](https://www.patreon.com/eamodio 'Become a sponsor on Patreon') &mdash; join the growing group of generous [backers](https://github.com/eamodio/vscode-gitlens/blob/master/BACKERS.md)
20+
- [**Donate via PayPal**](https://www.paypal.me/eamodio 'Donate via PayPal') or [**Donate via Cash App**](https://cash.me/$eamodio 'Donate via Cash App')
21+
22+
Also please [write a review](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens#review-details 'Write a review'), [star or fork me on GitHub](https://github.com/eamodio/vscode-gitlens 'Star or fork me on GitHub'), and [follow me on Twitter](https://twitter.com/eamodio 'Follow me on Twitter')
23+
1524
# What's new in GitLens 9
1625

1726
## 9.0 &mdash; November 2018
@@ -55,60 +64,42 @@ See the [release notes](https://github.com/eamodio/vscode-gitlens/blob/master/CH
5564
# GitLens
5665

5766
[GitLens](http://gitlens.amod.io 'Learn more about GitLens') is an [open-source](https://github.com/eamodio/vscode-gitlens 'Open GitLens on GitHub') extension for [Visual Studio Code](https://code.visualstudio.com) created by [Eric Amodio](http://www.amod.io 'Learn more about Eric').
58-
While GitLens is generously offered to everyone free of charge, if you find it useful please consider [supporting](#support-gitlens 'Support GitLens') it. &#x2764;
5967

60-
GitLens simply helps you better understand code. Quickly glimpse into whom, why, and when a line or code block was changed. Jump back through history to gain further insights as to how and why the code evolved. Explore the history and evolution of a codebase.
68+
GitLens simply helps you **better understand code**. Quickly glimpse into whom, why, and when a line or code block was changed. Jump back through history to **gain further insights** as to how and why the code evolved. Explore the history and evolution of a codebase.
6169

62-
Here are just some of the features that GitLens provides,
70+
While GitLens is **powerful and feature rich**, it is also [highly customizable](#gitlens-settings- 'Jump to the GitLens settings docs') to meet your specific needs &mdash; find code lens intrusive or the current line blame annotation distracting &mdash; no problem, it is quick and easy to turn them off or change how they behave via the built-in [_GitLens Settings_ editor](#configuration 'Jump to Configuration'), an **interactive editor** covering many of GitLens' powerful settings. While for more advanced customizations, refer to the [GitLens settings docs](#gitlens-settings- 'Jump to the GitLens settings docs') and edit your vscode [user settings](https://code.visualstudio.com/docs/getstarted/settings 'Open User settings').
6371

64-
- an unobtrusive [current line blame](#current-line-blame- 'Jump to the Current Line Blame') annotation at the end of the line with detailed blame information accessible via [hovers](#hovers- 'Jump to Hovers')
65-
- on-demand [gutter blame](#gutter-blame- 'Jump to the Gutter Blame') annotations, including a heatmap, for the whole file
66-
- [authorship code lens](#code-lens- 'Jump to the Code Lens') showing the most recent commit and # of authors to the top of files and/or on code blocks
67-
- on-demand [gutter heatmap](#gutter-heatmap- 'Jump to the Gutter Heatmap') annotations to show how recently lines were changed, relative to all the other changes in the file and to now (hot vs. cold)
68-
- on-demand [recent changes](#recent-changes- 'Jump to the Recent Changes') annotations to highlight lines changed by the most recent commit
69-
- a [status bar blame](#status-bar-blame- 'Jump to the Status Bar Blame') annotation showing author and date for the current line
70-
- many rich Side Bar views
71-
- a [_Repositories_ view](#repositories-view- 'Jump to the Repositories view') to visualize, navigate, and explore Git repositories
72-
- a [_File History_ view](#file-history-view- 'Jump to the File History view') to visualize, navigate, and explore the revision history of the current file
73-
- a [_Line History_ view](#line-history-view- 'Jump to the Line History view') to visualize, navigate, and explore the revision history of the selected lines of current file
74-
- a [_Search Commits_ view](#search-commits-view- 'Jump to the Search Commits view') to search and explore commit histories by message, author, files, id, etc
75-
- a [_Compare_ view](#compare-view- 'Jump to the Compare view') to visualize comparisons between branches, tags, commits, and more
76-
- many [powerful commands](#navigate-and-explore- 'Jump to the Navigate and Explorer') for exploring commits and histories, comparing and navigating revisions, stash access, repository status, etc
77-
- user-defined [modes](#modes- 'Jump to the Modes') for quickly toggling between sets of settings
78-
- and so much [more](#and-more- 'Jump to More')
72+
Here are just some of the **features** that GitLens provides,
7973

80-
GitLens is powerful, feature rich, and also [highly customizable](#gitlens-settings- 'Jump to the GitLens settings docs') to meet your specific needs &mdash; find code lens intrusive or the current line blame annotation distracting &mdash; no problem, it is quick and easy to turn them off or change how they behave via the built-in [_GitLens Settings_ editor](#configuration 'Jump to Configuration'), an interactive editor covering many of GitLens' powerful settings. While for more advanced customizations, refer to the [GitLens settings docs](#gitlens-settings- 'Jump to the GitLens settings docs') and edit your vscode [user settings](https://code.visualstudio.com/docs/getstarted/settings 'Open User settings').
74+
- an unobtrusive [**current line blame**](#current-line-blame- 'Jump to the Current Line Blame') annotation at the end of the line with detailed blame information accessible via [**hovers**](#hovers- 'Jump to Hovers')
75+
- on-demand [**gutter blame**](#gutter-blame- 'Jump to the Gutter Blame') annotations, including a heatmap, for the whole file
76+
- [**authorship code lens**](#code-lens- 'Jump to the Code Lens') showing the most recent commit and # of authors to the top of files and/or on code blocks
77+
- on-demand [**gutter heatmap**](#gutter-heatmap- 'Jump to the Gutter Heatmap') annotations to show how recently lines were changed, relative to all the other changes in the file and to now (hot vs. cold)
78+
- on-demand [**recent changes**](#recent-changes- 'Jump to the Recent Changes') annotations to highlight lines changed by the most recent commit
79+
- a [**status bar blame**](#status-bar-blame- 'Jump to the Status Bar Blame') annotation showing author and date for the current line
80+
- many rich Side Bar views
81+
- a [**_Repositories_ view**](#repositories-view- 'Jump to the Repositories view') to visualize, navigate, and explore Git repositories
82+
- a [**_File History_ view**](#file-history-view- 'Jump to the File History view') to visualize, navigate, and explore the revision history of the current file
83+
- a [**_Line History_ view**](#line-history-view- 'Jump to the Line History view') to visualize, navigate, and explore the revision history of the selected lines of current file
84+
- a [**_Search Commits_ view**](#search-commits-view- 'Jump to the Search Commits view') to search and explore commit histories by message, author, files, id, etc
85+
- a [**_Compare_ view**](#compare-view- 'Jump to the Compare view') to visualize comparisons between branches, tags, commits, and more
86+
- many [**powerful commands**](#navigate-and-explore- 'Jump to the Navigate and Explorer') for exploring commits and histories, comparing and navigating revisions, stash access, repository status, etc
87+
- user-defined [**modes**](#modes- 'Jump to the Modes') for quickly toggling between sets of settings
88+
- and so much [**more**](#and-more- 'Jump to More')
8189

8290
<p align="center">
8391
<br />
8492
<img src="https://raw.githubusercontent.com/eamodio/vscode-gitlens/develop/images/docs/gitlens-preview.gif" alt="GitLens Preview" />
8593
<br />
8694
</p>
8795

88-
# Support GitLens
89-
90-
While GitLens is generously offered to everyone free of charge, if you find it useful please consider supporting it.
91-
92-
I've been building GitLens in my spare time<sup><a title="nights and weekends, i.e. trading sleep for time">1</a></sup> for over 2 years now.
93-
From its very humble beginnings, GitLens has grown wildly beyond my expectations &mdash; in both its reach as well as its demands on my time and attention.
94-
95-
To my incredible backers &mdash; thank you so much for your contributions. I am truly humbled by your generosity and support.
96-
97-
### Show Your Support &#x2764;
98-
99-
Please join in supporting GitLens by considering the following:
100-
101-
- [Become a Sponsor](https://www.patreon.com/eamodio 'Become a sponsor on Patreon') &mdash; join the growing group of generous [backers](https://github.com/eamodio/vscode-gitlens/blob/master/BACKERS.md)
102-
- [Donate via PayPal](https://www.paypal.me/eamodio 'Donate via PayPal') or [Donate via Cash App](https://cash.me/$eamodio 'Donate via Cash App')
103-
- [Write a review](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens#review-details 'Write a review'), [Star or Fork me on GitHub](https://github.com/eamodio/vscode-gitlens 'Star or fork me on GitHub'), and [Follow me on Twitter](https://twitter.com/eamodio 'Follow me on Twitter')
104-
10596
# Configuration
10697

10798
<p align="center">
10899
<img src="https://raw.githubusercontent.com/eamodio/vscode-gitlens/develop/images/docs/settings.png" alt="GitLens Interactive Settings" />
109100
</p>
110101

111-
GitLens has a built-in interactive settings editor which provides an easy-to-use interface to configure many of GitLens' powerful features. It can be accessed via the _Open Settings_ (`gitlens.showSettingsPage`) command from the [_Command Palette_](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).
102+
GitLens has a built-in **interactive settings editor** which provides an easy-to-use interface to configure many of GitLens' powerful features. It can be accessed via the _Open Settings_ (`gitlens.showSettingsPage`) command from the [_Command Palette_](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).
112103

113104
For more advanced customizations, refer to the [settings documentation](#gitlens-settings- 'Jump to the GitLens settings docs') below.
114105

src/ui/scss/main.scss

Lines changed: 55 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -370,17 +370,29 @@ ul {
370370
}
371371

372372
.button-group--support-gitlens-sidebar {
373-
font-size: 0.8em;
373+
margin-bottom: 1em;
374374

375375
& .button {
376376
font-weight: 400;
377377
margin: 0.75em 0;
378+
text-align: center;
379+
width: 100%;
380+
}
381+
}
382+
383+
.about {
384+
font-size: 1em;
385+
color: var(--color--75);
386+
margin: 3em 1em;
387+
388+
b {
389+
color: var(--color--85);
378390
}
379391
}
380392

381393
.changelog {
382394
border-radius: 1em;
383-
margin: 2em 4em 2em 2em;
395+
margin: 2em;
384396

385397
.vscode-light & {
386398
background-color: var(--background-color--darken-05);
@@ -401,6 +413,7 @@ ul {
401413
display: inline-block;
402414
font-size: 11px;
403415
font-weight: 600;
416+
line-height: 1.7;
404417
margin-right: 1.25em;
405418
padding: 2px 5px;
406419
text-align: center;
@@ -424,7 +437,7 @@ ul {
424437
}
425438

426439
.changelog__date {
427-
font-size: 0.8em;
440+
font-size: 0.9em;
428441
font-variant: small-caps;
429442
font-weight: 600;
430443
margin-left: -7px;
@@ -435,8 +448,9 @@ ul {
435448
.changelog__details {
436449
align-items: center;
437450
display: flex;
451+
font-size: 0.9em;
438452
justify-content: center;
439-
padding: 0 7em;
453+
padding-left: 8em;
440454
position: relative;
441455

442456
&:before {
@@ -468,20 +482,19 @@ ul {
468482
}
469483

470484
.changelog__image {
471-
margin: 1em 0;
485+
margin: 1em 0 0 0;
472486
max-width: 65%;
473487
}
474488

475489
.changelog__list {
476490
flex: 100% 0 1;
477-
font-size: 1.2em;
491+
font-size: 1.1em;
478492
font-weight: 200;
479-
line-height: 1.7;
480493
list-style-type: none;
481494
margin: 1em;
482495

483496
& li {
484-
margin-bottom: 0.5em;
497+
margin-bottom: 1em;
485498
}
486499

487500
& code {
@@ -502,23 +515,9 @@ ul {
502515
}
503516
}
504517

505-
.changelog__scroller {
506-
flex: 100% 0 0;
507-
margin: 1.5em 0 0 0;
508-
max-height: 400px;
509-
overflow-y: auto;
510-
511-
.vscode-dark & {
512-
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
513-
}
514-
515-
.vscode-light & {
516-
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
517-
}
518-
}
519-
520518
.changelog__title {
521519
flex: 100% 0 0;
520+
font-size: 2em;
522521
text-align: center;
523522
}
524523

@@ -557,7 +556,7 @@ ul {
557556
display: flex;
558557
flex-wrap: wrap;
559558
justify-content: center;
560-
margin-bottom: 3em;
559+
margin: 3em 0;
561560

562561
& p {
563562
margin-top: -1em;
@@ -785,7 +784,7 @@ ul {
785784
display: flex;
786785
flex: 1 1 100%;
787786
justify-content: flex-end;
788-
margin: 1.5em 208px 0 0; // 208px ~ the width of the sidebar
787+
margin: 1.5em 174px 0 0; // 174px ~ the width of the sidebar
789788
white-space: nowrap;
790789

791790
@media all and (max-width: 860px) {
@@ -878,14 +877,15 @@ ul {
878877

879878
.section-group__content {
880879
flex: auto 1 1;
881-
margin-bottom: 100%;
882880
min-width: 0;
883881
}
884882

883+
.section-group__content--full-scroll {
884+
margin-bottom: 100%;
885+
}
886+
885887
.section-group__sidebar {
886888
align-self: flex-start;
887-
margin: -6.4em 0 0 3em;
888-
max-width: 179px;
889889
position: sticky;
890890
top: 0;
891891
z-index: 2;
@@ -896,13 +896,17 @@ ul {
896896
}
897897

898898
.section-group__sidebar--settings {
899+
flex: 145px 0 0;
900+
margin: -4em 0 0 3em;
901+
899902
@media all and (max-width: 860px) {
900903
display: none;
901904
}
902905
}
903906

904907
.section-group__sidebar--welcome {
905-
margin-right: 3em;
908+
flex: 196px 0 0;
909+
margin: 1em 0 0 0.5em;
906910

907911
@media all and (max-width: 560px) {
908912
display: none;
@@ -914,7 +918,7 @@ ul {
914918
font-weight: 200;
915919

916920
p {
917-
margin: 1em 0.25em;
921+
margin: 0.5em 0.25em 1em 0.25em;
918922
}
919923
}
920924

@@ -999,6 +1003,21 @@ ul {
9991003
}
10001004
}
10011005

1006+
.settings-group__setting--small {
1007+
color: var(--color--75);
1008+
font-size: 0.8em;
1009+
margin-top: -0.75em;
1010+
1011+
input[type='checkbox'] {
1012+
flex: 12px 0 0;
1013+
height: 12px;
1014+
margin: 0 0.75em 0 0;
1015+
position: relative;
1016+
top: 3px;
1017+
width: 12px;
1018+
}
1019+
}
1020+
10021021
.setting__hint {
10031022
color: var(--color--50);
10041023
font-size: 0.9em;
@@ -1013,6 +1032,12 @@ ul {
10131032
margin-top: 1em;
10141033
}
10151034

1035+
.sidebar-group__message {
1036+
font-weight: 400;
1037+
opacity: 0.5;
1038+
text-align: center;
1039+
}
1040+
10161041
.sponsors {
10171042
font-size: 0.8em;
10181043
}

src/ui/settings/index.html

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h2 class="page-header__title">Settings</h2>
5353
<a
5454
title="See the GitLens settings docs"
5555
href="https://github.com/eamodio/vscode-gitlens/tree/develop/#gitlens-settings-"
56-
>GitLens settings docs</a
56+
>GitLens docs</a
5757
>
5858
and edit your
5959
<a class="command" title="Open User Settings" href="command:workbench.action.openGlobalSettings"
@@ -63,7 +63,7 @@ <h2 class="page-header__title">Settings</h2>
6363
</div>
6464

6565
<div class="section-groups">
66-
<div class="section-group__content">
66+
<div class="section-group__content section-group__content--full-scroll">
6767
<section id="general">
6868
<div class="section__header">
6969
<h2 class="section__title">
@@ -2780,53 +2780,6 @@ <h2>Jump to</h2>
27802780
<li><a class="jump-to" href="#modes" title="Jump to Modes settings">Modes</a></li>
27812781
</ul>
27822782
</div>
2783-
<div class="sidebar-group">
2784-
<h2>Show Your Support</h2>
2785-
<div class="button-group button-group--support-gitlens-sidebar">
2786-
<a
2787-
class="button button--flat-primary"
2788-
title="Become a sponsor on Patreon"
2789-
href="https://www.patreon.com/eamodio"
2790-
target="_blank"
2791-
>Become a Sponsor</a
2792-
>
2793-
<a
2794-
class="button button--flat-primary"
2795-
title="Donate via PayPal"
2796-
href="https://www.paypal.me/eamodio"
2797-
target="_blank"
2798-
>Donate via PayPal</a
2799-
>
2800-
<a
2801-
class="button button--flat-primary"
2802-
title="Donate via Cash App"
2803-
href="https://cash.me/$eamodio"
2804-
target="_blank"
2805-
>Donate via Cash App</a
2806-
>
2807-
</div>
2808-
<ul>
2809-
<li>
2810-
<a
2811-
title="Write a review"
2812-
href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens#review-details"
2813-
>Write a Review</a
2814-
>
2815-
</li>
2816-
<li>
2817-
<a
2818-
title="Star or fork me on GitHub"
2819-
href="https://github.com/eamodio/vscode-gitlens"
2820-
>Star or Fork me on GitHub</a
2821-
>
2822-
</li>
2823-
<li>
2824-
<a title="Follow me on Twitter" href="https://twitter.com/eamodio"
2825-
>Follow me on Twitter</a
2826-
>
2827-
</li>
2828-
</ul>
2829-
</div>
28302783
<div class="sidebar-group">
28312784
<h2>Help</h2>
28322785
<ul>

src/ui/shared/app-base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ export abstract class App<TBootstrap extends Bootstrap> {
308308

309309
const bodyStyle = body.style;
310310
let color = computedStyle.getPropertyValue('--color').trim();
311+
bodyStyle.setProperty('--color--85', opacity(color, 85));
311312
bodyStyle.setProperty('--color--75', opacity(color, 75));
312313
bodyStyle.setProperty('--color--50', opacity(color, 50));
313314

0 commit comments

Comments
 (0)