Release 3.3.0 - Kipye Qiye 3.5" support + breaking change #329
mathoudebine
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Kipye Qiye 3.5" support
After the "UsbPCMonitor" 3.5" & 5" support in the previous 3.2.0 release, it is now the turn of the quite rare Kipye Qiye 3.5" smart display to be supported by this project!
This new screen is identified as "revision D" in the code & configuration files, and is available for selection in the configuration wizard.
As its resolution of 320x480 is the same as other 3.5" smart screens like Turing or XuanFang, all existing 3.5" themes can be used on this product.
BREAKING CHANGE - text anchor when using this project as a library
An important change in this release may break your layout if you use this project as a library to control a smart screen from your own code.
This change has been introduced in #313 to fix a previous behavior related to text display with the
DisplayText()
method.Before the fix, we used to compute the empty "margins" around a drawn text via a call to
textbbox
at the(0,0)
position, and subtract them to the drawn text's location.This behavior is incorrect: when drawing text, we don't want it to jump up and down depending on the max. character height.
The correct behavior is to rather use the
anchor
parameter of thetextbox()
function set to a default value like"la"
(left-ascender) or None which default to"la"
By fixing this in the current release, you may find your text fields moved down a bit on your screen.
You can fix your text location on the screen by either using the
"lt"
anchor in your calls to theDisplayText()
method (not recommended) or simply update the x/y coordinates of the text fields manually.NOTE: System Monitor main program is not impacted by this fix, no change for existing themes
What's Changed
Full Changelog: 3.2.0...3.3.0
This discussion was created from the release Release 3.3.0 - Kipye Qiye 3.5" support + breaking change.
Beta Was this translation helpful? Give feedback.
All reactions