Commit 0d3971b
Revert "mac: Fix macOS 26 traffic light contrast for dark frames in light mode"
This reverts commit f3c6fcb.
Reason for revert: causes problem in window background blending on
Win10 + ANGLE D3D11 for translucent windows. crbug.com/445485657
Original change's description:
> mac: Fix macOS 26 traffic light contrast for dark frames in light mode
>
> In macOS 26, the window traffic light buttons can lose contrast and
> become invisible on inactive windows. This occurs when the operating
> system is in light mode while the window frame uses a dark background
> color.
>
> It appears that this is because macOS is using a window's NSAppearance
> to determine the traffic lights' color. Bad colors are chosen by the
> system when a light appearance (NSAppearanceNameAqua) uses dark colors.
>
> To fix this, the window's NSAppearance is now set based on the luminance
> of its frame color rather than the browser-wide theme. If the frame
> color is dark, the window's appearance is now set to dark.
>
> Fixed: 442612600
> Change-Id: I65ac33324d2db2bec12a9a856fd0126fe265207e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6914855
> Commit-Queue: Keren Zhu <[email protected]>
> Reviewed-by: Tom Lukaszewicz <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1512214}
Bug: 445485657
Change-Id: Iede19df3ebf832c71b8c6ca5a547361ff1308e00
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7062815
Commit-Queue: Keren Zhu <[email protected]>
Reviewed-by: Tom Lukaszewicz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1532391}1 parent 5d24194 commit 0d3971b
File tree
16 files changed
+55
-54
lines changed- chrome/browser/ui/views/frame
- ui/views
- test
- widget
- desktop_aura
16 files changed
+55
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6009 | 6009 | | |
6010 | 6010 | | |
6011 | 6011 | | |
6012 | | - | |
6013 | | - | |
6014 | | - | |
6015 | | - | |
6016 | | - | |
6017 | 6012 | | |
6018 | 6013 | | |
6019 | 6014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
873 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
194 | | - | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | | - | |
253 | | - | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
155 | | - | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
574 | 576 | | |
575 | | - | |
576 | | - | |
| 577 | + | |
| 578 | + | |
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| |||
0 commit comments