commit b2689324f279c8c8a313096659029ad72ad8a21e
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Jan 24 08:42:04 2025 +0100
Improve grid display in MathGrid dialog (#13146)
The colors suggested by SH_Table_GridLineColor style hint do not
have sufficient contrast particularly in dark mode.
(cherry picked from commit 989a68cda7f2256fa8fe4fa4cd9818951d00dd4a)
---
src/frontends/qt/EmptyTable.cpp | 3 +++
status.24x | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/frontends/qt/EmptyTable.cpp b/src/frontends/qt/EmptyTable.cpp
index d606515c74..2fac7cfb9c 100644
--- a/src/frontends/qt/EmptyTable.cpp
+++ b/src/frontends/qt/EmptyTable.cpp
@@ -33,6 +33,9 @@ EmptyTable::EmptyTable(QWidget * parent, int rows, int
columns)
setFocusPolicy(Qt::NoFocus);
setEditTriggers(QAbstractItemView::NoEditTriggers);
adjustMinCellSize();
+ // The style-hinted colors have too less contrast
+ // particularly in dark mode (#13146)
+ setStyleSheet("QTableWidget {gridline-color: grey;}");
}
diff --git a/status.24x b/status.24x
index dda1e817a1..784eab57af 100644
--- a/status.24x
+++ b/status.24x
@@ -36,6 +36,9 @@ What's new
Errors") after it has been closed, with the next error at/after cursor
highlighted.
+- The grid display in the MathGrid dialog has been visually improved,
particularly
+ in dark mode (bug 13146).
+
* DOCUMENTATION AND LOCALIZATION
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs