mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
d06c7be606
misc/make_icon_themes.py sorted icons by saturation alone, so a white page with a small red mark counted as line art and its dark copy turned the page black: the PDF import icon read black on black (#919, Kellermorph), and the folio, diagram and label icons came out as dark pages with a light border. An icon whose visible pixels are at least 30% near white is now "light art" and inherits from the qet theme untouched; it already reads on a dark toolbar. The generator also removes dark files it no longer produces, so a reclassified icon falls back to the light theme instead of keeping a stale copy. Thirteen files leave ico/themes/qet-dark. tests/qttest/tst_qeticons: every dark theme file, taken as its mean visible color, reaches 3:1 on the dark palette's window color; the lightest-pixel check it replaces let a black page with a light border through. Asking the dark theme for pdf-import, diagram, label, the folio icons and diagram_bg returns the light art.