【发布时间】:2017-07-31 02:49:54
【问题描述】:
基维 1.10.0
Python 3.6
我想在使用 RstDocuments 时更改标题字体大小、颜色等。标题之间的默认差异非常小(只有很小的字体大小变化),如下所示。
我浏览了一些代码,但我不是一个非常有经验的 Python 程序员,也找不到任何东西。
【问题讨论】:
标签: python-3.x kivy
基维 1.10.0
Python 3.6
我想在使用 RstDocuments 时更改标题字体大小、颜色等。标题之间的默认差异非常小(只有很小的字体大小变化),如下所示。
我浏览了一些代码,但我不是一个非常有经验的 Python 程序员,也找不到任何东西。
【问题讨论】:
标签: python-3.x kivy
您可以使用 base_font_size:
来自docs:
base_font_size - Added in 1.8.0
Font size for the biggest title, 31 by default. All other font sizes are
derived from this.
要更改每个标题/元素的颜色/样式,请参阅:
colors Added in 1.1.0
Dictionary of all the colors used in the RST rendering.
Warning
This dictionary is needs special handling. You also need to call RstDocument.render() if you change them after loading. colors is a DictProperty.
underline_color Added in 1.1.0
underline color of the titles, expressed in html color notation
【讨论】: