mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-18 15:52:21 +00:00
Seed the page background fallback from the platform color scheme before WebContent has painted. Update the same fallback when the platform theme changes, and when the preferred color scheme is forced through the debug menu, so unpainted web view areas use the matching Canvas color.
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGfx/Color.h>
|
|
#include <LibWeb/CSS/PreferredColorScheme.h>
|
|
#include <LibWeb/Export.h>
|
|
|
|
// https://www.w3.org/TR/css-color-4/#css-system-colors
|
|
namespace Web::CSS::SystemColor {
|
|
|
|
Color accent_color(PreferredColorScheme);
|
|
Color accent_color_text(PreferredColorScheme);
|
|
Color active_text(PreferredColorScheme);
|
|
Color button_border(PreferredColorScheme);
|
|
Color button_face(PreferredColorScheme);
|
|
Color button_text(PreferredColorScheme);
|
|
WEB_API Color canvas(PreferredColorScheme);
|
|
Color canvas_text(PreferredColorScheme);
|
|
Color field(PreferredColorScheme);
|
|
Color field_text(PreferredColorScheme);
|
|
Color gray_text(PreferredColorScheme);
|
|
WEB_API Color highlight(PreferredColorScheme);
|
|
WEB_API Color highlight_text(PreferredColorScheme);
|
|
Color link_text(PreferredColorScheme);
|
|
Color mark(PreferredColorScheme);
|
|
Color mark_text(PreferredColorScheme);
|
|
Color selected_item(PreferredColorScheme);
|
|
Color selected_item_text(PreferredColorScheme);
|
|
Color visited_text(PreferredColorScheme);
|
|
|
|
}
|