Move the active macOS web selection color into LibWebView so AppKit and Qt use the same value when building the WebContent system palette. Qt now also asks AppKit for inactive selection colors on macOS, matching the AppKit frontend while leaving other Qt platforms on QPalette.
16 lines
258 B
C++
16 lines
258 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWebView/PlatformColors.h>
|
|
|
|
namespace WebView {
|
|
|
|
Gfx::Color macos_web_selection_color()
|
|
{
|
|
return Gfx::Color(128, 188, 254, 153);
|
|
}
|
|
|
|
}
|