From 578d3b36a4994150391bfb9a0f9c8357297853d2 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 21 Oct 2019 13:34:53 +0200 Subject: [PATCH] Merge calendar and subscription list Signed-off-by: Georg Ehrke Alternative design with calendar-icon Signed-off-by: Georg Ehrke Move new calendar to bottom of list Signed-off-by: Georg Ehrke Reset new calendar menu on close Signed-off-by: Georg Ehrke use actions instead of counter Signed-off-by: Georg Ehrke --- css/app-navigation.scss | 21 ++ css/icons.scss | 2 + img/LICENSES.md | 10 + img/new-calendar-with-task-list.svg | 1 + img/new-calendar.svg | 1 + src/components/AppNavigation/CalendarList.vue | 40 +-- .../CalendarList/CalendarListNew.vue | 294 ++++++++++++++---- .../CalendarList/SubscriptionListNew.vue | 129 -------- 8 files changed, 275 insertions(+), 223 deletions(-) create mode 100644 img/new-calendar-with-task-list.svg create mode 100644 img/new-calendar.svg delete mode 100644 src/components/AppNavigation/CalendarList/SubscriptionListNew.vue diff --git a/css/app-navigation.scss b/css/app-navigation.scss index ed54a213e..807495ff9 100644 --- a/css/app-navigation.scss +++ b/css/app-navigation.scss @@ -206,6 +206,27 @@ } } + .app-navigation-entry-new-calendar { + .app-navigation-entry__title { + color: var(--color-text-maxcontrast) !important; + } + + &:hover, + &--open { + .app-navigation-entry__title { + color: var(--color-text-light) !important; + } + } + + .action-item:not(.action-item--open) { + .action-item__menutoggle:not(:hover):not(:focus):not(:active) { + opacity: .5; + } + } + + } + + ul { // Calendar list items / Subscription list items diff --git a/css/icons.scss b/css/icons.scss index 9664b22f2..0cec66776 100644 --- a/css/icons.scss +++ b/css/icons.scss @@ -26,6 +26,8 @@ @include icon-black-white('eye', 'calendar', 4); @include icon-black-white('invitees-no-response', 'calendar', 5); @include icon-black-white('leftarrow', 'calendar', 2); +@include icon-black-white('new-calendar', 'calendar', 2); +@include icon-black-white('new-calendar-with-task-list', 'calendar', 2); @include icon-black-white('random', 'calendar', 1); @include icon-black-white('reminder', 'calendar', 4); @include icon-black-white('reminder-audio', 'calendar', 1); diff --git a/img/LICENSES.md b/img/LICENSES.md index 5af608eda..751bae4f6 100644 --- a/img/LICENSES.md +++ b/img/LICENSES.md @@ -39,3 +39,13 @@ - Created by: Google - License: Apache License version 2.0 - Link: https://material.io/resources/icons/?search=view_&icon=view_week&style=baseline + +## new-calendar.svg +- Created by: Austin Andrews +- License: Apache License version 2.0 +- Link: https://materialdesignicons.com/icon/calendar-blank + +## new-calendar-with-task-list.svg +- Created by: Google +- License: Apache License version 2.0 +- Link: https://materialdesignicons.com/icon/calendar-check diff --git a/img/new-calendar-with-task-list.svg b/img/new-calendar-with-task-list.svg new file mode 100644 index 000000000..676c3dfb5 --- /dev/null +++ b/img/new-calendar-with-task-list.svg @@ -0,0 +1 @@ + diff --git a/img/new-calendar.svg b/img/new-calendar.svg new file mode 100644 index 000000000..307d35c68 --- /dev/null +++ b/img/new-calendar.svg @@ -0,0 +1 @@ + diff --git a/src/components/AppNavigation/CalendarList.vue b/src/components/AppNavigation/CalendarList.vue index 29ae22167..38eacadf1 100644 --- a/src/components/AppNavigation/CalendarList.vue +++ b/src/components/AppNavigation/CalendarList.vue @@ -24,30 +24,22 @@ id="calendars-list" name="list" tag="ul"> - + - - - - - - + - +