New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp label size is limited #220

anitagraser opened this Issue Feb 24, 2017 · 0 comments


None yet
1 participant

anitagraser commented Feb 24, 2017

As reported by a user, the rendered label size does not increase after a certain value (try 20 or 30, the label doesn't change):

Leider ist die Schriftgröße der Zeitangabe auch in der größten Stufe etwas klein.
Mit meinen dürftigen Python und verschwindenden HTML Kenntnissen habe ich festgestellt, dass in der Funktion renderLabel im Modul die Erstellung des html-Codes nur geringfügig geändert werden muss, um auch größere Schriftgrößen zuzulassen.
html = '<span style="background-color:%s; padding: 5px;"><font face="%s" size="%s" color="%s">%s</font></span>'\
% (self.labelOptions.bgcolor, self.labelOptions.font, self.labelOptions.size,
self.labelOptions.color, labelString)
hsize = self.labelOptions.size
if hsize<15: hsize=15 #damit Label in Defaulteinstellung sichtbar bleibt.
html = '<span><div style="background-color:%s;font-family:%s;font-size:%spx;color:%s">%s</div></span>' % (self.labelOptions.bgcolor, self.labelOptions.font, hsize,self.labelOptions.color, labelString)

@anitagraser anitagraser added the bug label Feb 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment