mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Use same placeholder color for all inputs
This commit is contained in:
parent
cb9b452666
commit
04781de828
1 changed files with 4 additions and 1 deletions
|
@ -285,8 +285,11 @@ QTabWidget {{ background-color: {}; }}
|
||||||
palette.setColor(QPalette.ColorRole.Base, frame_bg)
|
palette.setColor(QPalette.ColorRole.Base, frame_bg)
|
||||||
palette.setColor(QPalette.ColorRole.ToolTipBase, frame_bg)
|
palette.setColor(QPalette.ColorRole.ToolTipBase, frame_bg)
|
||||||
|
|
||||||
|
palette.setColor(
|
||||||
|
QPalette.ColorRole.PlaceholderText, self.qcolor(colors.SLIGHTLY_GREY_TEXT)
|
||||||
|
)
|
||||||
|
|
||||||
disabled_color = self.qcolor(colors.DISABLED)
|
disabled_color = self.qcolor(colors.DISABLED)
|
||||||
palette.setColor(QPalette.ColorRole.PlaceholderText, disabled_color)
|
|
||||||
palette.setColor(
|
palette.setColor(
|
||||||
QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, disabled_color
|
QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, disabled_color
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue