skia2/experimental/sktext/editor/Defaults.h
Julia Lavrova ad5944cf8d Refactoring Text Editor (in progress)
Insert/Delete/Backspace
Status line

Change-Id: I38727ddb86bf20cdd6c64363c33ffda03ab3c2c7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/431179
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2021-08-09 15:06:56 +00:00

27 lines
836 B
C++

// Copyright 2021 Google LLC.
#ifndef Defaults_DEFINED
#define Defaults_DEFINED
#include "experimental/sktext/include/Types.h"
#include "include/core/SkColor.h"
namespace skia {
namespace editor {
using namespace skia::text;
const TextDirection DEFAULT_TEXT_DIRECTION = TextDirection::kLtr;
const TextAlign DEFAULT_TEXT_ALIGN = TextAlign::kLeft;
const SkColor DEFAULT_TEXT_FOREGROUND = SK_ColorBLACK;
const SkColor DEFAULT_TEXT_BACKGROUND = SK_ColorWHITE;
const SkColor DEFAULT_STATUS_FOREGROUND = SK_ColorRED;
const SkColor DEFAULT_STATUS_BACKGROUND = SK_ColorLTGRAY;
const SkScalar DEFAULT_CURSOR_WIDTH = 2;
const SkColor DEFAULT_CURSOR_COLOR = SK_ColorGRAY;
const SkColor DEFAULT_SELECTION_COLOR = SK_ColorCYAN;
const SkScalar DEFAULT_STATUS_HEIGHT = 25;
} // namespace editor
} // namespace skia
#endif // Defaults_DEFINED