mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add rounded square avatars theme option
This commit is contained in:
@ -45,6 +45,11 @@ body.square-avatars .avatar img {
|
||||
border-radius: var(--avatar-base-border-radius) !important;
|
||||
}
|
||||
|
||||
body.rounded-avatars .avatar,
|
||||
body.rounded-avatars .avatar img {
|
||||
border-radius: var(--avatar-base-border-radius-rounded) !important;
|
||||
}
|
||||
|
||||
/*char list grid mode*/
|
||||
|
||||
body.charListGrid #rm_print_characters_block {
|
||||
|
@ -4348,6 +4348,7 @@
|
||||
<select id="avatar_style" class="widthNatural flex1 margin0 text_pole">
|
||||
<option value="0" data-i18n="Circle">Circle</option>
|
||||
<option value="2" data-i18n="Square">Square</option>
|
||||
<option value="3" data-i18n="Rounded">Rounded</option>
|
||||
<option value="1" data-i18n="Rectangle">Rectangle</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -96,6 +96,7 @@ const avatar_styles = {
|
||||
ROUND: 0,
|
||||
RECTANGULAR: 1,
|
||||
SQUARE: 2,
|
||||
ROUNDED: 3,
|
||||
};
|
||||
|
||||
export const chat_styles = {
|
||||
@ -1021,6 +1022,7 @@ function applyNoShadows() {
|
||||
function applyAvatarStyle() {
|
||||
$('body').toggleClass('big-avatars', power_user.avatar_style === avatar_styles.RECTANGULAR);
|
||||
$('body').toggleClass('square-avatars', power_user.avatar_style === avatar_styles.SQUARE);
|
||||
$('body').toggleClass('rounded-avatars', power_user.avatar_style === avatar_styles.ROUNDED);
|
||||
$('#avatar_style').val(power_user.avatar_style).prop('selected', true);
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,7 @@
|
||||
--avatar-base-width: 50px;
|
||||
--avatar-base-border-radius: 2px;
|
||||
--avatar-base-border-radius-round: 50%;
|
||||
--avatar-base-border-radius-rounded: 10px;
|
||||
--inline-avatar-small-factor: 0.6;
|
||||
|
||||
--animation-duration: 125ms;
|
||||
|
Reference in New Issue
Block a user