From 331a3b4a1a740cc6c5ade340962e6b83eb8957d0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 12 Apr 2022 19:19:46 -0500 Subject: [PATCH] Add new library icons --- components/app/Appbar.vue | 11 ++++++----- components/icons/audiobook-svg.vue | 23 +++++++++++++++++++++++ components/icons/book-svg.vue | 16 ++++++++++++++++ components/icons/comic-svg.vue | 16 ++++++++++++++++ components/icons/database-svg.vue | 16 ++++++++++++++++ components/icons/podcast-svg.vue | 19 +++++++++++++++++++ components/modals/LibrariesModal.vue | 5 +---- components/widgets/LibraryIcon.vue | 28 ++++++++++++++++++++++++++++ 8 files changed, 125 insertions(+), 9 deletions(-) create mode 100644 components/icons/audiobook-svg.vue create mode 100644 components/icons/book-svg.vue create mode 100644 components/icons/comic-svg.vue create mode 100644 components/icons/database-svg.vue create mode 100644 components/icons/podcast-svg.vue create mode 100644 components/widgets/LibraryIcon.vue diff --git a/components/app/Appbar.vue b/components/app/Appbar.vue index b7fe929d..c42cece6 100644 --- a/components/app/Appbar.vue +++ b/components/app/Appbar.vue @@ -8,11 +8,9 @@ arrow_back
-
- - - -

{{ currentLibraryName }}

+
+ +

{{ currentLibraryName }}

@@ -45,6 +43,9 @@ export default { currentLibraryName() { return this.currentLibrary ? this.currentLibrary.name : 'Main' }, + currentLibraryIcon() { + return this.currentLibrary ? this.currentLibrary.icon : 'database' + }, showBack() { if (!this.$route.name) return true return this.$route.name !== 'index' && !this.$route.name.startsWith('bookshelf') diff --git a/components/icons/audiobook-svg.vue b/components/icons/audiobook-svg.vue new file mode 100644 index 00000000..905c83cc --- /dev/null +++ b/components/icons/audiobook-svg.vue @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/components/icons/book-svg.vue b/components/icons/book-svg.vue new file mode 100644 index 00000000..b2e459a4 --- /dev/null +++ b/components/icons/book-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/components/icons/comic-svg.vue b/components/icons/comic-svg.vue new file mode 100644 index 00000000..30903253 --- /dev/null +++ b/components/icons/comic-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/components/icons/database-svg.vue b/components/icons/database-svg.vue new file mode 100644 index 00000000..10929b16 --- /dev/null +++ b/components/icons/database-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/components/icons/podcast-svg.vue b/components/icons/podcast-svg.vue new file mode 100644 index 00000000..d025ab0d --- /dev/null +++ b/components/icons/podcast-svg.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/components/modals/LibrariesModal.vue b/components/modals/LibrariesModal.vue index 83cb6902..1876e030 100644 --- a/components/modals/LibrariesModal.vue +++ b/components/modals/LibrariesModal.vue @@ -13,10 +13,7 @@
  • - - - - + {{ library.name }}
  • diff --git a/components/widgets/LibraryIcon.vue b/components/widgets/LibraryIcon.vue new file mode 100644 index 00000000..7d8d50ff --- /dev/null +++ b/components/widgets/LibraryIcon.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file