Increase font size of normal text
This commit is contained in:
parent
4f4735cfb6
commit
77eec9cc84
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ class MarkdownHighlighter(QSyntaxHighlighter):
|
||||||
|
|
||||||
def _setup_formats(self):
|
def _setup_formats(self):
|
||||||
"""Setup text formats for different markdown elements."""
|
"""Setup text formats for different markdown elements."""
|
||||||
|
|
||||||
# Bold: **text** or __text__
|
# Bold: **text** or __text__
|
||||||
self.bold_format = QTextCharFormat()
|
self.bold_format = QTextCharFormat()
|
||||||
self.bold_format.setFontWeight(QFont.Weight.Bold)
|
self.bold_format.setFontWeight(QFont.Weight.Bold)
|
||||||
|
|
@ -261,6 +262,11 @@ class MarkdownEditor(QTextEdit):
|
||||||
# We accept plain text, not rich text (markdown is plain text)
|
# We accept plain text, not rich text (markdown is plain text)
|
||||||
self.setAcceptRichText(False)
|
self.setAcceptRichText(False)
|
||||||
|
|
||||||
|
# Normal text
|
||||||
|
font = QFont()
|
||||||
|
font.setPointSize(11)
|
||||||
|
self.setFont(font)
|
||||||
|
|
||||||
# Install syntax highlighter
|
# Install syntax highlighter
|
||||||
self.highlighter = MarkdownHighlighter(self.document(), theme_manager)
|
self.highlighter = MarkdownHighlighter(self.document(), theme_manager)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue