mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Add Solarized Dark theme
This commit is contained in:
@@ -29,3 +29,15 @@ body[data-theme="dark"]
|
|||||||
transition 0.2s
|
transition 0.2s
|
||||||
&:hover
|
&:hover
|
||||||
color #5CB85C
|
color #5CB85C
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.notification-area
|
||||||
|
background-color none
|
||||||
|
|
||||||
|
.notification-link
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
border none
|
||||||
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
&:hover
|
||||||
|
color #5CB85C
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ body[data-theme="dark"]
|
|||||||
background-color: #1EC38B
|
background-color: #1EC38B
|
||||||
|
|
||||||
.percentageText
|
.percentageText
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.percentageBar
|
||||||
|
background-color #002b36
|
||||||
|
|
||||||
|
.progressBar
|
||||||
|
background-color: #2aa198
|
||||||
|
|
||||||
|
.percentageText
|
||||||
|
color #fdf6e3
|
||||||
@@ -334,7 +334,8 @@ body[data-theme="dark"]
|
|||||||
background-color themeDarkBorder
|
background-color themeDarkBorder
|
||||||
color themeDarkText
|
color themeDarkText
|
||||||
|
|
||||||
|
|
||||||
body[data-theme="solarized-dark"]
|
body[data-theme="solarized-dark"]
|
||||||
color themeDarkText
|
color $ui-solarized-dark-text-color
|
||||||
border-color themeDarkBorder
|
border-color themeDarkBorder
|
||||||
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
||||||
@@ -22,3 +22,9 @@ body[data-theme="dark"]
|
|||||||
background-color $ui-dark-backgroundColor
|
background-color $ui-dark-backgroundColor
|
||||||
.empty-message
|
.empty-message
|
||||||
color $ui-dark-inactive-text-color
|
color $ui-dark-inactive-text-color
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
||||||
|
.empty-message
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
.root
|
.root
|
||||||
absolute top right bottom
|
absolute top right bottom
|
||||||
border-left 1px solid alpha(#DEDEDE, 60%)
|
border-left 1px solid $ui-solarized-dark-borderColor
|
||||||
background-color $ui-noteDetail-backgroundColor
|
background-color $ui-noteDetail-backgroundColor
|
||||||
box-shadow none
|
box-shadow none
|
||||||
padding 20px 40px
|
padding 20px 40px
|
||||||
|
|||||||
@@ -101,3 +101,4 @@ body[data-theme="solarized-dark"]
|
|||||||
.info
|
.info
|
||||||
border-color $ui-solarized-dark-borderColor
|
border-color $ui-solarized-dark-borderColor
|
||||||
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
||||||
|
|
||||||
|
|||||||
@@ -63,4 +63,20 @@ body[data-theme="dark"]
|
|||||||
.newTag
|
.newTag
|
||||||
border-color none
|
border-color none
|
||||||
background-color transparent
|
background-color transparent
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.tag
|
||||||
|
background-color $ui-solarized-dark-tag-backgroundColor
|
||||||
|
|
||||||
|
.tag-removeButton
|
||||||
|
border-color $ui-button--focus-borderColor
|
||||||
|
background-color transparent
|
||||||
|
|
||||||
|
.tag-label
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.newTag
|
||||||
|
border-color none
|
||||||
|
background-color transparent
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
@@ -166,4 +166,5 @@ body[data-theme="dark"]
|
|||||||
|
|
||||||
body[data-theme="solarized-dark"]
|
body[data-theme="solarized-dark"]
|
||||||
.root, .root--folded
|
.root, .root--folded
|
||||||
background-color $ui-dark-backgroundColor
|
background-color $ui-solarized-dark-backgroundColor
|
||||||
|
border-right 1px solid $ui-solarized-dark-borderColor
|
||||||
|
|||||||
@@ -179,4 +179,8 @@ body[data-theme="dark"]
|
|||||||
background-color alpha($ui-dark-button--active-backgroundColor, 60%)
|
background-color alpha($ui-dark-button--active-backgroundColor, 60%)
|
||||||
&:active, &:active:hover
|
&:active, &:active:hover
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -85,10 +85,14 @@ modalBackColor = white
|
|||||||
absolute top left bottom right
|
absolute top left bottom right
|
||||||
background-color modalBackColor
|
background-color modalBackColor
|
||||||
z-index modalZIndex + 1
|
z-index modalZIndex + 1
|
||||||
|
|
||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.ModalBase
|
.ModalBase
|
||||||
.modalBack
|
.modalBack
|
||||||
background-color $ui-dark-backgroundColor
|
background-color $ui-dark-backgroundColor
|
||||||
|
.sortableItemHelper
|
||||||
|
color: $ui-dark-text-color
|
||||||
|
|
||||||
.CodeMirror
|
.CodeMirror
|
||||||
font-family inherit !important
|
font-family inherit !important
|
||||||
@@ -108,6 +112,11 @@ body[data-theme="dark"]
|
|||||||
.sortableItemHelper
|
.sortableItemHelper
|
||||||
z-index modalZIndex + 5
|
z-index modalZIndex + 5
|
||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="solarized-dark"]
|
||||||
|
.ModalBase
|
||||||
|
.modalBack
|
||||||
|
background-color $ui-solarized-dark-backgroundColor
|
||||||
.sortableItemHelper
|
.sortableItemHelper
|
||||||
color: $ui-dark-text-color
|
color: $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,12 @@ colorDarkControl()
|
|||||||
border-color $ui-dark-borderColor
|
border-color $ui-dark-borderColor
|
||||||
background-color $ui-dark-backgroundColor
|
background-color $ui-dark-backgroundColor
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
colorSolarizedDarkControl()
|
||||||
|
border none
|
||||||
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.root
|
.root
|
||||||
@@ -154,3 +160,33 @@ body[data-theme="dark"]
|
|||||||
.group-section-control
|
.group-section-control
|
||||||
select, .group-section-control-input
|
select, .group-section-control-input
|
||||||
colorDarkControl()
|
colorDarkControl()
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.group-header
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.group-header2
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.group-section-control-input
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.group-control
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
.group-control-leftButton
|
||||||
|
colorDarkDefaultButton()
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
.group-control-rightButton
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
.group-hint
|
||||||
|
colorSolarizedDarkControl()
|
||||||
|
.group-section-control
|
||||||
|
select, .group-section-control-input
|
||||||
|
colorSolarizedDarkControl()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,10 @@ p
|
|||||||
|
|
||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
p
|
p
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
p
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
@@ -101,3 +101,28 @@ body[data-theme="dark"]
|
|||||||
|
|
||||||
.folderItem-right-dangerButton
|
.folderItem-right-dangerButton
|
||||||
colorDarkDangerButton()
|
colorDarkDangerButton()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.folderItem
|
||||||
|
&:hover
|
||||||
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
|
||||||
|
.folderItem-left-danger
|
||||||
|
color $danger-color
|
||||||
|
|
||||||
|
.folderItem-left-key
|
||||||
|
color $ui-dark-inactive-text-color
|
||||||
|
|
||||||
|
.folderItem-left-colorButton
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
|
||||||
|
.folderItem-right-button
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
|
||||||
|
.folderItem-right-confirmButton
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
|
||||||
|
.folderItem-right-dangerButton
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
|||||||
@@ -60,3 +60,11 @@
|
|||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.root
|
.root
|
||||||
color alpha($tab--dark-text-color, 80%)
|
color alpha($tab--dark-text-color, 80%)
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
.list
|
||||||
|
a
|
||||||
|
color $ui-solarized-dark-active-color
|
||||||
|
|||||||
@@ -86,3 +86,29 @@ body[data-theme="dark"]
|
|||||||
background-color $dark-primary-button-background--active
|
background-color $dark-primary-button-background--active
|
||||||
&:hover
|
&:hover
|
||||||
color white
|
color white
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
background-color transparent
|
||||||
|
.top-bar
|
||||||
|
background-color transparent
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
p
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
.nav
|
||||||
|
background-color transparent
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
.nav-button
|
||||||
|
background-color transparent
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
&:hover
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.nav-button--active
|
||||||
|
@extend .nav-button
|
||||||
|
color $ui-solarized-dark-button--active-color
|
||||||
|
background-color $ui-solarized-dark-button--active-backgroundColor
|
||||||
|
&:hover
|
||||||
|
color white
|
||||||
|
|
||||||
|
|||||||
@@ -158,3 +158,44 @@ body[data-theme="dark"]
|
|||||||
.addStorage-body-control-cancelButton
|
.addStorage-body-control-cancelButton
|
||||||
colorDarkDefaultButton()
|
colorDarkDefaultButton()
|
||||||
border-color $ui-dark-borderColor
|
border-color $ui-dark-borderColor
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
body[data-theme="solarized-dark"]
|
||||||
|
.root
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.folderList-item
|
||||||
|
border-bottom $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.folderList-empty
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.list-empty
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
.list-control-addStorageButton
|
||||||
|
border-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.addStorage-header
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.addStorage-body-section-name-input
|
||||||
|
border-color $$ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.addStorage-body-section-type-description
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
|
||||||
|
.addStorage-body-section-path-button
|
||||||
|
colorPrimaryButton()
|
||||||
|
.addStorage-body-control
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
.addStorage-body-control-createButton
|
||||||
|
colorDarkPrimaryButton()
|
||||||
|
.addStorage-body-control-cancelButton
|
||||||
|
colorDarkDefaultButton()
|
||||||
|
border-color $ui-solarized-dark-borderColor
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,18 @@ colorDarkPrimaryButton()
|
|||||||
&:active:hover
|
&:active:hover
|
||||||
background-color $dark-primary-button-background--active
|
background-color $dark-primary-button-background--active
|
||||||
|
|
||||||
|
|
||||||
|
colorSolarizedDarkPrimaryButton()
|
||||||
|
color $ui-solarized-dark-text-color
|
||||||
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
border none
|
||||||
|
&:hover
|
||||||
|
background-color $dark-primary-button-background--hover
|
||||||
|
&:active
|
||||||
|
&:active:hover
|
||||||
|
background-color $dark-primary-button-background--active
|
||||||
|
|
||||||
|
|
||||||
// Danger button(Brand color)
|
// Danger button(Brand color)
|
||||||
$danger-button-background = #c9302c
|
$danger-button-background = #c9302c
|
||||||
$danger-button-background--hover = darken(#c9302c, 5%)
|
$danger-button-background--hover = darken(#c9302c, 5%)
|
||||||
@@ -223,7 +235,6 @@ $ui-button--focus-borderColor = lighten(#369DCD, 25%)
|
|||||||
|
|
||||||
/******* Dark theme ********/
|
/******* Dark theme ********/
|
||||||
$ui-dark-active-color = #3A404C
|
$ui-dark-active-color = #3A404C
|
||||||
|
|
||||||
$ui-dark-borderColor = #444444
|
$ui-dark-borderColor = #444444
|
||||||
$ui-dark-backgroundColor = #2C3033
|
$ui-dark-backgroundColor = #2C3033
|
||||||
$ui-dark-noteList-backgroundColor = #2C3033
|
$ui-dark-noteList-backgroundColor = #2C3033
|
||||||
@@ -251,6 +262,7 @@ colorDarkDefaultButton()
|
|||||||
&:active:hover
|
&:active:hover
|
||||||
background-color $ui-dark-button--active-backgroundColor
|
background-color $ui-dark-button--active-backgroundColor
|
||||||
|
|
||||||
|
|
||||||
$dark-danger-button-background = #c9302c
|
$dark-danger-button-background = #c9302c
|
||||||
$dark-danger-button-background--hover = darken(#c9302c, 5%)
|
$dark-danger-button-background--hover = darken(#c9302c, 5%)
|
||||||
$dark-danger-button-background--active = darken(#c9302c, 10%)
|
$dark-danger-button-background--active = darken(#c9302c, 10%)
|
||||||
@@ -312,18 +324,19 @@ modalDark()
|
|||||||
|
|
||||||
|
|
||||||
/******* Solarized Dark theme ********/
|
/******* Solarized Dark theme ********/
|
||||||
$ui-solarized-dark-backgroundColor = #2E3235
|
$ui-solarized-dark-backgroundColor = #073642
|
||||||
$ui-solarized-dark-noteList-backgroundColor = #002B36
|
$ui-solarized-dark-noteList-backgroundColor = #073642
|
||||||
$ui-solarized-dark-noteDetail-backgroundColor = #002B36
|
$ui-solarized-dark-noteDetail-backgroundColor = #073642
|
||||||
|
|
||||||
$ui-solarized-dark-text-color = #DDDDDD
|
$ui-solarized-dark-text-color = #93a1a1
|
||||||
$ui-solarized-dark-active-color = #3A404C
|
$ui-solarized-dark-active-color = #2aa198
|
||||||
|
|
||||||
$ui-solarized-dark-borderColor = lighten(#21252B, 20%)
|
$ui-solarized-dark-borderColor = #586e75
|
||||||
|
|
||||||
$ui-solarized-dark-tag-backgroundColor = #3A404C
|
$ui-solarized-dark-tag-backgroundColor = #002b36
|
||||||
|
|
||||||
$ui-solarized-dark-button--active-color = #f4f4f4
|
$ui-solarized-dark-button-backgroundColor = #002b36
|
||||||
$ui-solarized-dark-button--active-backgroundColor = #3A404C
|
$ui-solarized-dark-button--active-color = #93a1a1
|
||||||
|
$ui-solarized-dark-button--active-backgroundColor = #073642
|
||||||
$ui-solarized-dark-button--hover-backgroundColor = lighten($ui-dark-backgroundColor, 10%)
|
$ui-solarized-dark-button--hover-backgroundColor = lighten($ui-dark-backgroundColor, 10%)
|
||||||
$ui-solarized-dark-button--focus-borderColor = lighten(#369DCD, 25%)
|
$ui-solarized-dark-button--focus-borderColor = lighten(#369DCD, 25%)
|
||||||
Reference in New Issue
Block a user