Title: [277731] trunk/Source/WebKit
Revision
277731
Author
akeer...@apple.com
Date
2021-05-19 10:57:06 -0700 (Wed, 19 May 2021)

Log Message

[iOS][FCR] <select multiple> picker checkmarks should use large symbol scale
https://bugs.webkit.org/show_bug.cgi?id=225936
<rdar://problem/77942151>

Reviewed by Wenson Hsieh.

* UIProcess/ios/forms/WKFormSelectPicker.mm:
(-[WKSelectPickerTableViewController tableView:cellForRowAtIndexPath:]):

Set the cell's image view's preferredSymbolConfiguration to use a
UIImageSymbolScaleLarge scale, and a UIFontTextStyleBody text style
to support Dynamic Type sizes.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (277730 => 277731)


--- trunk/Source/WebKit/ChangeLog	2021-05-19 17:54:14 UTC (rev 277730)
+++ trunk/Source/WebKit/ChangeLog	2021-05-19 17:57:06 UTC (rev 277731)
@@ -1,3 +1,18 @@
+2021-05-19  Aditya Keerthi  <akeer...@apple.com>
+
+        [iOS][FCR] <select multiple> picker checkmarks should use large symbol scale
+        https://bugs.webkit.org/show_bug.cgi?id=225936
+        <rdar://problem/77942151>
+
+        Reviewed by Wenson Hsieh.
+
+        * UIProcess/ios/forms/WKFormSelectPicker.mm:
+        (-[WKSelectPickerTableViewController tableView:cellForRowAtIndexPath:]):
+
+        Set the cell's image view's preferredSymbolConfiguration to use a
+        UIImageSymbolScaleLarge scale, and a UIFontTextStyleBody text style
+        to support Dynamic Type sizes.
+
 2021-05-19  Chris Dumez  <cdu...@apple.com>
 
         [Hardening] CARingBuffer should validate the storage size before adopting it

Modified: trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm (277730 => 277731)


--- trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm	2021-05-19 17:54:14 UTC (rev 277730)
+++ trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm	2021-05-19 17:57:06 UTC (rev 277731)
@@ -996,6 +996,7 @@
     [cell textLabel].text = option->text;
     [cell textLabel].enabled = !option->disabled;
     [cell setUserInteractionEnabled:!option->disabled];
+    [cell imageView].preferredSymbolConfiguration = [UIImageSymbolConfiguration configurationWithTextStyle:UIFontTextStyleBody scale:UIImageSymbolScaleLarge];
 
     if (option->isSelected)
         [cell imageView].image = [UIImage systemImageNamed:@"checkmark.circle.fill"];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to