123456789101112131415161718192021222324 |
- // Copyright (c) 2016 GitHub, Inc.
- // Use of this source code is governed by the MIT license that can be
- // found in the LICENSE file.
- #ifndef SHELL_COMMON_COLOR_UTIL_H_
- #define SHELL_COMMON_COLOR_UTIL_H_
- #include <string>
- #include "third_party/skia/include/core/SkColor.h"
- namespace electron {
- // Parse hex color like "#FFF" or "#EFEFEF"
- SkColor ParseHexColor(const std::string& name);
- // Convert color to RGB hex value like "#ABCDEF"
- std::string ToRGBHex(SkColor color);
- std::string ToRGBAHex(SkColor color, bool include_hash = true);
- } // namespace electron
- #endif // SHELL_COMMON_COLOR_UTIL_H_
|