mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
When selecting special logos, set their color correctly
Adapted from 860accd01f
.
This commit is contained in:
parent
3f8289e7b5
commit
1d4d07b66e
@ -136,7 +136,8 @@ void InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
void drawLogo(PainterInfo & pi, InsetSpecialChar::Kind kind, int & x, int & y) {
|
void drawLogo(PainterInfo & pi, InsetSpecialChar::Kind kind, int & x, int & y) {
|
||||||
FontInfo const & font = pi.base.font;
|
FontInfo font = pi.base.font;
|
||||||
|
font.setPaintColor(pi.textColor(font.realColor()));
|
||||||
int const em = theFontMetrics(font).em();
|
int const em = theFontMetrics(font).em();
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case InsetSpecialChar::PHRASE_LYX:
|
case InsetSpecialChar::PHRASE_LYX:
|
||||||
|
@ -94,6 +94,8 @@ What's new
|
|||||||
- Fix on-screen display of font changes for text-in-math, so that now
|
- Fix on-screen display of font changes for text-in-math, so that now
|
||||||
$\textbf{\textsc{a}}$ is also boldened on screen other than in output.
|
$\textbf{\textsc{a}}$ is also boldened on screen other than in output.
|
||||||
|
|
||||||
|
- When selecting special logos, set their color correctly.
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user