diff --git a/images/icons/v2/group-outline-20.svg b/images/icons/v2/group-outline-20.svg deleted file mode 100644 index bea136d49a..0000000000 --- a/images/icons/v2/group-outline-20.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/images/icons/v2/group-outline-24.svg b/images/icons/v2/group-outline-24.svg new file mode 100644 index 0000000000..4f17783f1f --- /dev/null +++ b/images/icons/v2/group-outline-24.svg @@ -0,0 +1 @@ +group-outline-24 \ No newline at end of file diff --git a/images/icons/v2/group-outline-40.svg b/images/icons/v2/group-outline-40.svg deleted file mode 100644 index d6ab151f33..0000000000 --- a/images/icons/v2/group-outline-40.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/images/icons/v2/note-24.svg b/images/icons/v2/note-24.svg new file mode 100644 index 0000000000..694de0fb61 --- /dev/null +++ b/images/icons/v2/note-24.svg @@ -0,0 +1 @@ +note-24 \ No newline at end of file diff --git a/images/note-28.svg b/images/note-28.svg deleted file mode 100644 index be1ba3fc35..0000000000 --- a/images/note-28.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 99187e7d4f..537a4a5cfa 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -3149,7 +3149,7 @@ button.module-conversation-details__action-button { border-radius: 5px; border: 2px solid transparent; display: flex; - padding: 16px 24px; + padding: 8px 24px; user-select: none; width: 100%; @@ -9172,13 +9172,13 @@ button.module-image__border-overlay:focus { .module-group-v2-change--icon { @include light-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-60 ); } @include dark-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-05 ); } @@ -9215,13 +9215,13 @@ button.module-image__border-overlay:focus { .module-group-v1-migration--icon { @include light-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-60 ); } @include dark-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-05 ); } @@ -9737,14 +9737,14 @@ $contact-modal-padding: 18px; @include light-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-75 ); } @include dark-theme { @include color-svg( - '../images/icons/v2/group-outline-20.svg', + '../images/icons/v2/group-outline-24.svg', $color-gray-15 ); } diff --git a/stylesheets/components/Avatar.scss b/stylesheets/components/Avatar.scss index 66547b0142..d7c4455a52 100644 --- a/stylesheets/components/Avatar.scss +++ b/stylesheets/components/Avatar.scss @@ -71,7 +71,6 @@ &__label { align-items: center; display: flex; - font-weight: bold; justify-content: center; text-align: center; text-transform: uppercase; @@ -91,15 +90,15 @@ } &--group { - @include avatar-icon('../images/icons/v2/group-outline-20.svg'); - height: 60%; - width: 60%; + @include avatar-icon('../images/icons/v2/group-outline-24.svg'); + height: 62%; + width: 62%; } &--note-to-self { - @include avatar-icon('../images/note-28.svg'); - height: 70%; - width: 70%; + @include avatar-icon('../images/icons/v2/note-24.svg'); + height: 62%; + width: 62%; } } @@ -108,4 +107,13 @@ } @include avatar-colors(); + + &--undefined { + background-color: $color-gray-15; + color: $color-gray-75; + + &--icon { + background-color: $color-gray-75; + } + } } diff --git a/stylesheets/components/AvatarPreview.scss b/stylesheets/components/AvatarPreview.scss index 1b2dfe9f77..118e13f918 100644 --- a/stylesheets/components/AvatarPreview.scss +++ b/stylesheets/components/AvatarPreview.scss @@ -36,7 +36,7 @@ } &__group { - -webkit-mask: url('../images/icons/v2/group-outline-40.svg') no-repeat + -webkit-mask: url('../images/icons/v2/group-outline-24.svg') no-repeat center; -webkit-mask-size: 70%; height: 100%; diff --git a/stylesheets/components/ProfileEditor.scss b/stylesheets/components/ProfileEditor.scss index 0f36f3ad5f..ff24d25a31 100644 --- a/stylesheets/components/ProfileEditor.scss +++ b/stylesheets/components/ProfileEditor.scss @@ -59,13 +59,31 @@ } &__divider { - border-color: $color-gray-15; border-style: solid; + border-bottom: none; + + @include light-theme { + border-color: $color-gray-15; + } + + @include dark-theme { + border-color: $color-gray-75; + } } &__info { @include font-body-2; - color: $color-gray-60; margin: 16px 0; + + @include light-theme { + color: $color-gray-60; + } + @include dark-theme { + color: $color-gray-25; + } + + a { + text-decoration: none; + } } } diff --git a/ts/components/Avatar.tsx b/ts/components/Avatar.tsx index 8221d25fbf..6ae9c32d9a 100644 --- a/ts/components/Avatar.tsx +++ b/ts/components/Avatar.tsx @@ -14,7 +14,7 @@ import { Spinner } from './Spinner'; import { getInitials } from '../util/getInitials'; import { LocalizerType } from '../types/Util'; -import { AvatarColors, AvatarColorType } from '../types/Colors'; +import { AvatarColorType } from '../types/Colors'; import * as log from '../logging/log'; import { assert } from '../util/assert'; import { shouldBlurAvatar } from '../util/shouldBlurAvatar'; @@ -70,7 +70,7 @@ export const Avatar: FunctionComponent = ({ acceptedMessageRequest, avatarPath, className, - color = AvatarColors[0], + color, conversationType, i18n, isMe, @@ -170,7 +170,7 @@ export const Avatar: FunctionComponent = ({ diff --git a/ts/components/AvatarIconEditor.stories.tsx b/ts/components/AvatarIconEditor.stories.tsx index 3a6e52918f..48e019ac2f 100644 --- a/ts/components/AvatarIconEditor.stories.tsx +++ b/ts/components/AvatarIconEditor.stories.tsx @@ -38,7 +38,7 @@ story.add('Group Icon', () => (
- + { - if (avatarPath) { - return ( - - ); - } - return ( diff --git a/ts/components/AvatarPreview.tsx b/ts/components/AvatarPreview.tsx index 45ff70fd7b..2b45d371bc 100644 --- a/ts/components/AvatarPreview.tsx +++ b/ts/components/AvatarPreview.tsx @@ -178,6 +178,7 @@ export const AvatarPreview = ({ type="button" /> )} + {isEditable &&
}
); diff --git a/ts/components/ProfileEditor.tsx b/ts/components/ProfileEditor.tsx index 2e52b08403..2b4ba7d87e 100644 --- a/ts/components/ProfileEditor.tsx +++ b/ts/components/ProfileEditor.tsx @@ -416,13 +416,14 @@ export const ProfileEditor = ({ avatarValue={avatarBuffer} conversationTitle={getFullNameText()} i18n={i18n} + isEditable onAvatarLoaded={handleAvatarLoaded} onClick={() => { setEditState(EditState.BetterAvatar); }} style={{ - height: 96, - width: 96, + height: 80, + width: 80, }} /> diff --git a/ts/components/conversationList/CreateNewGroupButton.tsx b/ts/components/conversationList/CreateNewGroupButton.tsx index d703f1872d..678df4e371 100644 --- a/ts/components/conversationList/CreateNewGroupButton.tsx +++ b/ts/components/conversationList/CreateNewGroupButton.tsx @@ -5,7 +5,6 @@ import React, { CSSProperties, FunctionComponent } from 'react'; import { BaseConversationListItem } from './BaseConversationListItem'; import { LocalizerType } from '../../types/Util'; -import { AvatarColors } from '../../types/Colors'; type PropsType = { i18n: LocalizerType; @@ -20,7 +19,6 @@ export const CreateNewGroupButton: FunctionComponent = React.memo( return (