Skip to content

Commit

Permalink
feat(folders): add custom icon (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Jun 14, 2023
1 parent 63c90e9 commit 3c6f762
Show file tree
Hide file tree
Showing 860 changed files with 1,305 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/services/i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
"collapse-all": "Collapse All",
"expand-all": "Expand All",
"restore": "Restore",
"copy-snippet-link": "Copy Snippet Link"
"copy-snippet-link": "Copy Snippet Link",
"set-custom-icon": "Set Custom Icon"
}
3 changes: 2 additions & 1 deletion src/main/services/i18n/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
"collapse-all": "Закрыть все",
"expand-all": "Открыть все",
"restore": "Восстановить",
"copy-snippet-link": "Скопировать ссылку"
"copy-snippet-link": "Скопировать ссылку",
"set-custom-icon": "Установить иконку"
}
11 changes: 11 additions & 0 deletions src/main/services/ipc/context-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,17 @@ export const subscribeToContextMenu = () => {
{
label: i18n.t('defaultLanguage'),
submenu: createLanguageMenu()
},
{ type: 'separator' },
{
label: i18n.t('set-custom-icon'),
click: () => {
resolve({
action: 'set-custom-icon',
type,
data: undefined
})
}
}
]

Expand Down
4 changes: 4 additions & 0 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
{{ i18n.t('updateAvailable') }}
</span>
</div>
<!-- TODO: Подумать о дальнейшем управлении глобальным модальным окном -->
<AppModal v-model:show="appStore.showModal">
<AppFolderIcons />
</AppModal>
</template>

<script setup lang="ts">
Expand Down
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/3d.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/abc.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/actionscript.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/ada.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/adonis.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/advpl_include.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/advpl_prw.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/advpl_ptm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/advpl_tlpp.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/android.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-component.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-directive.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-guard.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-pipe.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-resolver.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular-service.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/angular.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/antlr.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/apiblueprint.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/apollo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/applescript.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/appveyor.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/architecture.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/arduino.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/renderer/assets/svg/icons/asciidoc.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3c6f762

Please sign in to comment.