Skip to content

Commit

Permalink
Update SettingsMainView layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jan 25, 2025
1 parent 2b582b7 commit 667aa79
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ShowyEdge/swift/Views/Settings/SettingsMainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ struct SettingsMainView: View {

GroupBox(label: Text("Color")) {
VStack(alignment: .leading, spacing: 10.0) {
ScrollView {
if $userSettings.customizedLanguageColors.count > 0 {
if $userSettings.customizedLanguageColors.count > 0 {
ScrollView {
Grid(alignment: .leading) {
ForEach($userSettings.customizedLanguageColors) { $languageColor in
GridRow {
Expand Down Expand Up @@ -95,12 +95,11 @@ struct SettingsMainView: View {
}
}
}
} else {
Text(currentInputSourceLocalizedName)
.foregroundColor(.gray)
}
}.frame(height: 200)
} else {
Text(currentInputSourceLocalizedName)
.foregroundColor(.gray)
}
.frame(height: 200)

Button(
action: {
Expand Down

0 comments on commit 667aa79

Please sign in to comment.