Skip to content

Commit

Permalink
add new theme
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <[email protected]>
  • Loading branch information
fa0311 committed Jun 6, 2024
1 parent 8ea1f0f commit 029e13f
Show file tree
Hide file tree
Showing 10 changed files with 2,269 additions and 247 deletions.
8 changes: 8 additions & 0 deletions DMMGamePlayerFastLauncher/DMMGamePlayerFastLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ def loder(master: LanchLauncher):

ctk.set_default_color_theme(str(AssetsPathConfig.THEMES.joinpath(AppConfig.DATA.theme.get()).with_suffix(".json")))

additional_theme = {
"MenuComponent": {"text_color": ["#000000", "#ffffff"]},
"LabelComponent": {"fg_color": ["#F9F9FA", "#343638"], "required_color": ["red", "red"]},
"CheckBoxComponent": {"checkbox_width": 16, "checkbox_height": 16, "border_width": 2},
}
for key, value in additional_theme.items():
ThemeManager.theme[key] = value

if AppConfig.DATA.theme_font.get() == "i18n":
i18n_font = i18n.t("app.font.main")
if i18n_font not in font.families():
Expand Down
5 changes: 3 additions & 2 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ If you find a bug, please report it in [Issues](https://github.com/fa0311/DMMGam

## Source

[Lutwidse/priconner_launch.py](https://gist.github.com/Lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee)
[kira-96/Inno-Setup-Chinese-Simplified-Translation](https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation)
- [Lutwidse/priconner_launch.py](https://gist.github.com/Lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee)
- [kira-96/Inno-Setup-Chinese-Simplified-Translation](https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation)
- [@takafi CustomTkinter 簡易カスタムテーマ作成ツール](https://qiita.com/takafi/items/90c17b7888263100cbbc)

## License

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ DMM Game Player のゲームを高速かつセキュアに起動できるラン

## 典拠

[Lutwidse/priconner_launch.py](https://gist.github.com/Lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee)
[kira-96/Inno-Setup-Chinese-Simplified-Translation](https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation)
- [Lutwidse/priconner_launch.py](https://gist.github.com/Lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee)
- [kira-96/Inno-Setup-Chinese-Simplified-Translation](https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation)
- [@takafi CustomTkinter 簡易カスタムテーマ作成ツール](https://qiita.com/takafi/items/90c17b7888263100cbbc)

## ライセンス

Expand Down
Loading

0 comments on commit 029e13f

Please sign in to comment.