[composer] Improve appearance of rulers, add small tick marks to ruler (fix #5656)