From 8c5027248b2ca412d3937fd8c5eff56575f13eea Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 6 Feb 2026 16:27:40 -0800 Subject: [PATCH] Show "Favorites" label below logo when viewing favorites timeline Adds a visual indicator under the Damus logo when the favorites timeline is active. Uses fixed height with opacity to prevent layout bouncing when switching timelines. --- .../Timeline/Views/PostingTimelineView.swift | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/damus/Features/Timeline/Views/PostingTimelineView.swift b/damus/Features/Timeline/Views/PostingTimelineView.swift index f4fbb411..c42acfa9 100644 --- a/damus/Features/Timeline/Views/PostingTimelineView.swift +++ b/damus/Features/Timeline/Views/PostingTimelineView.swift @@ -95,15 +95,23 @@ struct PostingTimelineView: View { } .frame(maxWidth: .infinity, alignment: .trailing) .overlay { - Image("damus-home") - .resizable() - .frame(width:30,height:30) - .shadow(color: DamusColors.purple, radius: 2) - .opacity(isSideBarOpened ? 0 : 1) - .animation(isSideBarOpened ? .none : .default, value: isSideBarOpened) - .onTapGesture { - isSideBarOpened.toggle() + VStack(spacing: 2) { + Image("damus-home") + .resizable() + .frame(width: 30, height: 30) + .shadow(color: DamusColors.purple, radius: 2) + if damus_state.settings.enable_favourites_feature { + Text(timeline_source == .favorites ? timeline_source.description : " ") + .font(.caption2) + .foregroundColor(.secondary) + .opacity(timeline_source == .favorites ? 1 : 0) } + } + .opacity(isSideBarOpened ? 0 : 1) + .animation(isSideBarOpened ? .none : .default, value: isSideBarOpened) + .onTapGesture { + isSideBarOpened.toggle() + } } } .padding(.horizontal, 20)