#include "chrome/browser/themes/theme_properties.h"
#include <memory>
#include <optional>
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "chrome/browser/themes/browser_theme_pack.h"
#include "ui/gfx/color_palette.h"
#include "ui/native_theme/native_theme.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif
namespace {
constexpr char kAlignmentCenter[] = …;
constexpr char kAlignmentTop[] = …;
constexpr char kAlignmentBottom[] = …;
constexpr char kAlignmentLeft[] = …;
constexpr char kAlignmentRight[] = …;
constexpr char kTilingNoRepeat[] = …;
constexpr char kTilingRepeatX[] = …;
constexpr char kTilingRepeatY[] = …;
constexpr char kTilingRepeat[] = …;
SkColor GetLightModeColor(int id) { … }
std::optional<SkColor> GetIncognitoColor(int id) { … }
std::optional<SkColor> GetDarkModeColor(int id) { … }
}
constexpr int ThemeProperties::kFrameHeightAboveTabs;
int ThemeProperties::StringToAlignment(const std::string& alignment) { … }
int ThemeProperties::StringToTiling(const std::string& tiling) { … }
std::string ThemeProperties::AlignmentToString(int alignment) { … }
std::string ThemeProperties::TilingToString(int tiling) { … }
color_utils::HSL ThemeProperties::GetDefaultTint(int id,
bool incognito,
bool dark_mode) { … }
SkColor ThemeProperties::GetDefaultColor(int id,
bool incognito,
bool dark_mode) { … }