Re: [ncqgm/gnumed] Standarize wx glade widgets buttons styles (PR #12)
Karsten Hilbert <[email protected]> Thu, 15 Jan 2026 18:30:28 +0100
| Newsgroups | gmane.comp.gnu.medical.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Maria, likewise, regardings the pull request for removing BU_EXACTFIT from buttons, I have added a config file option: # Here you can define the minimum size policy for all buttons. # # If this option is set to "yes" buttons can shrink to just # barely fit their label which can be advantageous on size # restrained displays. It may, however, prevent certain desktop # themes to apply cleanly. # # Setting to "no" will let any buttons have standard sizes # which should make desktop themes work in all cases. # # values: "yes" or "no" # # default: "yes" #button size can fit button label =3D no If that is set to "no" GNUmed will not make certain buttons shrink to their label size. Again, on restrained displays shrinking can be desirable, and has been made so on purpose, but I understand it might mess up applying certain themes. Therefore I have made that configurable. Please retest with this option set to "no". If any buttons still need changing apart from BU_EXACTFIT please do apply the changes inside the .wxg files, too, because the corresponding *.py files are generated from the wxg and thusly will be overwritten the next time around. > OBS: this patch is still not perfect. I'll be > improving some behaviours to make some things more > user-proof. For example: the SOAP notes right panel (where > one actually writes the notes) lets the user narrow it to > the point where buttons begin to disappear (be it narrow > buttons or not). I've already taken note and will try to > set limits so this does not happen. Please keep pull requests to a well-defined extent of change each, overall it is better to apply a few smaller ones than larger chunks, especially when they contain several independant change types. That way it is easier to select what to apply now and what to re-evaluate. Thanks, Karsten =2D-=20 GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B