aboutsummaryrefslogtreecommitdiffstats
path: root/src/qt6gtk2-style/qgtkstyle.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-07-27 01:13:11 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-07-27 01:13:11 -0400
commitfdb3d33075834f0ccb550ea537040ac2466f4fac (patch)
treea934c87d9fc673b8410f8f04640fdfffa2ca3e09 /src/qt6gtk2-style/qgtkstyle.cpp
parenta9fde3a1a12e9801172e6ff75090f430ad8a8f7b (diff)
New upstream version 0.5.upstream/0.5upstream
Diffstat (limited to 'src/qt6gtk2-style/qgtkstyle.cpp')
-rw-r--r--src/qt6gtk2-style/qgtkstyle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt6gtk2-style/qgtkstyle.cpp b/src/qt6gtk2-style/qgtkstyle.cpp
index 3164e2c..32a4a74 100644
--- a/src/qt6gtk2-style/qgtkstyle.cpp
+++ b/src/qt6gtk2-style/qgtkstyle.cpp
@@ -327,7 +327,7 @@ QPalette QGtkStyle::standardPalette() const
GtkWidget *gtkButton = d->gtkWidget("GtkButton");
GtkWidget *gtkEntry = d->getTextColorWidget();
GdkColor gdkBg, gdkBase, gdkText, gdkForeground, gdkSbg, gdkSfg, gdkaSbg, gdkaSfg;
- QColor bg, base, text, fg, highlight, highlightText, inactiveHighlight, inactiveHighlightedTExt;
+ QColor bg, base, text, plText, fg, highlight, highlightText, inactiveHighlight, inactiveHighlightedTExt;
gdkBg = style->bg[GTK_STATE_NORMAL];
gdkForeground = gtk_widget_get_style(gtkButton)->fg[GTK_STATE_NORMAL];
@@ -345,6 +345,7 @@ QPalette QGtkStyle::standardPalette() const
bg = QColor(gdkBg.red>>8, gdkBg.green>>8, gdkBg.blue>>8);
text = QColor(gdkText.red>>8, gdkText.green>>8, gdkText.blue>>8);
+ plText = QColor(gdkText.red>>8, gdkText.green>>8, gdkText.blue>>8, 128);
fg = QColor(gdkForeground.red>>8, gdkForeground.green>>8, gdkForeground.blue>>8);
base = QColor(gdkBase.red>>8, gdkBase.green>>8, gdkBase.blue>>8);
highlight = QColor(gdkSbg.red>>8, gdkSbg.green>>8, gdkSbg.blue>>8);
@@ -362,6 +363,7 @@ QPalette QGtkStyle::standardPalette() const
palette.setColor(QPalette::WindowText, fg);
palette.setColor(QPalette::ButtonText, fg);
palette.setColor(QPalette::Base, base);
+ palette.setColor(QPalette::PlaceholderText, plText);
QColor alternateRowColor = palette.base().color().lighter(93); // ref gtkstyle.c draw_flat_box
GtkWidget *gtkTreeView = d->gtkWidget("GtkTreeView");