Skip to content

Commit

Permalink
GeneralSettingsViewのレイアウト修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Nov 7, 2024
1 parent 9b0182d commit e5a1416
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ import Observation
task = Task {
await withTaskGroup(of: Void.self) { group in
group.addTask {
for await patterns in await shortcutService.patternsStream() {
for await value in await shortcutService.patternsStream() {
await MainActor.run {
self.patterns = patterns
self.patterns = value
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@
}
}
},
"AutomaticallyLaunchAtLogin" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Automatically launch at login"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ログイン時に自動的に起動"
}
}
}
},
"checkForUpdates" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -97,18 +113,18 @@
}
}
},
"launchAtLogin" : {
"launch" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Launch at Login:"
"value" : "Launch:"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ログイン時に起動:"
"value" : "起動:"
}
}
}
Expand Down Expand Up @@ -369,34 +385,34 @@
}
}
},
"softwareUpdate" : {
"terminateApp" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Software Update:"
"value" : "Quit ShiftWindow"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ソフトウェアアップデート:"
"value" : "ShiftWindowを終了"
}
}
}
},
"terminateApp" : {
"update" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Quit ShiftWindow"
"value" : "Update:"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "ShiftWindowを終了"
"value" : "アップデート:"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ struct GeneralSettingsView: View {

var body: some View {
VStack(alignment: .leading) {
LabeledContent {
Toggle(isOn: $viewModel.launchAtLoginIsEnabled) {
Text("enable", bundle: .module)
Form {
LabeledContent {
Toggle(isOn: $viewModel.launchAtLoginIsEnabled) {
Text("AutomaticallyLaunchAtLogin", bundle: .module)
}
} label: {
Text("launch", bundle: .module)
}
} label: {
Text("launchAtLogin", bundle: .module)
}
LabeledContent {
Toggle(isOn: $viewModel.checkForUpdatesIsEnabled) {
Text("AutomaticallyCheckForUpdates", bundle: .module)
LabeledContent {
Toggle(isOn: $viewModel.checkForUpdatesIsEnabled) {
Text("AutomaticallyCheckForUpdates", bundle: .module)
}
} label: {
Text("update", bundle: .module)
}
} label: {
Text("softwareUpdate", bundle: .module)
}
Divider()
Form {
Divider()
LabeledContent {
Text("permissionExplain", bundle: .module)
.frame(width: 300, alignment: .leading)
Expand Down

0 comments on commit e5a1416

Please sign in to comment.