visual fix
This commit is contained in:
20 files changed
+669
-32
No files matched your search
@@ -159,8 +159,10 @@ private:
|
||||
dec.borderLeft = box.borderLeft;
|
||||
dec.borderTop = box.borderTop;
|
||||
dec.borderBottom = box.borderBottom;
|
||||
dec.borderRight = box.borderRight;
|
||||
|
||||
if (dec.background.isValid() || dec.borderLeft > 0 || dec.borderTop > 0 || dec.borderBottom > 0) {
|
||||
if (dec.background.isValid() || dec.borderLeft > 0 || dec.borderTop > 0
|
||||
|| dec.borderBottom > 0 || dec.borderRight > 0) {
|
||||
m_layout.decorations.append(dec);
|
||||
}
|
||||
|
||||
@@ -247,6 +249,14 @@ private:
|
||||
if (p.words.isEmpty() && p.kpItems.isEmpty())
|
||||
return;
|
||||
|
||||
QColor enclosingBg;
|
||||
for (int i = m_boxStack.size() - 1; i >= 0; --i) {
|
||||
if (m_boxStack[i].box.background.isValid() && m_boxStack[i].box.background.alpha() > 0) {
|
||||
enclosingBg = m_boxStack[i].box.background;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
qreal left = currentLeft();
|
||||
qreal right = currentRight();
|
||||
qreal availWidth = std::max(50.0, m_params.contentWidth - left - right);
|
||||
@@ -379,6 +389,7 @@ private:
|
||||
run.font = tok.font;
|
||||
run.color = tok.style.color;
|
||||
run.background = tok.style.background;
|
||||
run.surfaceBackground = enclosingBg;
|
||||
run.link = tok.style.link;
|
||||
run.underline = tok.style.underline;
|
||||
run.strikeOut = tok.style.strikeOut;
|
||||
|
||||
Reference in new issue
Block a user