Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Oct 24, 2024
1 parent f4dc8b6 commit 4155c8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Whisky/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -3135,7 +3135,7 @@
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "AVX Emulation"
"value" : "Advertise AVX Support"
}
}
}
Expand All @@ -3145,7 +3145,7 @@
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Significantly impacts performance"
"value" : "May negatively impact performance"
}
}
}
Expand Down
15 changes: 9 additions & 6 deletions Whisky/Views/Bottle/ConfigView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,15 @@ struct ConfigView: View {
Toggle(isOn: $bottle.settings.avxEnabled) {
VStack(alignment: .leading) {
Text("config.avx")
HStack(alignment: .firstTextBaseline) {
Image(systemName: "exclamationmark.triangle")
.font(.subheadline)
Text("config.avx.warning")
.fontWeight(.light)
.font(.subheadline)
if bottle.settings.avxEnabled {
HStack(alignment: .firstTextBaseline) {
Image(systemName: "exclamationmark.triangle.fill")
.symbolRenderingMode(.multicolor)
.font(.subheadline)
Text("config.avx.warning")
.fontWeight(.light)
.font(.subheadline)
}
}
}
}
Expand Down

0 comments on commit 4155c8b

Please sign in to comment.