[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] gsoc-2022-chariri-3 a42eb7f 11/36: [ftinspect] Fix gri
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] gsoc-2022-chariri-3 a42eb7f 11/36: [ftinspect] Fix grid background in dark mode. |
Date: |
Wed, 27 Jul 2022 06:32:44 -0400 (EDT) |
branch: gsoc-2022-chariri-3
commit a42eb7f95da33025122e949c98033eb4ae99ef26
Author: Charlie Jiang <w@chariri.moe>
Commit: Charlie Jiang <w@chariri.moe>
[ftinspect] Fix grid background in dark mode.
* src/ftinspect/panels/singular.cpp: Force white as the background color.
Set overlay label's foreground color to the correct color.
---
src/ftinspect/panels/singular.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/ftinspect/panels/singular.cpp
b/src/ftinspect/panels/singular.cpp
index 2c824d4..726c105 100644
--- a/src/ftinspect/panels/singular.cpp
+++ b/src/ftinspect/panels/singular.cpp
@@ -222,6 +222,7 @@ SingularTab::createLayout()
glyphView_->setViewportUpdateMode(QGraphicsView::SmartViewportUpdate);
glyphView_->setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
glyphView_->setScene(glyphScene_);
+ glyphView_->setBackgroundBrush(Qt::white);
gridItem_ = new Grid(glyphView_, graphicsDefault_->gridPen,
graphicsDefault_->axisPen);
@@ -239,6 +240,7 @@ SingularTab::createLayout()
hintFont.setPixelSize(24);
mouseUsageHint_->setFont(hintFont);
mouseUsageHint_->setAttribute(Qt::WA_TransparentForMouseEvents, true);
+ mouseUsageHint_->setStyleSheet("QLabel { color : black; }");
glyphIndexLabel_ = new QLabel(glyphView_);
glyphNameLabel_ = new QLabel(glyphView_);
@@ -249,6 +251,9 @@ SingularTab::createLayout()
glyphIndexLabel_->setAttribute(Qt::WA_TransparentForMouseEvents, true);
glyphNameLabel_->setAttribute(Qt::WA_TransparentForMouseEvents, true);
+ glyphIndexLabel_->setStyleSheet("QLabel { color : black; }");
+ glyphNameLabel_->setStyleSheet("QLabel { color : black; }");
+
indexSelector_ = new GlyphIndexSelector(this);
indexSelector_->setSingleMode(true);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] gsoc-2022-chariri-3 a42eb7f 11/36: [ftinspect] Fix grid background in dark mode.,
Werner Lemberg <=