Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cad1baf8d489506f5b9a2793fd18309655d75b0c
      
https://github.com/WebKit/WebKit/commit/cad1baf8d489506f5b9a2793fd18309655d75b0c
  Author: Gerald Squelart <[email protected]>
  Date:   2025-12-18 (Thu, 18 Dec 2025)

  Changed paths:
    M Source/WebCore/rendering/AttachmentLayout.mm
    M Source/WebCore/rendering/mac/RenderThemeMac.mm

  Log Message:
  -----------
  Use better colors for selected legacy attachments in inactive windows
https://bugs.webkit.org/show_bug.cgi?id=304379
rdar://132956951

Reviewed by Cameron McCormack.

The legacy attachment used hard-coded inactive-window colors, which made
the title text hard to read, especially in dark mode.
Instead we now use standard system colors, which match surrounding text
and adapt to the current system appearance.

No new tests, it's only changing colors.

* Source/WebCore/rendering/AttachmentLayout.mm:
(WebCore::titleTextColorForAttachment):
* Source/WebCore/rendering/mac/RenderThemeMac.mm:
(WebCore::paintAttachmentTitleBackground):

Canonical link: https://commits.webkit.org/304703@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to