RTimothyEdwards / XCircuit

XCircuit circuit drawing and schematic capture tool
GNU General Public License v2.0
97 stars 25 forks source link

No way to change icon size #9

Open benx45h opened 3 years ago

benx45h commented 3 years ago

XCircuit is unusable on hidpi displays without some hacks. A menu option to change icon scale would help substantially.

RTimothyEdwards commented 3 years ago

Okay, I have implemented fixes that replaces the fonts with the "TkDefault" fonts, which scale with screen resolution, and used the Tk "font measure" command to get the pixel size of the default font for determining what the screen resolution is. I use this to scale the icons and the scrollbars. That leaves xcircuit looking more or less the same regardless of screen resolution. The custom cursors are still an issue, because the cursors are generated from data like the icons, but that is passed to X11 which doesn't have (as far as I know) a scaling option for cursors. So I might need to make a second set of cursors for high resolution screens (update is xcircuit version 3.10.32, currently on the opencircuitdesign.com repository, to be mirrored to github tonight).