diff --git a/browser/components/NavToggleButton.styl b/browser/components/NavToggleButton.styl
index 447f492b..dba4f66f 100644
--- a/browser/components/NavToggleButton.styl
+++ b/browser/components/NavToggleButton.styl
@@ -2,7 +2,7 @@
navButtonColor()
display block
position absolute
- right 5px
+ left 5px
bottom 5px
border-radius 16.5px
height 34px
diff --git a/browser/components/NoteItem.js b/browser/components/NoteItem.js
index 35c6d976..e85df791 100644
--- a/browser/components/NoteItem.js
+++ b/browser/components/NoteItem.js
@@ -73,7 +73,7 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleNoteCont
? : ''
}
{note.isPinned && !pathname.match(/\/home|\/starred|\/trash/)
- ? : ''
+ ? : ''
}
{note.type === 'MARKDOWN_NOTE'
?
diff --git a/browser/components/NoteItem.styl b/browser/components/NoteItem.styl
index d4b15dfd..bda90407 100644
--- a/browser/components/NoteItem.styl
+++ b/browser/components/NoteItem.styl
@@ -126,6 +126,17 @@ $control-height = 30px
padding 0
border-radius 17px
+.item-pin
+ position absolute
+ right -21px
+ bottom 28px
+ width 34px
+ height 34px
+ color #E54D42
+ font-size 14px
+ padding 0
+ border-radius 17px
+
body[data-theme="dark"]
.root
border-color $ui-dark-borderColor
diff --git a/browser/components/SideNavFilter.styl b/browser/components/SideNavFilter.styl
index 5f5874a7..bad5661b 100644
--- a/browser/components/SideNavFilter.styl
+++ b/browser/components/SideNavFilter.styl
@@ -17,12 +17,12 @@
.menu-button-label
color $ui-text-color
&:hover
- background-color $ui-button--active-backgroundColor
+ background-color alpha($ui-button--active-backgroundColor, 50%)
color #e74c3c
.menu-button-label
color $ui-text-color
&:active, &:active:hover
- background-color $ui-button--active-backgroundColor
+ background-color alpha($ui-button--active-backgroundColor, 50%)
color #e74c3c
.menu-button-label
color $ui-text-color
@@ -34,12 +34,12 @@
.menu-button-label
color $ui-text-color
&:hover
- background-color $ui-button--active-backgroundColor
+ background-color alpha($ui-button--active-backgroundColor, 50%)
color #F9BF3B
.menu-button-label
color $ui-text-color
&:active, &:active:hover
- background-color $ui-button--active-backgroundColor
+ background-color alpha($ui-button--active-backgroundColor, 50%)
color #F9BF3B
.menu-button-label
color $ui-text-color
@@ -88,7 +88,7 @@ body[data-theme="dark"]
.menu-button-label
color $ui-dark-text-color
&:hover
- background-color $ui-dark-button--active-backgroundColor
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
color #c0392b
.menu-button-label
color $ui-dark-text-color
@@ -99,7 +99,7 @@ body[data-theme="dark"]
.menu-button-label
color $ui-dark-text-color
&:hover
- background-color $ui-dark-button--active-backgroundColor
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
color $ui-favorite-star-button-color
.menu-button-label
color $ui-dark-text-color
\ No newline at end of file
diff --git a/browser/components/StorageItem.styl b/browser/components/StorageItem.styl
index b294c405..e6aabd34 100644
--- a/browser/components/StorageItem.styl
+++ b/browser/components/StorageItem.styl
@@ -30,7 +30,7 @@
background-color $ui-button--active-backgroundColor
&:hover
color $ui-text-color
- background-color $ui-button--active-backgroundColor
+ background-color alpha($ui-button--active-backgroundColor, 50%)
.folderList-item-name
display block
@@ -86,7 +86,7 @@ body[data-theme="dark"]
color $ui-dark-text-color
background-color $ui-dark-button--active-backgroundColor
&:active
- background-color $ui-dark-button--active-backgroundColor
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
&:hover
color $ui-dark-text-color
- background-color $ui-dark-button--active-backgroundColor
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
\ No newline at end of file
diff --git a/browser/components/TagListItem.styl b/browser/components/TagListItem.styl
index e3ee4f10..ea135a96 100644
--- a/browser/components/TagListItem.styl
+++ b/browser/components/TagListItem.styl
@@ -31,6 +31,9 @@
border none
overflow ellipsis
font-size 12px
+ &:hover
+ background-color alpha($ui-button--active-backgroundColor, 60%)
+ transition 0.2s
.tagList-item-name
display block
@@ -43,3 +46,22 @@
border-color transparent
overflow hidden
text-overflow ellipsis
+
+body[data-theme="dark"]
+ .tagList-item
+ color $ui-dark-inactive-text-color
+ &:hover
+ color $ui-dark-text-color
+ background-color alpha($ui-dark-button--active-backgroundColor, 20%)
+ &:active
+ color $ui-dark-text-color
+ background-color $ui-dark-button--active-backgroundColor
+
+ .tagList-item-active
+ background-color $ui-dark-button--active-backgroundColor
+ color $ui-dark-text-color
+ &:active
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
+ &:hover
+ color $ui-dark-text-color
+ background-color alpha($ui-dark-button--active-backgroundColor, 50%)
\ No newline at end of file
diff --git a/browser/main/NewNoteButton/NewNoteButton.styl b/browser/main/NewNoteButton/NewNoteButton.styl
index 71bb6b2a..42f8e2cb 100644
--- a/browser/main/NewNoteButton/NewNoteButton.styl
+++ b/browser/main/NewNoteButton/NewNoteButton.styl
@@ -13,8 +13,7 @@ $control-height = 34px
.control
position absolute
top 13px
- left 8px
- right 8px
+ right 7px
height $control-height
overflow hidden
display flex
diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js
index feee7343..5729d476 100644
--- a/browser/main/NoteList/index.js
+++ b/browser/main/NoteList/index.js
@@ -524,13 +524,13 @@ class NoteList extends React.Component {
>
-
+
diff --git a/browser/main/SideNav/SideNav.styl b/browser/main/SideNav/SideNav.styl
index 9422b2e7..35967d00 100644
--- a/browser/main/SideNav/SideNav.styl
+++ b/browser/main/SideNav/SideNav.styl
@@ -6,88 +6,59 @@
color $ui-text-color
.top
- height $topBar-height
+ height 45px
.top-menu
navButtonColor()
- height $topBar-height
- padding 0 15px
- font-size 12px
- width 33%
- text-align center
+ position absolute
+ top 22px
+ right 5px
&:hover
color $ui-text-color
&:active, &:active:hover
color $ui-text-color
background-color alpha($ui-button--active-backgroundColor, 20%)
-.active-button
- background-color $ui-button--active-color
+.switch-buttons
+ background-color transparent
+ border 1px solid $ui-borderColor
+ width 110px
+ height 25px
+ margin 20px auto 0px auto
+ border-radius 1px
.non-active-button
- background-color $ui-button-color
+ navButtonColor()
+ font-weight 600
+ width 54px
+ height 23px
+
+.active-button
+ @extend .non-active-button
+ background-color $ui-button--active-backgroundColor
+ color $ui-text-color
+ &:hover
+ background-color alpha($ui-button--active-backgroundColor, 70%)
+ color alpha($ui-text-color, 70%)
+ &:active, &:active:hover
+ background-color $ui-button--active-backgroundColor
.top-menu-label
margin-left 5px
overflow ellipsis
+.tag-title
+ height 65px
+ position relative
+ left 15px
+ p
+ color $ui-text-color
+
.tagList
absolute left right
bottom 37px
- top 80px
overflow-y auto
-
-.root--folded
- @extend .root
- width 44px
- .top-menu
- width 44px - 1
- text-align center
- &:hover .top-menu-label
- transition opacity 0.15s
- opacity 1
- .top-menu-label
- position fixed
- display inline-block
- height 30px
- left 32px
- padding 0 10px
- margin-top -8px
- opacity 0
- margin-left 0
- overflow hidden
- background-color $ui-tooltip-backgroundColor
- z-index 10
- color white
- line-height 30px
- border-top-right-radius 2px
- border-bottom-right-radius 2px
- pointer-events none
- font-size 12px
- .menu-button, .menu-button--active
- text-align center
- &:hover .menu-button-label
- transition opacity 0.15s
- opacity 1
-
- .menu-button-label
- position fixed
- display inline-block
- height 32px
- left 44px
- padding 0 10px
- margin-top -8px
- margin-left 0
- overflow ellipsis
- background-color $ui-tooltip-backgroundColor
- z-index 10
- color white
- line-height 32px
- border-top-right-radius 2px
- border-bottom-right-radius 2px
- pointer-events none
- opacity 0
- font-size 12px
+ position relative
body[data-theme="dark"]
.root, .root--folded
@@ -104,3 +75,27 @@ body[data-theme="dark"]
background-color alpha($ui-dark-button--active-backgroundColor, 20%)
&:hover
background-color alpha($ui-dark-button--active-backgroundColor, 20%)
+
+ .switch-buttons
+ border-color $ui-dark-borderColor
+
+ .non-active-button
+ navDarkButtonColor()
+
+ .active-button
+ @extend .non-active-button
+ background-color $ui-dark-button--active-backgroundColor
+ color $ui-dark-text-color
+ &:hover
+ background-color alpha($ui-dark-button--active-backgroundColor, 70%)
+ color alpha($ui-dark-text-color, 70%)
+ &:active
+ color $ui-dark-text-color
+ background-color alpha($ui-dark-button--active-backgroundColor, 60%)
+ &:active, &:active:hover
+ color $ui-dark-text-color
+ background-color $ui-dark-button--active-backgroundColor
+
+ .tag-title
+ p
+ color alpha($ui-dark-text-color, 60%)
\ No newline at end of file
diff --git a/browser/main/SideNav/index.js b/browser/main/SideNav/index.js
index f9253ec3..359e402a 100644
--- a/browser/main/SideNav/index.js
+++ b/browser/main/SideNav/index.js
@@ -145,11 +145,13 @@ class SideNav extends React.Component {
-
+
+
+
{this.SideNavComponent(isFolded, storageList)}
diff --git a/browser/main/modals/PreferencesModal/Crowdfunding.js b/browser/main/modals/PreferencesModal/Crowdfunding.js
new file mode 100644
index 00000000..a40be357
--- /dev/null
+++ b/browser/main/modals/PreferencesModal/Crowdfunding.js
@@ -0,0 +1,52 @@
+import React from 'react'
+import CSSModules from 'browser/lib/CSSModules'
+import styles from './Crowdfunding.styl'
+import ConfigManager from 'browser/main/lib/ConfigManager'
+import store from 'browser/main/store'
+
+const electron = require('electron')
+const { shell, remote } = electron
+
+class Crowdfunding extends React.Component {
+ constructor (props) {
+ super(props)
+
+ this.state = {
+ config: this.props.config
+ }
+ }
+
+ handleLinkClick (e) {
+ shell.openExternal(e.currentTarget.href)
+ e.preventDefault()
+ }
+
+ render () {
+ return (
+
+
Crowdfunding
+
Dear all,
+
+
Thanks for your using!
+
Boostnote is used in about 200 countries and regions, it is a awesome developer community.
+
+
To continue supporting this growth, and to satisfy community expectations,
+
we would like to invest more time in this project.
+
+
If you like this project and see its potential, you can help!
+
+
Thanks,
+
Boostnote maintainers.
+
+
+
+ )
+ }
+}
+
+Crowdfunding.propTypes = {
+}
+
+export default CSSModules(Crowdfunding, styles)
diff --git a/browser/main/modals/PreferencesModal/Crowdfunding.styl b/browser/main/modals/PreferencesModal/Crowdfunding.styl
new file mode 100644
index 00000000..527837a3
--- /dev/null
+++ b/browser/main/modals/PreferencesModal/Crowdfunding.styl
@@ -0,0 +1,30 @@
+@import('./Tab')
+
+.root
+ padding 15px
+ white-space pre
+ line-height 1.4
+ color alpha($ui-text-color, 90%)
+ width 100%
+ font-size 14px
+p
+ font-size 16px
+
+.cf-link
+ width 250px
+ height 35px
+ border-radius 2px
+ border none
+ background-color alpha(#1EC38B, 90%)
+ &:hover
+ background-color #1EC38B
+ transition 0.2s
+ a
+ text-decoration none
+ color white
+ font-weight 600
+ font-size 16px
+
+body[data-theme="dark"]
+ p
+ color $ui-dark-text-color
\ No newline at end of file
diff --git a/browser/main/modals/PreferencesModal/HotkeyTab.js b/browser/main/modals/PreferencesModal/HotkeyTab.js
index f75e41b8..edbd06a5 100644
--- a/browser/main/modals/PreferencesModal/HotkeyTab.js
+++ b/browser/main/modals/PreferencesModal/HotkeyTab.js
@@ -94,7 +94,7 @@ class HotkeyTab extends React.Component {
-
Toggle Finder(popup)
+
Toggle Finder (Quick search)
this.handleHotkeyChange(e)}
diff --git a/browser/main/modals/PreferencesModal/InfoTab.js b/browser/main/modals/PreferencesModal/InfoTab.js
index 5ac4245f..1007807a 100644
--- a/browser/main/modals/PreferencesModal/InfoTab.js
+++ b/browser/main/modals/PreferencesModal/InfoTab.js
@@ -76,7 +76,7 @@ class InfoTab extends React.Component {
this.handleLinkClick(e)}
- >Donate via Bountysource : Thank you for your support 🎉
+ >Crowdfunding : Thank you for your support 🎉
)
+ case 'CROWDFUNDING':
+ return (
+
+ )
case 'STORAGES':
default:
return (
@@ -94,7 +102,8 @@ class Preferences extends React.Component {
{target: 'STORAGES', label: 'Storages'},
{target: 'HOTKEY', label: 'Hotkey'},
{target: 'UI', label: 'UI'},
- {target: 'INFO', label: 'Info'}
+ {target: 'INFO', label: 'Info'},
+ {target: 'CROWDFUNDING', label: 'Crowdfunding'}
]
let navButtons = tabs.map((tab) => {