Add rounded square avatars theme option
| @@ -45,6 +45,11 @@ body.square-avatars .avatar img { | ||
| 45 | 45 | border-radius: var(--avatar-base-border-radius) !important; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | +body.rounded-avatars .avatar, | |
| 49 | +body.rounded-avatars .avatar img { | |
| 50 | + border-radius: var(--avatar-base-border-radius-rounded) !important; | |
| 51 | +} | |
| 52 | + | |
| 48 | 53 | /*char list grid mode*/ |
| 49 | 54 | |
| 50 | 55 | body.charListGrid #rm_print_characters_block { |
| @@ -4348,6 +4348,7 @@ | ||
| 4348 | 4348 | <select id="avatar_style" class="widthNatural flex1 margin0 text_pole"> |
| 4349 | 4349 | <option value="0" data-i18n="Circle">Circle</option> |
| 4350 | 4350 | <option value="2" data-i18n="Square">Square</option> |
| 4351 | + <option value="3" data-i18n="Rounded">Rounded</option> | |
| 4351 | 4352 | <option value="1" data-i18n="Rectangle">Rectangle</option> |
| 4352 | 4353 | </select> |
| 4353 | 4354 | </div> |
| @@ -96,6 +96,7 @@ const avatar_styles = { | ||
| 96 | 96 | ROUND: 0, |
| 97 | 97 | RECTANGULAR: 1, |
| 98 | 98 | SQUARE: 2, |
| 99 | + ROUNDED: 3, | |
| 99 | 100 | }; |
| 100 | 101 | |
| 101 | 102 | export const chat_styles = { |
| @@ -1021,6 +1022,7 @@ function applyNoShadows() { | ||
| 1021 | 1022 | function applyAvatarStyle() { |
| 1022 | 1023 | $('body').toggleClass('big-avatars', power_user.avatar_style === avatar_styles.RECTANGULAR); |
| 1023 | 1024 | $('body').toggleClass('square-avatars', power_user.avatar_style === avatar_styles.SQUARE); |
| 1025 | + $('body').toggleClass('rounded-avatars', power_user.avatar_style === avatar_styles.ROUNDED); | |
| 1024 | 1026 | $('#avatar_style').val(power_user.avatar_style).prop('selected', true); |
| 1025 | 1027 | } |
| 1026 | 1028 | |
| @@ -117,6 +117,7 @@ | ||
| 117 | 117 | --avatar-base-width: 50px; |
| 118 | 118 | --avatar-base-border-radius: 2px; |
| 119 | 119 | --avatar-base-border-radius-round: 50%; |
| 120 | + --avatar-base-border-radius-rounded: 10px; | |
| 120 | 121 | --inline-avatar-small-factor: 0.6; |
| 121 | 122 | |
| 122 | 123 | --animation-duration: 125ms; |