mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Added a user_list_style personal user setting to the bottom of Settings > Display settings > Theme section which controls the look of the right sidebar user list. The radio button UI includes a preview of what the styles look like. The setting is intended to eventually have 3 possible values: COMPACT, WITH_STATUS and WITH_AVATAR; the final value is not yet implemented. Co-authored-by: Tim Abbott <tabbott@zulip.com>
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
export type StreamNotificationSettings = {
 | 
						|
    enable_stream_audible_notifications: boolean;
 | 
						|
    enable_stream_desktop_notifications: boolean;
 | 
						|
    enable_stream_email_notifications: boolean;
 | 
						|
    enable_stream_push_notifications: boolean;
 | 
						|
    wildcard_mentions_notify: boolean;
 | 
						|
};
 | 
						|
 | 
						|
export type PmNotificationSettings = {
 | 
						|
    enable_desktop_notifications: boolean;
 | 
						|
    enable_sounds: boolean;
 | 
						|
    enable_offline_push_notifications: boolean;
 | 
						|
    enable_offline_email_notifications: boolean;
 | 
						|
};
 | 
						|
 | 
						|
export type UserSettings = (StreamNotificationSettings & PmNotificationSettings) & {
 | 
						|
    color_scheme: number;
 | 
						|
    default_language: string;
 | 
						|
    default_view: string;
 | 
						|
    desktop_icon_count_display: number;
 | 
						|
    demote_inactive_streams: number;
 | 
						|
    dense_mode: boolean;
 | 
						|
    email_notifications_batching_period_seconds: number;
 | 
						|
    emojiset: string;
 | 
						|
    enable_digest_emails: boolean;
 | 
						|
    enable_drafts_synchronization: boolean;
 | 
						|
    enable_login_emails: boolean;
 | 
						|
    enable_marketing_emails: boolean;
 | 
						|
    enable_online_push_notifications: boolean;
 | 
						|
    enter_sends: boolean;
 | 
						|
    escape_navigates_to_default_view: boolean;
 | 
						|
    fluid_layout_width: boolean;
 | 
						|
    high_contrast_mode: boolean;
 | 
						|
    left_side_userlist: boolean;
 | 
						|
    message_content_in_email_notifications: boolean;
 | 
						|
    notification_sound: string;
 | 
						|
    pm_content_in_desktop_notifications: boolean;
 | 
						|
    presence_enabled: boolean;
 | 
						|
    realm_name_in_notifications: boolean;
 | 
						|
    user_list_style: number;
 | 
						|
    starred_message_counts: boolean;
 | 
						|
    translate_emoticons: boolean;
 | 
						|
    display_emoji_reaction_users: boolean;
 | 
						|
    twenty_four_hour_time: boolean;
 | 
						|
    send_stream_typing_notifications: boolean;
 | 
						|
    send_private_typing_notifications: boolean;
 | 
						|
    send_read_receipts: boolean;
 | 
						|
};
 | 
						|
 | 
						|
export let user_settings = {} as UserSettings;
 | 
						|
 | 
						|
export function initialize_user_settings(params: Record<string, UserSettings>): void {
 | 
						|
    user_settings = params.user_settings;
 | 
						|
}
 |