From 6e040e418b98f5d4b0ef311f5cf02d8bac3ec4d9 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 5 Jul 2019 16:35:20 -0400 Subject: [PATCH] (js/css) Fix rendering of material icons --- .../AdministrationUI/UIxAdministration.wox | 3 +- .../UIxAdministrationAclEditor.wox | 3 +- .../ContactsUI/UIxContactEditorTemplate.wox | 3 +- .../ContactsUI/UIxContactFoldersView.wox | 23 +++---- .../ContactsUI/UIxContactViewTemplate.wox | 3 +- .../ContactsUI/UIxContactsUserFolders.wox | 5 +- UI/Templates/MailerUI/UIxMailEditor.wox | 17 ++--- .../MailerUI/UIxMailFolderTemplate.wox | 33 +++------- UI/Templates/MailerUI/UIxMailViewTemplate.wox | 6 +- UI/Templates/SchedulerUI/UIxCalDayView.wox | 3 +- UI/Templates/SchedulerUI/UIxCalMainView.wox | 65 +++++++------------ UI/Templates/SchedulerUI/UIxCalMonthView.wox | 3 +- .../SchedulerUI/UIxCalMulticolumnDayView.wox | 3 +- UI/Templates/SchedulerUI/UIxCalWeekView.wox | 3 +- UI/Templates/UIxTopnavToolbar.wox | 6 +- .../js/Common/sgColorPicker.directive.js | 2 +- .../Scheduler/sgCalendarDayBlock.directive.js | 8 +-- .../sgCalendarListEvent.directive.js | 8 +-- .../sgCalendarMonthEvent.directive.js | 8 +-- .../scss/components/icon/icon.scss | 61 ++--------------- 20 files changed, 79 insertions(+), 187 deletions(-) diff --git a/UI/Templates/AdministrationUI/UIxAdministration.wox b/UI/Templates/AdministrationUI/UIxAdministration.wox index e92ff29f8..c823117ef 100644 --- a/UI/Templates/AdministrationUI/UIxAdministration.wox +++ b/UI/Templates/AdministrationUI/UIxAdministration.wox @@ -108,8 +108,7 @@ - + {{ folder.type == 'Contact' ? 'contacts' : 'event' }} diff --git a/UI/Templates/AdministrationUI/UIxAdministrationAclEditor.wox b/UI/Templates/AdministrationUI/UIxAdministrationAclEditor.wox index 78b1dbf0f..24e7b1f28 100644 --- a/UI/Templates/AdministrationUI/UIxAdministrationAclEditor.wox +++ b/UI/Templates/AdministrationUI/UIxAdministrationAclEditor.wox @@ -31,8 +31,7 @@
{{::acl.user.cn}}
-
+
{{ acl.folderType == 'AddressBook' ? 'contacts' : 'event' }} {{::acl.folder.name}}
diff --git a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox index bf280f9ff..9d373520f 100644 --- a/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox +++ b/UI/Templates/ContactsUI/UIxContactEditorTemplate.wox @@ -12,8 +12,7 @@
- - + {{ addressbook.sortedBy('c_cn') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_sn') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_givenname') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_mail') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_screenname') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_o') ? 'check' : null }} - - + {{ addressbook.sortedBy('c_telephonenumber') ? 'check' : null }} @@ -567,7 +560,7 @@
- import_export + import_export
diff --git a/UI/Templates/ContactsUI/UIxContactViewTemplate.wox b/UI/Templates/ContactsUI/UIxContactViewTemplate.wox index a9aec84c8..d55de0538 100644 --- a/UI/Templates/ContactsUI/UIxContactViewTemplate.wox +++ b/UI/Templates/ContactsUI/UIxContactViewTemplate.wox @@ -13,8 +13,7 @@
- -

{{folder.displayName}}

