minor fixes

This commit is contained in:
True Zhuanjia
2026-04-04 01:19:18 +08:00
parent 7cd857a38b
commit 88bc5c7551
3 changed files with 6 additions and 2 deletions
@@ -131,7 +131,9 @@ final class OSCProfilesTableViewController: UIViewController, UITableViewDelegat
)
inputAlert.addTextField { textField in
textField.placeholder = SwiftLocalizationHelper.localizedString(forKey: "name")
textField.textColor = .lightGray
if #available(iOS 13.0, *) {
// textField.textColor = .label
}
textField.clearButtonMode = .whileEditing
textField.borderStyle = .none
}
@@ -2239,7 +2239,7 @@ BOOL isCustomResolution(int resolutionSelected) {
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
textField.placeholder = [LocalizationHelper localizedStringForKey:@"%d", self->oswLayoutFingers];
textField.keyboardType = UIKeyboardTypeNumberPad;
textField.keyboardType = UIKeyboardTypeASCIICapable;
textField.delegate = self;
}];
@@ -1309,9 +1309,11 @@ struct KeyView: View {
if let name = key.sfSymbolName, !name.isEmpty {
Image(systemName: name)
.font(.system(size: fontSize))
.foregroundColor(.black)
} else {
Text(key.label)
.font(.system(size: fontSize, weight: .regular, design: .rounded))
.foregroundColor(.black)
}
}