support change font size using setFont(...)
shinespeciall opened this issue · comments
I have made some changes, let me know if it works!
@shinespeciall How did you make 00 and FF bytes the same color?
i think that is cused by the phantomstyle theme i am using or the palette settings for the whole project:
phantomstyle: https://github.com/randrew/phantomstyle/tree/master
custom color in the project: https://github.com/wario-land/WL4Editor/blob/chunk_editor/Themes.h
reset the project's UI palette: https://github.com/wario-land/WL4Editor/blob/chunk_editor/WL4EditorWindow.cpp#L41
wait, it didn't happen when i implement the hexview at first, so the reason should be elsewhere. idk, at first, i test the hexview in a way provided by the readme file in this repo (it looks like the first pic in this issue), but now i put a QFrame in the ui file and promote it to the hexview, then it looks like the second pic in this issue. (the details are in chunk_editor branch atm)
i just commented out the setFont code but the FF and 00 still remain the modified style, so perhaps it is caused by the subclassing and the theme and palette settings?
00 and FF bytes' color are changed here:
https://github.com/Dax89/QHexView/blob/master/document/qhexrenderer.cpp#L218