mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
Bigger font for focused status
This commit is contained in:
parent
93d9ded447
commit
b9793057e0
3 changed files with 12 additions and 4 deletions
|
@ -48,6 +48,14 @@ public extension Font {
|
|||
static var scaledHeadlineFont: UIFont {
|
||||
customUIFont(size: userScaledFontSize(baseSize: headline))
|
||||
}
|
||||
|
||||
static var scaledBodyFocused: Font {
|
||||
customFont(size: userScaledFontSize(baseSize: body + 2), relativeTo: .body)
|
||||
}
|
||||
|
||||
static var scaledBodyFocusedFont: UIFont {
|
||||
customUIFont(size: userScaledFontSize(baseSize: body + 2))
|
||||
}
|
||||
|
||||
static var scaledBody: Font {
|
||||
customFont(size: userScaledFontSize(baseSize: body), relativeTo: .body)
|
||||
|
|
|
@ -140,7 +140,7 @@ public struct StatusDetailView: View {
|
|||
StatusRowView(viewModel: { .init(status: status,
|
||||
client: client,
|
||||
routerPath: routerPath,
|
||||
isFocused: !viewModel.isLoadingContext) })
|
||||
isFocused: true) })
|
||||
.overlay {
|
||||
GeometryReader { reader in
|
||||
VStack {}
|
||||
|
|
|
@ -15,10 +15,10 @@ struct StatusRowTextView: View {
|
|||
emojis: viewModel.finalStatus.emojis,
|
||||
language: viewModel.finalStatus.language,
|
||||
lineLimit: viewModel.lineLimit)
|
||||
.font(.scaledBody)
|
||||
.font(viewModel.isFocused ? .scaledBodyFocused : .scaledBody)
|
||||
.foregroundColor(viewModel.textDisabled ? .gray : theme.labelColor)
|
||||
.emojiSize(Font.scaledBodyFont.emojiSize)
|
||||
.emojiBaselineOffset(Font.scaledBodyFont.emojiBaselineOffset)
|
||||
.emojiSize(viewModel.isFocused ? Font.scaledBodyFocusedFont.emojiSize : Font.scaledBodyFont.emojiSize)
|
||||
.emojiBaselineOffset(viewModel.isFocused ? Font.scaledBodyFocusedFont.emojiBaselineOffset : Font.scaledBodyFont.emojiBaselineOffset)
|
||||
.environment(\.openURL, OpenURLAction { url in
|
||||
viewModel.routerPath.handleStatus(status: viewModel.finalStatus, url: url)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue