From b477b8a7bbfeb08f3baf9bc31cf5df4ad576ceae Mon Sep 17 00:00:00 2001 From: frantic1048 Date: Wed, 16 Aug 2017 20:35:12 +0800 Subject: [PATCH] adapt FilePatchView --- index.less | 1 + styles/buttons.less | 4 ++++ styles/github-PaneView.less | 6 ++++++ styles/tab-git.less | 8 +++++--- styles/ui-variables.less | 4 ++-- 5 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 styles/github-PaneView.less diff --git a/index.less b/index.less index 8adecc1..a9f0ef1 100644 --- a/index.less +++ b/index.less @@ -8,6 +8,7 @@ @import "styles/overlays"; @import "styles/panels"; @import "styles/panes"; +@import "styles/github-PaneView"; @import "styles/progress"; @import "styles/sites"; @import "styles/tabs"; diff --git a/styles/buttons.less b/styles/buttons.less index b989646..9929281 100644 --- a/styles/buttons.less +++ b/styles/buttons.less @@ -68,6 +68,10 @@ .btn-variant(@background-color-error); } +.btn-group > .btn { + border-color: @button-border-color; +} + .caret { border-top: 5px solid #fff; margin-top: -1px; diff --git a/styles/github-PaneView.less b/styles/github-PaneView.less new file mode 100644 index 0000000..6a49828 --- /dev/null +++ b/styles/github-PaneView.less @@ -0,0 +1,6 @@ +.github-FilePatchView-header, +.github-HunkView, +.github-HunkView-header, +.github-HunkView-lineNumber { + border-color: @button-border-color; +} diff --git a/styles/tab-git.less b/styles/tab-git.less index 64822a3..53088d4 100644 --- a/styles/tab-git.less +++ b/styles/tab-git.less @@ -1,9 +1,11 @@ // Atom git tab .github-CommitView-editor { - background: transparent; + background: none; } -.github-CommitView{ - border-top-color: rgba(0 ,0 ,0 ,0.2); +.github-CommitView, +.github-StagingView-headerButton, +.github-StagingView-header{ + border-color: @button-border-color; } diff --git a/styles/ui-variables.less b/styles/ui-variables.less index 205667f..36c9046 100644 --- a/styles/ui-variables.less +++ b/styles/ui-variables.less @@ -26,7 +26,7 @@ @app-background-color: rgb(51, 51, 51); @base-background-color: rgba(0, 0, 0, 0.1); -@base-border-color: rgba(0, 0, 0, 0.5); +@base-border-color: rgba(0, 0, 0, 0.2); @pane-item-background-color: @base-background-color; @pane-item-border-color: rgba(0, 0, 0, 0.5); @@ -49,7 +49,7 @@ @button-background-color: rgba(0, 0, 0, 0.3); @button-background-color-hover: lighten(@button-background-color, 15%); @button-background-color-selected: lighten(@button-background-color, 25%); -@button-border-color: @base-border-color; +@button-border-color: rgba(0, 0, 0, 0.1); @tab-bar-background-color: rgba(0, 0, 0, 0); @tab-bar-border-color: darken(@tab-background-color-active, 10%);