Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser/components/NoteItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleNoteCont

<div styleName='item-bottom-time'>{dateDisplay}</div>
{note.isStarred
? <i styleName='item-star' className='fa fa-star' /> : ''
? <img styleName='item-star' src='../resources/icon/icon-starred.svg' /> : ''
}
{note.isPinned && !pathname.match(/\/home|\/starred|\/trash/)
? <i styleName='item-pin' className='fa fa-thumb-tack' /> : ''
Expand Down
8 changes: 4 additions & 4 deletions browser/components/NoteItem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ $control-height = 30px

.item-star
position absolute
right -20px
bottom 2px
width 34px
height 34px
right -10px
bottom 12px
width 16px
height 16px
color alpha($ui-favorite-star-button-color, 60%)
font-size 12px
padding 0
Expand Down
30 changes: 27 additions & 3 deletions browser/components/SideNavFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,51 @@ const SideNavFilter = ({
counterTotalNote, counterStarredNote
}) => (
<div styleName={isFolded ? 'menu--folded' : 'menu'}>

<button styleName={isHomeActive ? 'menu-button--active' : 'menu-button'}
onClick={handleAllNotesButtonClick}
>
<i className='fa fa-archive fa-fw' />
<div styleName='iconWrap'>
<img src={isHomeActive
? '../resources/icon/icon-all-active.svg'
: '../resources/icon/icon-all.svg'
}
/>
</div>
<span styleName='menu-button-label'>All Notes</span>
<span styleName='counters'>{counterTotalNote}</span>
</button>

<button styleName={isStarredActive ? 'menu-button-star--active' : 'menu-button'}
onClick={handleStarredButtonClick}
>
<i className='fa fa-star fa-fw' />
<div styleName='iconWrap'>
<img src={isStarredActive
? '../resources/icon/icon-star-active.svg'
: '../resources/icon/icon-star.svg'
}
/>
</div>
<span styleName='menu-button-label'>Starred</span>
<span styleName='counters'>{counterStarredNote}</span>
</button>


<button styleName={isTrashedActive ? 'menu-button-trash--active' : 'menu-button'}
onClick={handleTrashedButtonClick}
>
<i className='fa fa-trash fa-fw' />
<div styleName='iconWrap'>
<img src={isTrashedActive
? '../resources/icon/icon-trash-active.svg'
: '../resources/icon/icon-trash.svg'
}
/>
</div>
<span styleName='menu-button-label'>Trash</span>
<span styleName='counters'>{counterDelNote}</span>
</button>


</div>
)

Expand Down
46 changes: 31 additions & 15 deletions browser/components/SideNavFilter.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,55 @@

.menu-button
navButtonColor()
height 32px
padding 0 15px
font-size 13px
height 36px
padding 0 15px 0 20px
font-size 14px
width 100%
text-align left
overflow ellipsis
&:hover
color $ui-button-default-color
display flex
align-items center
&:hover, &:active, &:active:hover
color #1EC38B
background-color alpha($ui-button-default--active-backgroundColor, 20%)
transition background-color 0.15s
&:active, &:active:hover
color $ui-button-default-color
background-color $ui-button-default--active-backgroundColor

.iconWrap
width 20px
text-align center

.counters
float right
color $ui-inactive-text-color

.menu-button--active
@extend .menu-button
color #e74c3c
SideNavFilter()
color #1EC38B
background-color alpha($ui-button-default--active-backgroundColor, 20%)
.menu-button-label, .counters
color #1EC38B
&:hover
color #1EC38B

.menu-button-star--active
@extend .menu-button
color #F9BF3B
SideNavFilter()
color #1EC38B
background-color alpha($ui-button-default--active-backgroundColor, 20%)
.menu-button-label, .counters
color #1EC38B

.menu-button-trash--active
@extend .menu-button
color #5D9E36
SideNavFilter()
color #1EC38B
background-color alpha($ui-button-default--active-backgroundColor, 20%)
.menu-button-label, .counters
color #1EC38B

.menu-button-label
margin-left 5px
margin-left 10px
flex 1

.menu--folded
@extend .menu
Expand All @@ -46,6 +60,7 @@
&:hover .menu-button-label
transition opacity 0.15s
opacity 1

.menu-button-label
position fixed
display inline-block
Expand All @@ -55,9 +70,7 @@
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
Expand All @@ -67,6 +80,9 @@
.counters
display none




body[data-theme="white"]
.menu-button
navWhiteButtonColor()
Expand Down
17 changes: 8 additions & 9 deletions browser/components/StorageItem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,30 @@
.folderList-item
display flex
width 100%
height 26px
height 34px
background-color transparent
color $ui-inactive-text-color
padding 0
margin-bottom 5px
text-align left
border none
overflow ellipsis
font-size 13px
font-size 14px
&:first-child
margin-top 0
&:hover
color $ui-button-default-color
color #1EC38B;
background-color alpha($ui-button-default--active-backgroundColor, 20%)
transition background-color 0.15s
&:active
color $$ui-button-default-color
background-color $ui-button-default--active-backgroundColor

background-color alpha($ui-button-default--active-backgroundColor, 20%)
.folderList-item--active
@extend .folderList-item
color $ui-button-default-color
background-color $ui-button-default--active-backgroundColor
color #1EC38B
background-color alpha($ui-button-default--active-backgroundColor, 20%)
&:hover
color $ui-button-default-color
color #1EC38B;
background-color alpha($ui-button-default--active-backgroundColor, 50%)

.folderList-item-name
Expand Down
2 changes: 1 addition & 1 deletion browser/components/StorageList.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.storageList
absolute left right
bottom 37px
top 160px
top 180px
overflow-y auto

.storageList-empty
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/InfoButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const InfoButton = ({
<button styleName='control-infoButton'
onClick={onClick}
>
<i className='fa fa-info-circle infoButton' styleName='info-button' />
<img styleName='iconInfo' src='../resources/icon/icon-info.svg'/>
</button>
)

Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/InfoButton.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.infoButton
padding 0px
margin 15px 0
margin 45px 0

body[data-theme="dark"]
.control-infoButton
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/InfoPanel.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.control-infoButton-panel
z-index 200
margin-top 38px
right 0px
right 0
position absolute
padding 20px 25px 0 25px
width 300px
Expand Down
10 changes: 6 additions & 4 deletions browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class MarkdownNoteDetail extends React.Component {
}

getToggleLockButton () {
return this.state.isLocked ? 'fa-eye-slash' : 'fa-eye'
return this.state.isLocked ? '../resources/icon/icon-lock.svg' : '../resources/icon/icon-unlock.svg'
}

handleDeleteKeyDown (e) {
Expand Down Expand Up @@ -332,23 +332,25 @@ class MarkdownNoteDetail extends React.Component {
/>

{(() => {
const faClassName = `fa ${this.getToggleLockButton()}`
const imgSrc = `${this.getToggleLockButton()}`
const lockButtonComponent =
<button styleName='control-lockButton'
onFocus={(e) => this.handleFocus(e)}
onMouseDown={(e) => this.handleLockButtonMouseDown(e)}
>
<i className={faClassName} styleName='lock-button' />
<img styleName='iconInfo' src={imgSrc}/>
</button>

return (
this.state.isLockButtonShown ? lockButtonComponent : ''
)
})()}


<button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)}
>
<i className='fa fa-window-maximize' styleName='fullScreen-button' />
<img styleName='iconInfo' src='../resources/icon/icon-sidebar.svg'/>
</button>

<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/MarkdownNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

.control-lockButton
top 160px
margin-bottom 10px
topBarButtonLight()

.trashed-infopanel
Expand All @@ -28,7 +29,6 @@
right $note-detail-right-margin
top $info-height + $info-margin-under-border
bottom $statusBar-height

.body-noteEditor
absolute top bottom left right

Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/NoteDetailInfo.styl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $info-margin-under-border = 15px
.info-right
position absolute
right -20px
top 0
top 10px
background $ui-noteDetail-backgroundColor
bottom 1px
padding-left 30px
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ class SnippetNoteDetail extends React.Component {

<button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)}>
<i className='fa fa-window-maximize' styleName='fullScreen-button' />
<img styleName='iconInfo' src='../resources/icon/icon-sidebar.svg'/>
</button>

<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
Expand Down
1 change: 1 addition & 0 deletions browser/main/Detail/SnippetNoteDetail.styl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

.control-fullScreenButton
top 80px
margin-bottom 10px
topBarButtonLight()

body[data-theme="white"]
Expand Down
8 changes: 4 additions & 4 deletions browser/main/Detail/StarButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class StarButton extends React.Component {
onMouseLeave={(e) => this.handleMouseLeave(e)}
onClick={this.props.onClick}
>
<i styleName='icon'
className={this.state.isActive || this.props.isActive
? 'fa fa-star'
: 'fa fa-star-o'
<img styleName='icon'
src={this.state.isActive || this.props.isActive
? '../resources/icon/icon-starred.svg'
: '../resources/icon/icon-star.svg'
}
/>
</button>
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/TrashButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const TrashButton = ({
<button styleName='control-trashButton'
onClick={(e) => onClick(e)}
>
<i className='fa fa-trash trashButton' styleName='info-button' />
<img styleName='iconInfo' src='../resources/icon/icon-trash.svg'/>
</button>
)

Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/TrashButton.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.control-trashButton
top 120px
margin-bottom 10px
topBarButtonLight()

.control-trashButton--in-trash
Expand All @@ -8,7 +9,6 @@

.trashButton
padding 0px
margin 15px 0

body[data-theme="dark"]
.control-trashButton
Expand Down
2 changes: 1 addition & 1 deletion browser/main/NewNoteButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class NewNoteButton extends React.Component {
<div styleName='control'>
<button styleName='control-newNoteButton'
onClick={(e) => this.handleNewNoteButtonClick(e)}>
<i className='fa fa-pencil-square-o' />
<img styleName='iconTag' src='../resources/icon/icon-newnote.svg'/>
<span styleName='control-newNoteButton-tooltip'>
Make a Note {OSX ? '⌘' : '^'} + n
</span>
Expand Down
4 changes: 2 additions & 2 deletions browser/main/NoteList/NoteList.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ $control-height = 30px

.control-sortBy-select
appearance: none;
margin-left 3px
margin-left 5px
color $ui-inactive-text-color
padding 0
border none
background-color transparent
outline none
cursor pointer
font-size 11px
font-size 12px
&:hover
transition 0.2s
color $ui-text-color
Expand Down
Loading