xfce4-sensors-plugin merge requestshttps://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/merge_requests2021-07-24T16:28:26Zhttps://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/merge_requests/33Use a drawing area to display sensor data in text UI style2021-07-24T16:28:26ZGhost UserUse a drawing area to display sensor data in text UI styleThe previous implementation was utilizing a `GtkLabel`. A `GtkDrawingArea` provides slightly more freedom than a `GtkLabel` when displaying text. This patch improves the formula determining the maximum number of text lines, and prevents ...The previous implementation was utilizing a `GtkLabel`. A `GtkDrawingArea` provides slightly more freedom than a `GtkLabel` when displaying text. This patch improves the formula determining the maximum number of text lines, and prevents the size of the plugin to shrink when, for example, the text oscillates between "1000 rpm" and "999 rpm".
Horizontal: ![Screenshot_20210724_182026](/uploads/384748d06ae15637141219ab4ba7aabb/Screenshot_20210724_182026.png)
Vertical: ![Screenshot_20210724_182035](/uploads/4c56ac3d6593a6f518069fb8aebffa9d/Screenshot_20210724_182035.png)
Deskbar: ![Screenshot_20210724_182050](/uploads/b284b801a8332637493dc4792509e079/Screenshot_20210724_182050.png)
Horizontal dark: ![Screenshot_20210724_182114](/uploads/391a300712716914523bc3a909adba9d/Screenshot_20210724_182114.png)
Closes: https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/issues/7
Closes: https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/issues/18v1.4.0