Skip to content

Commit

Permalink
More improvements on dark themes..
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Feb 6, 2024
1 parent dc928df commit 41f8b42
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 14 deletions.
24 changes: 20 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
background-position: 16px center;
}

.icon-button-add {
background-image: var(--original-icon-add-white);
}

#new-note-fixed {
z-index: 111; /* navigation menu is 110 ;-) */
line-height: 44px;
Expand Down Expand Up @@ -125,6 +121,18 @@
min-height: 75px;
}

.icon-button-add {
background-image: var(--original-icon-add-white);
}

.icon-delete-note {
background-image: var(--original-icon-delete-dark);
}

.icon-delete-note:hover {
background-image: var(--icon-delete-color-red);
}

.icon-header-note {
cursor: pointer;
float: right;
Expand Down Expand Up @@ -283,6 +291,7 @@ box-shadow: 0 0 0 2px var(--color-primary);

.slim-share,
.slim-tag {
background-repeat: no-repeat;
display: inline-block;
cursor: pointer;
padding: 0px 6px 0 24px;
Expand All @@ -303,6 +312,13 @@ box-shadow: 0 0 0 2px var(--color-primary);
margin-top: 5px;
}

.slim-share {
background-image: var(--original-icon-user-dark);
}

.slim-tag {
background-image: var(--original-icon-tag-dark);
}

/* Restore defaults select2 rules */

Expand Down
2 changes: 1 addition & 1 deletion js/templates/attachts.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="attach-preview note-attach" attach-file-id="{{file_id}}" data-background-image="{{preview_url}}"></div>
</a>
{{#if ../can_delete}}
<div class="attach-remove icon-delete" title="{{t "quicknotes" "Delete attachment"}}"></div>
<div class="attach-remove original-icon-delete-dark" title="{{t "quicknotes" "Delete attachment"}}"></div>
{{/if}}
</div>
{{/each}}
Expand Down
6 changes: 3 additions & 3 deletions js/templates/note-item.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{else}}
<div class="icon-header-note icon-pin hide-header-icon" title="{{t "quicknotes" "Pin note"}}"></div>
{{/if}}
<div class="icon-header-note icon-delete hide-header-icon icon-delete-note" title="{{t "quicknotes" "Delete note"}}"></div>
<div class="icon-header-note hide-header-icon icon-delete-note" title="{{t "quicknotes" "Delete note"}}"></div>
<div class='note-title'>
{{{ title }}}
</div>
Expand All @@ -24,12 +24,12 @@
</div>
<div class='note-shares'>
{{#each sharedWith}}
<div class="icon-user slim-share" share-id="{{ shared_user }}" title="Shared with {{ display_name }}">{{{ display_name }}}</div>
<div class="slim-share" share-id="{{ shared_user }}" title="Shared with {{ display_name }}">{{{ display_name }}}</div>
{{/each}}
</div>
<div class='note-tags'>
{{#each tags}}
<div class="icon-tag slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
<div class="slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
{{/each}}
</div>
<div>
Expand Down
8 changes: 4 additions & 4 deletions js/templates/notes.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<div class='note-body'>
{{#if sharedBy}}
<div class="icon-header-note icon-share" title="{{tSB sharedBy.0.display_name}}"></div>
<div class="icon-header-note icon-delete hide-header-icon icon-delete-note" title="{{t "quicknotes" "Leave this shared note"}}"></div>
<div class="icon-header-note hide-header-icon icon-delete-note" title="{{t "quicknotes" "Leave this shared note"}}"></div>
{{else}}
{{#if isPinned}}
<div class="icon-header-note icon-pinned fixed-header-icon" title="{{t "quicknotes" "Unpin note"}}"></div>
{{else}}
<div class="icon-header-note icon-pin hide-header-icon" title="{{t "quicknotes" "Pin note"}}"></div>
{{/if}}
<div class="icon-header-note icon-delete hide-header-icon icon-delete-note" title="{{t "quicknotes" "Delete note"}}"></div>
<div class="icon-header-note hide-header-icon icon-delete-note" title="{{t "quicknotes" "Delete note"}}"></div>
{{/if}}
<div class='note-title'>
{{{ title }}}
Expand All @@ -32,12 +32,12 @@
</div>
<div class='note-shares'>
{{#each sharedWith}}
<div class="icon-user slim-share" share-id="{{ shared_user }}" title="{{tSW display_name}}">{{{ display_name }}}</div>
<div class="slim-share" share-id="{{ shared_user }}" title="{{tSW display_name}}">{{{ display_name }}}</div>
{{/each}}
</div>
<div class='note-tags'>
{{#each tags}}
<div class='icon-tag slim-tag' tag-id="{{ id }}">
<div class='slim-tag' tag-id="{{ id }}">
{{{ name }}}
</div>
{{/each}}
Expand Down
2 changes: 1 addition & 1 deletion js/templates/shares.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class='note-shares'>
{{#each sharedWith}}
<div class="icon-user slim-share" share-id="{{ shared_user }}" title="{{tSW display_name}}">{{{ display_name }}}</div>
<div class="slim-share" share-id="{{ shared_user }}" title="{{tSW display_name}}">{{{ display_name }}}</div>
{{/each}}
</div>
2 changes: 1 addition & 1 deletion js/templates/tags.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class='note-tags'>
{{#each tags}}
<div class="icon-tag slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
<div class="slim-tag" tag-id="{{ id }}">{{{ name }}}</div>
{{/each}}
</div>

0 comments on commit 41f8b42

Please sign in to comment.