Open maicol07 opened 4 years ago
I'm also getting this with all themes.. Any ideas?
Sorry, since I have not a windows machine I can not test this issue, maybe someone else can help us with this.
I get a similar issue but the other way around. I am using qt designer and set my buttons to a size I want, then if I apply the theme, some items such as pushbuttons get made smaller upon applying the theme, meaning text gets truncated. I am using Windows too.
Since material.css.template
is overriding some font-sizes, widget sizes etc. there are two possible solutions:
material.css.template
file (can be found in qt_material/material.css.template) and delete or comment-out lines that are interfering with sizes (that works for me, right now I'm using very self-customized material.css.template
since not everything worked as I expected/wanted from the start)Hi, @JackPieCZ and @chrisbeardy I just removed the 'font-size' from widgets, hope that this solve this issue.
Removing font-size
from material.css.template
fixes issue: https://github.com/UN-GCPDS/qt-material/issues/57. Thank you!
It seems that a lot of elements doesn't get resized when changing theme in runtime: