summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/webpage.cpp')
-rw-r--r--plugins/NewStory/src/webpage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/NewStory/src/webpage.cpp b/plugins/NewStory/src/webpage.cpp
index 1c74ea683c..f4b9be0c99 100644
--- a/plugins/NewStory/src/webpage.cpp
+++ b/plugins/NewStory/src/webpage.cpp
@@ -39,6 +39,18 @@ cairo_surface_t *dib_to_surface(CTxDIB &img)
return surface;
}
+litehtml::string NSWebPage::resolve_color(const litehtml::string &color) const
+{
+ char buf[20];
+
+ if (color == "NSText") {
+ mir_snprintf(buf, "#%02X%02X%02X", GetRValue(clText), GetGValue(clText), GetBValue(clText));
+ return buf;
+ }
+
+ return windows_container::resolve_color(color);
+}
+
void NSWebPage::on_image_loaded(const wchar_t *file, const wchar_t *url, bool redraw_only)
{
if (!mir_wstrncmp(file, L"file://", 7))