Skip to content

Commit

Permalink
Fix the design of buttons of TopBar on dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
asmsuechan committed Mar 19, 2017
1 parent bcf2723 commit 4055ce1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions browser/main/Detail/MarkdownNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ body[data-theme="dark"]
box-shadow none

.control-lockButton
colorDarkDefaultButton()
colorDarkTopBarButton()
border-color $ui-dark-borderColor
background-color $ui-dark-noteList-backgroundColor
&:active
Expand All @@ -85,8 +85,9 @@ body[data-theme="dark"]
darkTooltip()

.control-trashButton
navDarkButtonColor()
colorDarkTopBarButton()
border-color $ui-dark-borderColor
background-color $ui-dark-noteList-backgroundColor
&:active
border-color $ui-dark-button--focus-borderColor
&:focus
Expand Down
11 changes: 11 additions & 0 deletions browser/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ $ui-dark-button--active-color = white
$ui-dark-button--active-backgroundColor = #6AA5E9
$ui-dark-button--hover-backgroundColor = lighten($ui-dark-backgroundColor, 10%)
$ui-dark-button--focus-borderColor = lighten(#369DCD, 25%)
$ui-dark-topbar-button-color = #939395

$dark-default-button-background = $ui-dark-backgroundColor
$dark-default-button-background--hover = $ui-dark-button--hover-backgroundColor
Expand Down Expand Up @@ -190,6 +191,16 @@ navDarkButtonColor()
background-color $ui-dark-button--active-backgroundColor
color $ui-dark-button--active-color

colorDarkTopBarButton()
border-color $ui-dark-borderColor
color $ui-dark-topbar-button-color
background-color $dark-default-button-background
&:hover
background-color $dark-default-button-background--hover
&:active
&:active:hover
background-color $ui-dark-button--active-backgroundColor

$ui-dark-tooltip-text-color = white
$ui-dark-tooltip-backgroundColor = alpha(#444, 70%)
$ui-dark-tooltip-button-backgroundColor = #D1D1D1
Expand Down

0 comments on commit 4055ce1

Please sign in to comment.