Faces for the selected letters, project format version 11 (13.2)
This commit is contained in:
1 parent
802ae82f72
commit
dcedfea53f
29 files changed
+869
-139
No files matched your search
@@ -44,6 +44,10 @@ void TextColorModelTests::colorAppliesToSelectionAndFollowsEdits()
|
||||
{
|
||||
LayerTextStyle style;
|
||||
style.content = QStringLiteral("Hello world");
|
||||
// The whole text takes every channel of its colour.
|
||||
style.setColor(PaletteColor{0.25, 0.5, 0.75}, {0, 0});
|
||||
QVERIFY(style.red == 0.25 && style.green == 0.5 && style.blue == 0.75 && !style.colorRuns);
|
||||
style.setColor(PaletteColor::black(), {0, 11});
|
||||
style.setColor(red, {6, 5});
|
||||
QCOMPARE(style.colorRuns.value(), (std::vector{run(6, 5, red)}));
|
||||
QVERIFY(style.color(5) == PaletteColor::black() && style.color(6) == red);
|
||||
|
||||
Reference in new issue
Block a user