mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
themes: support opacity of navigation labels
This commit is contained in:
parent
2c1e8e33fe
commit
ccad4af10c
@ -159,6 +159,9 @@ QString VNote::getNavigationLabelStyle(const QString &p_str) const
|
|||||||
lastLen = p_str.size();
|
lastLen = p_str.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QColor bg(g_palette->color("navigation_label_bg"));
|
||||||
|
bg.setAlpha(200);
|
||||||
|
|
||||||
return QString("background-color: %1;"
|
return QString("background-color: %1;"
|
||||||
"color: %2;"
|
"color: %2;"
|
||||||
"font-size: %3pt;"
|
"font-size: %3pt;"
|
||||||
@ -167,7 +170,7 @@ QString VNote::getNavigationLabelStyle(const QString &p_str) const
|
|||||||
"border-radius: 3px;"
|
"border-radius: 3px;"
|
||||||
"min-width: %5px;"
|
"min-width: %5px;"
|
||||||
"max-width: %5px;")
|
"max-width: %5px;")
|
||||||
.arg(g_palette->color("navigation_label_bg"))
|
.arg(bg.name(QColor::HexArgb))
|
||||||
.arg(g_palette->color("navigation_label_fg"))
|
.arg(g_palette->color("navigation_label_fg"))
|
||||||
.arg(fontPt)
|
.arg(fontPt)
|
||||||
.arg(fontFamily)
|
.arg(fontFamily)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user