UN-GCPDS / qt-material

Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6
https://qt-material.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
2.33k stars 247 forks source link

improved foreground text in widgets without focus #114

Open gustavo-iniguez-goya opened 4 months ago

gustavo-iniguez-goya commented 4 months ago

For widgets' default state, use primaryColor with less opacity, instead of primaryTextColor.

Issue #85

gustavo-iniguez-goya commented 4 months ago

Original style (2.14):

dark: image

light: image

Proposed style: image

image

For light theme style maybe is clearer the original style (2.14).

Another option could be to have another primary text color for dark themes (like secondaryDarkColor): primaryTextDarkColor or similar.

herrfrei commented 4 months ago

Hi, this looks fine to me. I see another problem (at least, it was one for me): The styles of several widgets are entered twice (wit different settings):

QDateEdit,
QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTextEdit,
QLineEdit,
QPushButton {
  color: {{primaryColor}};
  background-color: {{secondaryDarkColor}};
  border: 2px solid {{primaryColor}};
  border-radius: 4px;
  height: {{36|density(density_scale, border=2)}}px;
}

QDateEdit,
QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTreeView,
QListView,
QLineEdit,
QComboBox {
  color: {{primaryTextColor}};
  padding-left: {{16|density(density_scale)}}px;
  border-radius: 0px;
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: {{36|density(density_scale, border=2)}}px;
  background-color: {{secondaryColor|opacity(0.75)}};
  border: 2px solid {{secondaryTextColor|opacity(0.2)}};
  border-width: 0 0 2px 0;
}