fixes idk

This commit is contained in:
Francesco 2025-05-31 17:51:40 +02:00
parent bd37eb9db4
commit d3c4a0bb98
4 changed files with 7 additions and 8 deletions

View file

@ -76,9 +76,9 @@ struct TabBar: View {
}
}) {
Image(systemName: "x.circle")
.font(.system(size: 30))
.font(.system(size: 25))
.foregroundStyle(.gray)
.frame(width: 24, height: 24)
.frame(width: 20, height: 20)
.matchedGeometryEffect(id: "x.circle", in: animation)
.padding(16)
.background(

View file

@ -71,6 +71,7 @@ struct DownloadView: View {
}
}
.deviceScaled()
.navigationViewStyle(StackNavigationViewStyle())
}
private var activeDownloadsView: some View {

View file

@ -188,5 +188,6 @@ struct SearchContent: View {
}
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -82,9 +82,6 @@ struct SettingsViewAbout: View {
Text("AKA Sulfur")
.font(.caption)
.foregroundColor(.secondary)
Text("Version \(version)")
.font(.subheadline)
.foregroundColor(.secondary)
}
Spacer()
}
@ -249,11 +246,11 @@ extension Color {
Scanner(string: hexTwo).scanHexInt64(&int)
let a, r, g, b: UInt64
switch hexTwo.count {
case 3: // RGB (12-bit)
case 3:
(a, r, g, b) = (255, (int >> 8) * 17, (int >> 4 & 0xF) * 17, (int & 0xF) * 17)
case 6: // RGB (24-bit)
case 6:
(a, r, g, b) = (255, int >> 16, int >> 8 & 0xFF, int & 0xFF)
case 8: // ARGB (32-bit)
case 8:
(a, r, g, b) = (int >> 24, int >> 16 & 0xFF, int >> 8 & 0xFF, int & 0xFF)
default:
(a, r, g, b) = (1, 1, 1, 0)