From bea53103bcb0e8a6905da2deedaeddda35a05348 Mon Sep 17 00:00:00 2001 From: Kevin Boos Date: Mon, 11 Mar 2024 20:37:32 -0700 Subject: [PATCH] Remove old unused IMG_LOADING resource --- src/home/room_screen.rs | 3371 +++++++++++++++++++-------------------- 1 file changed, 1685 insertions(+), 1686 deletions(-) diff --git a/src/home/room_screen.rs b/src/home/room_screen.rs index 98ffa65d..0eef3e72 100644 --- a/src/home/room_screen.rs +++ b/src/home/room_screen.rs @@ -1,1686 +1,1685 @@ -//! A room screen is the UI page that displays a single Room's timeline of events/messages -//! along with a message input bar at the bottom. - -use std::{collections::BTreeMap, ops::{DerefMut, Range}, sync::{Arc, Mutex}}; - -use imbl::Vector; -use makepad_widgets::*; -use matrix_sdk::ruma::{ - events::{ - AnySyncTimelineEvent, - AnySyncMessageLikeEvent, - FullStateEventContent, - room::{ - guest_access::GuestAccess, - history_visibility::HistoryVisibility, - join_rules::JoinRule, message::{MessageType, RoomMessageEventContent}, MediaSource, - }, - SyncMessageLikeEvent, - }, uint, MilliSecondsSinceUnixEpoch, OwnedRoomId, -}; -use matrix_sdk_ui::timeline::{ - self, - AnyOtherFullStateEventContent, - EventTimelineItem, - MembershipChange, - MemberProfileChange, - RoomMembershipChange, - VirtualTimelineItem, - TimelineDetails, - TimelineItemContent, - TimelineItemKind, TimelineItem, -}; - -use rangemap::RangeSet; -use unicode_segmentation::UnicodeSegmentation; -use crate::{ - media_cache::{MediaCache, MediaCacheEntry, AVATAR_CACHE}, - shared::{avatar::{AvatarRef, AvatarWidgetRefExt}, text_or_image::TextOrImageWidgetRefExt}, - sliding_sync::{submit_async_request, take_timeline_update_receiver, MatrixRequest}, - utils::{self, unix_time_millis_to_datetime, MediaFormatConst}, -}; - -live_design! { - import makepad_draw::shader::std::*; - import makepad_widgets::base::*; - import makepad_widgets::theme_desktop_dark::*; - - import crate::shared::styles::*; - import crate::shared::helpers::*; - import crate::shared::search_bar::SearchBar; - import crate::shared::avatar::Avatar; - import crate::shared::text_or_image::TextOrImage; - - IMG_DEFAULT_AVATAR = dep("crate://self/resources/img/default_avatar.png") - IMG_LOADING = dep("crate://self/resources/img/loading.png") - ICO_FAV = dep("crate://self/resources/icon_favorite.svg") - ICO_COMMENT = dep("crate://self/resources/icon_comment.svg") - ICO_REPLY = dep("crate://self/resources/icon_reply.svg") - ICO_SEND = dep("crate://self/resources/icon_send.svg") - ICO_LIKES = dep("crate://self/resources/icon_likes.svg") - ICO_USER = dep("crate://self/resources/icon_user.svg") - ICO_ADD = dep("crate://self/resources/icon_add.svg") - - FONT_SIZE_SUB = 9.5 - FONT_SIZE_P = 12.5 - - TEXT_SUB = { - font_size: (FONT_SIZE_SUB), - font: {path: dep("crate://makepad-widgets/resources/GoNotoKurrent-Regular.ttf")} - } - - TEXT_P = { - font_size: (FONT_SIZE_P), - height_factor: 1.65, - font: {path: dep("crate://makepad-widgets/resources/GoNotoKurrent-Regular.ttf")} - } - - COLOR_BG = #xfff8ee - COLOR_BRAND = #xf88 - COLOR_BRAND_HOVER = #xf66 - COLOR_META_TEXT = #xaaa - COLOR_META = #xccc - COLOR_META_INV = #xfffa - COLOR_OVERLAY_BG = #x000000d8 - COLOR_DIVIDER = #x00000018 - COLOR_DIVIDER_DARK = #x00000044 - COLOR_READ_MARKER = #xeb2733 - COLOR_PROFILE_CIRCLE = #xfff8ee - COLOR_P = #x999 - - FillerY = {width: Fill} - - FillerX = {height: Fill} - - - IconButton =