Closed fengalin closed 6 years ago
See http://gtk-rs.org/docs/gtk/trait.WidgetExt.html#tymethod.get_scale_factor and the last section in https://wiki.gnome.org/HowDoI/HiDpi
This needs to be checked on actual HiDPI screens.
It would be better to use a label font size as a reference. This would render text consistently application-wide. One use case is for non HiDPI screens but with a user selected font scale greater than 1. Unfortunately, it is currently not straight forward at all to get these values. gtk::LabelExt::gst_attributes allows accessing pango::AttrList which API doesn't seem complete.
Use bigger fonts for hdpi screens so that time indicators are easier to read.