Skip to content

Commit 04d4d1a

Browse files
AndyScherzingerenjeck
authored andcommitted
style: Update sidebar and general icons to latest design (outline variant)
AI-assistant: Claude Code v2.1.143 (Claude Sonnet 4.6) Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 222811a commit 04d4d1a

4 files changed

Lines changed: 27 additions & 19 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@nextcloud/initial-state": "^3.0.0",
2525
"@nextcloud/moment": "^1.3.5",
2626
"@nextcloud/router": "^3.1.0",
27-
"@nextcloud/vue": "^8.35.2",
27+
"@nextcloud/vue": "^8.39.0",
2828
"diff": "^9.0.0",
2929
"easymde": "^2.21.0",
3030
"markdown-it": "^14.2.0",

src/App.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
@dragover.native="onNewCategoryDragOver"
1616
@drop.native="onNewCategoryDrop"
1717
>
18-
<FolderPlusIcon slot="icon" :size="20" />
18+
<template #icon>
19+
<FolderPlusIcon :size="20" />
20+
</template>
1921
</NcAppNavigationNew>
2022
<CategoriesList v-show="!loading.notes" />
2123
</template>
@@ -26,7 +28,9 @@
2628
:name="t('notes', 'Notes settings')"
2729
@click.prevent="openSettings"
2830
>
29-
<CogIcon slot="icon" :size="20" />
31+
<template #icon>
32+
<CogIcon :size="20" />
33+
</template>
3034
</NcAppNavigationItem>
3135
</ul>
3236
<AppSettings v-if="!loading.notes && error !== true" :open.sync="settingsVisible" @reload="reloadNotes" />
@@ -57,7 +61,7 @@ import '@nextcloud/dialogs/style.css'
5761
import { emit } from '@nextcloud/event-bus'
5862
5963
import CogIcon from 'vue-material-design-icons/CogOutline.vue'
60-
import FolderPlusIcon from 'vue-material-design-icons/FolderPlus.vue'
64+
import FolderPlusIcon from 'vue-material-design-icons/FolderPlusOutline.vue'
6165
6266
import AppSettings from './components/AppSettings.vue'
6367
import CategoriesList from './components/CategoriesList.vue'

