Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: sky/sdk/lib/framework/rendering/paragraph.dart

Issue 1162573007: Fix RenderParagraph to respect text color. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fixed null Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/painting/Color.dart ('k') | sky/tests/framework/color_accessors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/paragraph.dart
diff --git a/sky/sdk/lib/framework/rendering/paragraph.dart b/sky/sdk/lib/framework/rendering/paragraph.dart
index 911ad15ed0b9f92ab62aa2b7de950703264313e8..a92b9fef644c70bd34351a2cc993f0377124f340 100644
--- a/sky/sdk/lib/framework/rendering/paragraph.dart
+++ b/sky/sdk/lib/framework/rendering/paragraph.dart
@@ -58,7 +58,9 @@ class RenderParagraph extends RenderBox {
}
void paint(RenderObjectDisplayList canvas) {
- // _layoutRoot.rootElement.style['color'] = 'rgba(' + ...color... + ')';
+ if (_color != null)
+ _layoutRoot.rootElement.style['color'] =
+ 'rgba(${_color.red}, ${_color.green}, ${_color.blue}, ${_color.alpha / 255.0 })';
_layoutRoot.paint(canvas);
}
« no previous file with comments | « sky/engine/core/painting/Color.dart ('k') | sky/tests/framework/color_accessors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698