asteria-archive-otori / Echidna

[WIP] A friendlier code editor than your current one.
Mozilla Public License 2.0
14 stars 0 forks source link

UI design with theming-in mind. #3

Closed togetherwithasteria closed 2 years ago

togetherwithasteria commented 3 years ago

As the plan is to make a drop-in replacement for VSCode that feels very familiar towards people already used with VSCode, we need to hack a lot of Qt's default UI, as VSCode does a lot of UI hacks too. Qt has the QWidget:::setGraphicsEffect() method to add additional effect to the widget that isn't available in QSS. Including things like shadows, which is used a lot by VSCode for their panels.

togetherwithasteria commented 3 years ago

Found this:

https://doc.qt.io/qt-5/qicon.html

Wowwey, there's just so many Qt APIs.

togetherwithasteria commented 3 years ago

It seems that we need to do some manual paintings by ourself, which honestly I'm not pro at currently, but after familiarizing with how to do manual painting in Qt, it might get easier in making these. Perhaps make it in a different repo.

Not sure whether we should put this in our MVP, but Echidna will eventually escalates to a whole new component library lol.