feat: support more color formats for backgroundColor (#31868)

This commit is contained in:
Shelley Vohr
2022-03-21 18:35:54 +01:00
committed by GitHub
parent 4b8b492b62
commit db79734bfb
13 changed files with 144 additions and 55 deletions

View File

@@ -159,7 +159,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
bool IsKiosk();
bool IsTabletMode() const;
virtual void SetBackgroundColor(const std::string& color_name);
std::string GetBackgroundColor();
std::string GetBackgroundColor(gin_helper::Arguments* args);
void SetHasShadow(bool has_shadow);
bool HasShadow();
void SetOpacity(const double opacity);