[composer] Improve appearance of rulers, add small tick marks to ruler (fix #5656)
[composer] Make sure rulers are updated when paper size changes