diff --git a/assets/absicons.css b/assets/absicons.css new file mode 100644 index 00000000..b2c0f8e8 --- /dev/null +++ b/assets/absicons.css @@ -0,0 +1,106 @@ +@font-face { + font-family: 'absicons'; + src: url('~static/fonts/absicons/absicons.eot?2jfq33'); + src: url('~static/fonts/absicons/absicons.eot?2jfq33#iefix') format('embedded-opentype'), + url('~static/fonts/absicons/absicons.ttf?2jfq33') format('truetype'), + url('~static/fonts/absicons/absicons.woff?2jfq33') format('woff'), + url('~static/fonts/absicons/absicons.svg?2jfq33#absicons') format('svg'); + font-weight: normal; + font-style: normal; + font-display: block; +} + +.abs-icons { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'absicons' !important; + speak: never; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-books-1:before { + content: "\e905"; +} + +.icon-microphone-1:before { + content: "\e902"; +} + +.icon-radio:before { + content: "\e903"; +} + +.icon-podcast:before { + content: "\e904"; +} + +.icon-audiobookshelf:before { + content: "\e900"; +} + +.icon-database:before { + content: "\e906"; +} + +.icon-microphone-2:before { + content: "\e901"; +} + +.icon-headphones:before { + content: "\e910"; +} + +.icon-music:before { + content: "\e911"; +} + +.icon-video:before { + content: "\e914"; +} + +.icon-microphone-3:before { + content: "\e91e"; +} + +.icon-book-1:before { + content: "\e91f"; +} + +.icon-books-2:before { + content: "\e920"; +} + +.icon-file-picture:before { + content: "\e927"; +} + +.icon-database-1:before { + content: "\e964"; +} + +.icon-rocket:before { + content: "\e9a5"; +} + +.icon-power:before { + content: "\e9b5"; +} + +.icon-star:before { + content: "\e9d9"; +} + +.icon-heart:before { + content: "\e9da"; +} + +.icon-rss:before { + content: "\ea9b"; +} \ No newline at end of file diff --git a/assets/app.css b/assets/app.css index 2bbdd034..7005cabe 100644 --- a/assets/app.css +++ b/assets/app.css @@ -1,5 +1,6 @@ @import "./fonts.css"; @import './defaultStyles.css'; +@import './absicons.css'; body { background-color: #262626; diff --git a/components/app/Appbar.vue b/components/app/Appbar.vue index a2e9a8bd..3b84630a 100644 --- a/components/app/Appbar.vue +++ b/components/app/Appbar.vue @@ -9,7 +9,7 @@
- +

{{ currentLibraryName }}

diff --git a/components/icons/audiobook-svg.vue b/components/icons/audiobook-svg.vue deleted file mode 100644 index 905c83cc..00000000 --- a/components/icons/audiobook-svg.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - \ No newline at end of file diff --git a/components/icons/book-svg.vue b/components/icons/book-svg.vue deleted file mode 100644 index b2e459a4..00000000 --- a/components/icons/book-svg.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - \ No newline at end of file diff --git a/components/icons/comic-svg.vue b/components/icons/comic-svg.vue deleted file mode 100644 index 30903253..00000000 --- a/components/icons/comic-svg.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - \ No newline at end of file diff --git a/components/icons/database-svg.vue b/components/icons/database-svg.vue deleted file mode 100644 index 10929b16..00000000 --- a/components/icons/database-svg.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - \ No newline at end of file diff --git a/components/icons/podcast-svg.vue b/components/icons/podcast-svg.vue deleted file mode 100644 index d025ab0d..00000000 --- a/components/icons/podcast-svg.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - \ No newline at end of file diff --git a/components/modals/LibrariesModal.vue b/components/modals/LibrariesModal.vue index e5b50905..a14628c9 100644 --- a/components/modals/LibrariesModal.vue +++ b/components/modals/LibrariesModal.vue @@ -13,7 +13,7 @@
  • - + {{ library.name }}
  • diff --git a/components/ui/LibraryIcon.vue b/components/ui/LibraryIcon.vue new file mode 100644 index 00000000..a615e84d --- /dev/null +++ b/components/ui/LibraryIcon.vue @@ -0,0 +1,37 @@ + + + \ No newline at end of file diff --git a/components/widgets/LibraryIcon.vue b/components/widgets/LibraryIcon.vue deleted file mode 100644 index 7d8d50ff..00000000 --- a/components/widgets/LibraryIcon.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - \ No newline at end of file diff --git a/static/fonts/absicons/absicons.eot b/static/fonts/absicons/absicons.eot new file mode 100644 index 00000000..b479f3ee Binary files /dev/null and b/static/fonts/absicons/absicons.eot differ diff --git a/static/fonts/absicons/absicons.svg b/static/fonts/absicons/absicons.svg new file mode 100644 index 00000000..0e62145b --- /dev/null +++ b/static/fonts/absicons/absicons.svg @@ -0,0 +1,30 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/fonts/absicons/absicons.ttf b/static/fonts/absicons/absicons.ttf new file mode 100644 index 00000000..d85135f0 Binary files /dev/null and b/static/fonts/absicons/absicons.ttf differ diff --git a/static/fonts/absicons/absicons.woff b/static/fonts/absicons/absicons.woff new file mode 100644 index 00000000..508631de Binary files /dev/null and b/static/fonts/absicons/absicons.woff differ diff --git a/store/globals.js b/store/globals.js index 519d1765..20ce8097 100644 --- a/store/globals.js +++ b/store/globals.js @@ -32,7 +32,8 @@ export const state = () => ({ icon: 'replay_30', value: 30 } - ] + ], + libraryIcons: ['database', 'audiobookshelf', 'books-1', 'books-2', 'book-1', 'microphone-1', 'microphone-3', 'radio', 'podcast', 'rss', 'headphones', 'music', 'file-picture', 'rocket', 'power', 'star', 'heart'] }) export const getters = {