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.3k stars 242 forks source link

The stylesheet for QDateTimeEdit #11

Closed sixwaaaay closed 3 years ago

sixwaaaay commented 3 years ago

I found there are no style for QDateTimeEdit,but there are styles for spinbox and doublebox . I had tried to write it ,but it didn't work when I run the application. Can you add the style of QDateTimeEdit into the qt-material, thanks a lot .

QDateTimeEdit::up-button{ subcontrol-origin: border; subcontrol-position: top right; width: 20px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */ image: url(:/icon/primary/uparrow.svg); border-width: 0px; margin-right: 5px; } QDateTimeEdit::up-button:disabled{ image: url(:/icon/disabled/uparrow.svg); } QDateTimeEdit::down-button { subcontrol-origin: border; subcontrol-position: bottom right; width: 20px; image: url(:/icon/primary/downarrow.svg); border-width: 0px; border-top-width: 0; margin-right: 5px; } QDateTimeEdit::down-button:disabled { image: url(:/icon/disabled/downarrow.svg); }

YeisonCardona commented 3 years ago

Hi @WhiteDew100, thanks for your contribution, now QDateTimeEdit share the same theme, and others that were missing too(QLCDNumber and QCalendarWidget) Peek 2020-12-23 12-53