Skip to content

Commit

Permalink
<feature> improve font style template
Browse files Browse the repository at this point in the history
update version to v2.4.1
  • Loading branch information
anonymousException committed Jun 11, 2024
1 parent cb08812 commit f3d174b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/font_style_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ init python early hide:
translate {tl_name} python:
import os
import sys
def change_font(font_path):
gui.text_font = gui.interface_text_font = gui.button_text_font = gui.choice_button_text_font = FontGroup().add(font_path, 0x5187, 0x5187).add(font_path, 0x5463, 0x5463).add(font_path, 0x5c44, 0x5c44).add(font_path, 0x5c4c, 0x5c4c).add(font_path, 0x808f, 0x808f).add(font_path, 0x6294, 0x6294).add(font_path, 0x2014, 0x201F).add(font_path, 0x2E80, 0xffff).add(font_path, 0x0000, 0xffff)
gui.name_text_font = font_path
style.default.font = font_path
gui.headline_text_font = FontGroup().add(font_path, 0x2E80, 0xffff).add(font_path, 0x0000, 0xffff)

font_path = "{font_path}"
change_font(font_path)
gui.text_font = font_path
gui.button_text_font = font_path
gui.interface_text_font = font_path
gui.choice_button_text_font = font_path
gui.name_text_font = font_path
style.default.font = font_path
gui.headline_text_font = font_path
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
sourceDic = dict()
translator = QTranslator()

VERSION = '2.4.0'
VERSION = '2.4.1'


class MyProxyForm(QDialog, Ui_ProxyDialog):
Expand Down

0 comments on commit f3d174b

Please sign in to comment.