Repository navigation
Commit 2c53cc5
Merge release/27.4 into trunk (#26183)
* Reader: Keep the article toolbar icons in one colour style after a like (#26169)
* Update the Reader article toolbar buttons in place
Rebuilding every toolbar item on each like, save or count change let
iOS 26 give the new items the dark style while the floating toolbar
stayed light, so some icons turned white on a light bar (CMM-2548).
The toolbar now keeps its buttons and reconfigures them. It only
rebuilds them when the comment or like button appears or disappears.
Custom-view buttons don't resize by themselves when their title
changes, so they're resized after each update.
* Add a release note for the Reader toolbar fix
* Name the check that decides whether to rebuild the Reader toolbar
The toolbar reuses its buttons unless the comment or like button has
to appear or disappear. That check compared two optionals against two
flags in one condition, which was hard to read. It now compares a
small `Layout` value, with a comment saying when the toolbar is
rebuilt.
Adds a test for the rebuild case: the first comment on a post whose
comments are closed adds the comment button.
* Reader: Stop clipping the like count when it gets slightly wider (#26177)
After a like, the like button could keep its old width and clip the new
count, e.g. 1 to 2 on iOS 18, or 1 to 9 on iOS 26.
`sizeToFit()` measures the button at its current width, and the button
fits a slightly wider title into that width instead of growing. Size the
button from an unconstrained measurement instead.
* Reader: Put the article toolbar buttons on frosted capsules so they stay readable (#26176)
* Put the Reader article toolbar buttons on frosted capsules
On iOS 26 and later, the toolbar's shared Liquid Glass takes its colour
from the content under it. Over some images it ends up close in
brightness to the icons: white icons on light glass in Dark Mode on
iOS 27, the green like and save icons on grey glass, and white icons on
light glass over busy images on iOS 26 (CMM-2548).
The buttons now sit on two frosted capsules (systemThickMaterial). They
stay near white or near black and switch together with the icons, so
the icons stay legible over any content. Selected icons use one shade
darker green in light mode, and counts stay in the label colour.
With no shared glass, iOS 27 draws a frosted band behind the whole
toolbar, so the scroll view's bottom edge effect is hidden.
A capsule pins each button to its sizeThatFits width. A button's
intrinsic content size lags behind a new configuration, and a stack
view sized from it clipped a count after it changed width.
* Add a release note for the frosted Reader toolbar
* Hide the Reader reblog button when the post can't be reblogged
Signed out, or on a private site, the reblog button was shown disabled.
On iOS 26+ the frosted capsules set the icon colour directly, so the
disabled reblog icon no longer greyed out and looked tappable. Leave the
button out instead, on every iOS version.
* Find the like button inside its frosted capsule in the growth test
On iOS 26+ the like button sits on a capsule, so it is no longer the toolbar's last custom view, and its width is pinned by a constraint.
* Patch invalid GlotPress placeholders before localization linting (#26182)
* Update app translations – `Localizable.strings`
* Update plural translations from GlotPress
* Update WordPress metadata translations
* Update Jetpack metadata translations
* Bump version number
---------
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
Co-authored-by: Tony Li <tony.li@automattic.com>1 parent f5bcd7c commit 2c53cc5
48 files changed
Lines changed: 2865 additions & 4054 deletions
File tree
- Tests/KeystoneTests/Tests/Reader
- WordPress
- Classes
- ViewRelated/Reader/Detail
- Views
- Resources
- ar.lproj
- bg.lproj
- cs.lproj
- cy.lproj
- da.lproj
- de.lproj
- en-AU.lproj
- en-CA.lproj
- en-GB.lproj
- es.lproj
- fr.lproj
- he.lproj
- hr.lproj
- hu.lproj
- id.lproj
- is.lproj
- it.lproj
- ja.lproj
- ko.lproj
- nb.lproj
- nl.lproj
- pl.lproj
- pt-BR.lproj
- pt.lproj
- ro.lproj
- ru.lproj
- sk.lproj
- sq.lproj
- sv.lproj
- th.lproj
- tr.lproj
- zh-Hans.lproj
- zh-Hant.lproj
- config
- fastlane
- jetpack_metadata/default
- lanes
- metadata
- de-DE
- default
- en-GB
- es-ES
- es-MX
- nl-NL
- tr
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
| 1093 | + | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | | - | |
| 1099 | + | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | 1102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
| |||
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
261 | | - | |
262 | 266 | | |
263 | 267 | | |
264 | 268 | | |
| |||
784 | 788 | | |
785 | 789 | | |
786 | 790 | | |
787 | | - | |
788 | | - | |
| 791 | + | |
789 | 792 | | |
790 | 793 | | |
791 | 794 | | |
| |||
0 commit comments