mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-14 13:30:23 +00:00
fixes idk
This commit is contained in:
parent
bd37eb9db4
commit
d3c4a0bb98
4 changed files with 7 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ struct DownloadView: View {
|
|||
}
|
||||
}
|
||||
.deviceScaled()
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
}
|
||||
|
||||
private var activeDownloadsView: some View {
|
||||
|
|
|
|||
|
|
@ -188,5 +188,6 @@ struct SearchContent: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(StackNavigationViewStyle())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue