Skip to content

Commit

Permalink
Set QPalette::PlaceholderText color
Browse files Browse the repository at this point in the history
Fixes #176
  • Loading branch information
grulja committed Sep 20, 2022
1 parent 5bf025a commit 0785914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/adwaitacolors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ QPalette Colors::palette(ColorVariant variant)
palette.setColor(QPalette::All, QPalette::AlternateBase, colorsGlobal->adwaitaColor(ColorsPrivate::base_color, variant));
palette.setColor(QPalette::All, QPalette::ToolTipBase, colorsGlobal->adwaitaColor(ColorsPrivate::osd_bg_color, variant));
palette.setColor(QPalette::All, QPalette::ToolTipText, colorsGlobal->adwaitaColor(ColorsPrivate::osd_text_color, variant));
palette.setColor(QPalette::All, QPalette::PlaceholderText, colorsGlobal->adwaitaColor(ColorsPrivate::fg_color, variant));
palette.setColor(QPalette::All, QPalette::Text, colorsGlobal->adwaitaColor(ColorsPrivate::fg_color, variant));
palette.setColor(QPalette::All, QPalette::Button, buttonColor);
palette.setColor(QPalette::All, QPalette::ButtonText, colorsGlobal->adwaitaColor(ColorsPrivate::fg_color, variant));
Expand All @@ -477,6 +478,7 @@ QPalette Colors::palette(ColorVariant variant)
palette.setColor(QPalette::Disabled, QPalette::WindowText, colorsGlobal->adwaitaColor(ColorsPrivate::insensitive_fg_color, variant));
palette.setColor(QPalette::Disabled, QPalette::Base, colorsGlobal->adwaitaColor(ColorsPrivate::base_color, variant));
palette.setColor(QPalette::Disabled, QPalette::AlternateBase, colorsGlobal->adwaitaColor(ColorsPrivate::base_color, variant));
palette.setColor(QPalette::Disabled, QPalette::PlaceholderText, colorsGlobal->adwaitaColor(ColorsPrivate::insensitive_fg_color, variant));
palette.setColor(QPalette::Disabled, QPalette::Text, colorsGlobal->adwaitaColor(ColorsPrivate::insensitive_fg_color, variant));
palette.setColor(QPalette::Disabled, QPalette::Button, colorsGlobal->adwaitaColor(ColorsPrivate::insensitive_bg_color, variant));
palette.setColor(QPalette::Disabled, QPalette::ButtonText, colorsGlobal->adwaitaColor(ColorsPrivate::insensitive_fg_color, variant));
Expand All @@ -500,6 +502,7 @@ QPalette Colors::palette(ColorVariant variant)
palette.setColor(QPalette::Inactive, QPalette::AlternateBase, colorsGlobal->adwaitaColor(ColorsPrivate::backdrop_base_color, variant));
palette.setColor(QPalette::Inactive, QPalette::ToolTipBase, colorsGlobal->adwaitaColor(ColorsPrivate::osd_bg_color, variant));
palette.setColor(QPalette::Inactive, QPalette::ToolTipText, colorsGlobal->adwaitaColor(ColorsPrivate::osd_text_color, variant));
palette.setColor(QPalette::Inactive, QPalette::PlaceholderText, colorsGlobal->adwaitaColor(ColorsPrivate::backdrop_fg_color, variant));
palette.setColor(QPalette::Inactive, QPalette::Text, colorsGlobal->adwaitaColor(ColorsPrivate::backdrop_fg_color, variant));
palette.setColor(QPalette::Inactive, QPalette::Button, disabledButtonColor);
palette.setColor(QPalette::Inactive, QPalette::ButtonText, colorsGlobal->adwaitaColor(ColorsPrivate::backdrop_fg_color, variant));
Expand Down

0 comments on commit 0785914

Please sign in to comment.