src/components/CategoriesList.vue

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<Fragment>
88
<NcAppNavigationItem
99
:name="t('notes', 'All notes')"
10+
:active="selectedCategory === null"
1011
:draggable="false"
1112
:class="{
12-
active: selectedCategory === null,
1313
'drop-over': dragOverAllNotes,
1414
'category-no-actions': true,
1515
}"
@@ -36,13 +36,11 @@
3636
ref="newCategoryItem"
3737
:name="''"
3838
:draggable="false"
39-
:icon="'icon-files'"
4039
:editable="true"
4140
:edit-label="t('notes', 'Rename category')"
4241
:edit-placeholder="t('notes', 'New category')"
4342
:force-menu="true"
4443
:force-display-actions="true"
45-
menu-icon="icon-more"
4644
class="category-draft"
4745
@click.prevent.stop
4846
@dragstart.native="onCategoryDragStart"
@@ -61,16 +59,14 @@
6159
<NcAppNavigationItem v-for="category in categories"
6260
:key="category.name"
6361
:name="categoryTitle(category.name)"
62+
:active="category.name === selectedCategory"
6463
:draggable="false"
65-
:icon="category.name === '' ? 'icon-emptyfolder' : 'icon-files'"
6664
:editable="category.name !== ''"
6765
:edit-label="t('notes', 'Rename category')"
6866
:edit-placeholder="category.name"
6967
:force-menu="category.name !== ''"
7068
:force-display-actions="category.name !== ''"
71-
menu-icon="icon-more"
7269
:class="{
73-
active: category.name === selectedCategory,
7470
'drop-over': category.name === dragOverCategory,
7571
'category-no-actions': category.name === '',
7672
}"
@@ -82,8 +78,8 @@
8278
@update:name="onRenameCategory(category.name, $event)"
8379
>
8480
<template #icon>
85-
<FolderOutlineIcon v-if="category.name === ''" :size="20" />
86-
<FolderIcon v-else :size="20" />
81+
<FolderIcon v-if="category.name === selectedCategory" :size="20" />
82+
<FolderOutlineIcon v-else :size="20" />
8783
</template>
8884
<template #counter>
8985
<NcCounterBubble>
@@ -92,10 +88,12 @@
9288
</template>
9389
<template v-if="category.name !== ''" #actions>
9490
<NcActionButton
95-
icon="icon-delete"
9691
:close-after-click="true"
9792
@click="onDeleteCategory(category.name)"
9893
>
94+
<template #icon>
95+
<DeleteIcon :size="20" />
96+
</template>
9997
{{ t('notes', 'Delete category') }}
10098
</NcActionButton>
10199
</template>
@@ -112,6 +110,7 @@ import { Fragment } from 'vue-frag'
112110
import { showConfirmation } from '@nextcloud/dialogs'
113111
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
114112
113+
import DeleteIcon from 'vue-material-design-icons/Delete.vue'
115114
import FolderIcon from 'vue-material-design-icons/Folder.vue'
116115
import FolderOutlineIcon from 'vue-material-design-icons/FolderOutline.vue'
117116
import HistoryIcon from 'vue-material-design-icons/History.vue'
@@ -124,6 +123,7 @@ export default {
124123
name: 'CategoriesList',
125124
126125
components: {
126+
DeleteIcon,
127127
Fragment,
128128
NcActionButton,
129129
NcAppNavigationItem,
@@ -457,10 +457,6 @@ export default {
457457
}
458458
</script>
459459
<style lang="scss" scoped>
460-
.app-navigation-entry-wrapper.active:deep(.app-navigation-entry) {
461-
background-color: var(--color-primary-element-light) !important;
462-
}
463-
464460
.app-navigation-entry-wrapper.drop-over:deep(.app-navigation-entry) {
465461
background-color: var(--color-primary-element-light) !important;
466462
outline: 2px dashed var(--color-primary-element);

src/components/EditorEasyMDE.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
<div class="upload-button">
99
<NcActions
1010
container=".upload-button"
11-
default-icon="icon-picture"
1211
menu-align="right"
1312
>
13+
<template #icon>
14+
<ImagePlusOutlineIcon :size="20" />
15+
</template>
1416
<NcActionButton
1517
icon="icon-upload"
1618
:close-after-click="true"
@@ -19,10 +21,12 @@
1921
{{ t('notes', 'Upload image') }}
2022
</NcActionButton>
2123
<NcActionButton
22-
icon="icon-picture"
2324
:close-after-click="true"
2425
@click="onClickInsertImage"
2526
>
27+
<template #icon>
28+
<ImageOutlineIcon :size="20" />
29+
</template>
2630
{{ t('notes', 'Insert image') }}
2731
</NcActionButton>
2832
</NcActions>
@@ -41,6 +45,8 @@ import { showError } from '@nextcloud/dialogs'
4145
import '@nextcloud/dialogs/style.css'
4246
import NcActions from '@nextcloud/vue/components/NcActions'
4347
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
48+
import ImageOutlineIcon from 'vue-material-design-icons/ImageOutline.vue'
49+
import ImagePlusOutlineIcon from 'vue-material-design-icons/ImagePlusOutline.vue'
4450
import { basename, relative } from 'path'
4551
4652
import store from '../store.js'
@@ -49,6 +55,8 @@ export default {
4955
name: 'EditorEasyMDE',
5056
5157
components: {
58+
ImageOutlineIcon,
59+
ImagePlusOutlineIcon,
5260
NcActions,
5361
NcActionButton,
5462
},

0 commit comments

Comments
 (0)