+ {{ folder.type == 'Contact' ? 'contacts' : 'event' }} +
{{folder.displayName}}
diff --git a/UI/Templates/MailerUI/UIxMailEditor.wox b/UI/Templates/MailerUI/UIxMailEditor.wox index f768aba45..5231d616e 100644 --- a/UI/Templates/MailerUI/UIxMailEditor.wox +++ b/UI/Templates/MailerUI/UIxMailEditor.wox @@ -19,11 +19,10 @@
- + {{ editor.message.editable.priority == 1 ? 'check' : null }} - + {{ editor.message.editable.priority == 2 ? 'check' : null }} - + {{ (!editor.message.editable.priority || editor.message.editable.priority == 3) ? 'check' : null }} - + {{ editor.message.editable.priority == 4 ? 'check' : null }} - + {{ editor.message.editable.priority == 5 ? 'check' : null }} diff --git a/UI/Templates/MailerUI/UIxMailFolderTemplate.wox b/UI/Templates/MailerUI/UIxMailFolderTemplate.wox index e958d9ac9..8727539b6 100644 --- a/UI/Templates/MailerUI/UIxMailFolderTemplate.wox +++ b/UI/Templates/MailerUI/UIxMailFolderTemplate.wox @@ -42,16 +42,14 @@ - - + {{ app.search.match == 'AND' ? 'check' : null }} + - - + {{ app.search.match == 'OR' ? 'check' : null }} + @@ -60,8 +58,7 @@ label:aria-label="Search" ng-click="app.toggleAdvancedSearch()" ng-disabled="app.search.params.length == 0"> - + {{ app.service.selectedFolder.$isLoading ? 'stop' : 'search' }}
@@ -84,37 +81,27 @@ - - + {{ mailbox.sortedBy('subject') ? 'check' : null }} - - + {{ mailbox.sortedBy('from') ? 'check' : null }} - - + {{ mailbox.sortedBy('date') ? 'check' : null }} - - + {{ mailbox.sortedBy('size') ? 'check' : null }} - - + {{ mailbox.sortedBy('arrival') ? 'check' : null }} diff --git a/UI/Templates/MailerUI/UIxMailViewTemplate.wox b/UI/Templates/MailerUI/UIxMailViewTemplate.wox index 1f2bf190f..17275b14f 100644 --- a/UI/Templates/MailerUI/UIxMailViewTemplate.wox +++ b/UI/Templates/MailerUI/UIxMailViewTemplate.wox @@ -15,8 +15,7 @@ class="md-icon-button md-primary md-hue-1 hide show-gt-xs" aria-hidden="true" ng-if="::!isPopup"> - + {{ centerIsClose ? 'fullscreen_exit' : 'fullscreen' }}
- + {{ viewer.message.isflagged ? 'star' : 'star_border' }} - - + {{ list.filteredBy('view_all') ? 'check' : null }} - - + {{ list.filteredBy('view_today') ? 'check' : null }} - - + {{ list.filteredBy('view_next7') ? 'check' : null }} - - + {{ list.filteredBy('view_next14') ? 'check' : null }} - - + {{ list.filteredBy('view_next31') ? 'check' : null }} - - + {{ list.filteredBy('view_thismonth') ? 'check' : null }} - - + {{ list.filteredBy('view_thisyear') ? 'check' : null }} - - + {{ list.filteredBy('view_future') ? 'check' : null }} - - + {{ list.filteredBy('view_selectedday') ? 'check' : null }} - - + {{ list.filteredBy('view_not_started') ? 'check' : null }} - - + {{ list.filteredBy('view_overdue') ? 'check' : null }} - - + {{ list.filteredBy('view_incomplete') ? 'check' : null }} @@ -256,56 +244,47 @@ - - + {{ list.sortedBy('title') ? 'check' : null }} - - + {{ list.sortedBy('location') ? 'check' : null }} - - + {{ list.sortedBy('calendarName') ? 'check' : null }} - - + {{ list.sortedBy('start') ? 'check' : null }} - - + {{ list.sortedBy('end') ? 'check' : null }} - - + {{ list.sortedBy('end') ? 'check' : null }} - - + {{ list.sortedBy('priority') ? 'check' : null }} - - + {{ list.sortedBy('category') ? 'check' : null }} - - + {{ list.sortedBy('status') ? 'check' : null }} @@ -606,7 +585,7 @@
- import_export + import_export
diff --git a/UI/Templates/SchedulerUI/UIxCalMonthView.wox b/UI/Templates/SchedulerUI/UIxCalMonthView.wox index 43591ad87..ee8aaed5e 100644 --- a/UI/Templates/SchedulerUI/UIxCalMonthView.wox +++ b/UI/Templates/SchedulerUI/UIxCalMonthView.wox @@ -12,8 +12,7 @@ - fullscreen_exit - fullscreen + label:aria-label="Toggle Menu"> + {{ leftIsClose ? 'fullscreen_exit' : 'fullscreen' }} '; if (selected) - column += ''; + column += 'check'; column += ''; } diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarDayBlock.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarDayBlock.directive.js index 53a74904e..580ca5c9a 100644 --- a/UI/WebServerResources/js/Scheduler/sgCalendarDayBlock.directive.js +++ b/UI/WebServerResources/js/Scheduler/sgCalendarDayBlock.directive.js @@ -53,13 +53,13 @@ // Icons ' ', // Component is reccurent - ' ', + ' repeat', // Component has an alarm - ' ', + ' alarm', // Component is confidential - ' ', + ' visibility_off', // Component is private - ' ', + ' vpn_key', ' ', // Location '
', diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarListEvent.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarListEvent.directive.js index 3c0ae7285..dffe0d83b 100644 --- a/UI/WebServerResources/js/Scheduler/sgCalendarListEvent.directive.js +++ b/UI/WebServerResources/js/Scheduler/sgCalendarListEvent.directive.js @@ -46,13 +46,13 @@ ' {{ ::component.c_title }}', ' ', // Component is reccurent - ' ', + ' repeat', // Component has an alarm - ' ', + ' alarm', // Component is confidential - ' ', + ' visibility_off', // Component is private - ' ', + ' vpn_key', ' ', // Time '
', diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarMonthEvent.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarMonthEvent.directive.js index 307563981..39d3819c4 100644 --- a/UI/WebServerResources/js/Scheduler/sgCalendarMonthEvent.directive.js +++ b/UI/WebServerResources/js/Scheduler/sgCalendarMonthEvent.directive.js @@ -46,13 +46,13 @@ ' {{ '+p+'block.component.summary }}', ' ', // Component is reccurent - ' ', + ' repeat', // Component has an alarm - ' ', + ' alarm', // Component is confidential - ' ', + ' visibility_off', // Component is private - ' ', + ' vpn_key', ' ', '
' ].join(''); diff --git a/UI/WebServerResources/scss/components/icon/icon.scss b/UI/WebServerResources/scss/components/icon/icon.scss index c58f1b04f..abc8b1b05 100644 --- a/UI/WebServerResources/scss/components/icon/icon.scss +++ b/UI/WebServerResources/scss/components/icon/icon.scss @@ -87,79 +87,28 @@ md-icon { &.md-flip { transform: scaleY(-1); } -// &.icon-add:before { -// content: "\e317"; - // } - &.icon-alarm:before { - content: "\e855"; - } &.icon-delegated:before, &.icon-arrow-forward:before { - content: "\e5c8"; + content: "arrow_forward"; } &.icon-accepted:before, &.icon-check:before { - content: "\e5ca"; - } - &.icon-clear:before { - content: "\e14c"; - } - &.icon-contacts:before { - content: "\e0ba"; - } - &.icon-event:before { - content: "\e878"; - } - &.icon-expand-less:before { - content: "\e5ce"; - } - &.icon-expand-more:before { - content: "\e5cf"; - } - &.icon-fullscreen:before { - content: "\e5d0"; - } - &.icon-fullscreen-exit:before { - content: "\e5d1"; + content: "check"; } &.icon-needs-action:before, &.icon-help:before { - content: "\e887"; + content: "help"; } &.icon-more-horiz:before { content: "\e5d3"; } &.icon-tentative:before, &.icon-person:before { - content: "\e7fd"; + content: "person"; } -// &.icon_public:before { -// content: "\e80b"; -// } &.icon-declined:before, &.icon-remove-circle:before { - content: "\e15c"; - } - &.icon-repeat:before { - content: "\e040"; - } - &.icon-search:before { - content: "\e8b6"; - } - &.icon-star:before { - content: "\e838"; - } - &.icon-star-border:before { - content: "\e83a"; - } - &.icon-stop:before { - content: "\e047"; - } - &.icon-visibility-off:before { - content: "\e8f5"; - } - &.icon-vpn-key:before { - content: "\e0da"; + content: "remove_circle"; } }