Skip to content

Commit e3fd782

Browse files
bgoncalCopilot
andauthored
Improve native loader UI, spacing and font size (#5129)
<!-- Thank you for submitting a Pull Request and helping to improve Home Assistant. Please complete the following sections to help the processing and review of your changes. Please do not delete anything from this template. --> ## Summary <!-- Provide a brief summary of the changes you have made and most importantly what they aim to achieve --> ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. --> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 4f526b7 commit e3fd782

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

Sources/App/Frontend/WebView/Views/HomeAssistantStandByView.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct HomeAssistantStandByView: View {
141141
if emptyState == nil {
142142
HAProgressView()
143143
.transition(.opacity)
144-
.padding(.bottom, DesignSystem.Spaces.ten)
144+
.padding(.bottom, DesignSystem.Spaces.eighteen)
145145
}
146146
}
147147

@@ -185,7 +185,8 @@ struct HomeAssistantStandByView: View {
185185
private var currentServerPillContent: some View {
186186
HStack(spacing: DesignSystem.Spaces.one) {
187187
Text(server.info.name)
188-
.font(.caption.bold())
188+
.font(.headline)
189+
.foregroundStyle(.secondary)
189190
.lineLimit(1)
190191
.padding(.horizontal, DesignSystem.Spaces.two)
191192
.frame(height: Self.serverPillHeight)
@@ -207,7 +208,7 @@ struct HomeAssistantStandByView: View {
207208
private var connectionTypeIndicator: some View {
208209
Button(action: showConnectionTypeToast) {
209210
Image(systemSymbol: connectionTypeIndicatorIcon)
210-
.font(.caption2.bold())
211+
.font(.headline)
211212
.foregroundStyle(Color.haPrimary)
212213
.frame(width: Self.serverPillHeight, height: Self.serverPillHeight)
213214
.modify { view in

Sources/HADesignSystem/Sources/Tokens/DesignSystem.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ public enum DesignSystem {
4444
public static let eight: CGFloat = 64
4545
public static let nine: CGFloat = 72
4646
public static let ten: CGFloat = 80
47+
public static let eleven: CGFloat = 88
48+
public static let twelve: CGFloat = 96
49+
public static let thirteen: CGFloat = 104
50+
public static let fourteen: CGFloat = 112
51+
public static let fifteen: CGFloat = 120
52+
public static let sixteen: CGFloat = 128
53+
public static let seventeen: CGFloat = 136
54+
public static let eighteen: CGFloat = 144
4755
}
4856

4957
public enum CornerRadius {

0 commit comments

Comments
 (0)