Skip to content

Commit

Permalink
Merge pull request #2232 from anyproto/ios-3540-update-all-objects-wi…
Browse files Browse the repository at this point in the history
…dget-design

iOS-3540 All Objects | Update  widget design
  • Loading branch information
joe-pusya authored Oct 16, 2024
2 parents 5d3de35 + ce9c167 commit e102a36
Showing 1 changed file with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,26 @@ struct AllContentWidgetView: View {
}

var body: some View {
LinkWidgetViewContainer(
title: Loc.allObjects,
icon: .Widget.allContent,
isExpanded: .constant(false),
dragId: nil,
homeState: $homeState,
allowMenuContent: false,
allowContent: false,
allowContextMenuItems: false,
headerAction: {
model.onTapWidget()
},
removeAction: nil,
content: { EmptyView() }
)
HStack(spacing: 0) {
Image(asset: .Widget.allContent)
.foregroundColor(.Text.primary)
.frame(width: 20, height: 20)

Spacer.fixedWidth(8)

AnytypeText(Loc.allObjects, style: .previewTitle2Medium)
.foregroundColor(.Text.primary)
.lineLimit(1)

Spacer()
}
.padding(.all, 16)
.background(Color.Widget.card)
.cornerRadius(16, style: .continuous)
.fixTappableArea()
.onTapGesture {
model.onTapWidget()
}
.allowsHitTesting(!homeState.isEditWidgets)
}
}

0 comments on commit e102a36

Please sign in to comment.