Skip to content

Commit

Permalink
Refactor dist info
Browse files Browse the repository at this point in the history
  • Loading branch information
chebupelka8 committed Mar 8, 2024
1 parent 2f253dd commit bba1360
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scr/data/dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "PyPad",
"version": "v0.2.2",
"build": "Dev.",
"author": "@chebupelka8 (stpzamyatin@gmail.com)",
"author": "@chebupelka8",
"author-social-link": "https://github.com/chebupelka8",
"project-page": "https://github.com/chebupelka8/PyPad-v2",
"license": "MIT"
}
1 change: 1 addition & 0 deletions scr/project/version_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ class VersionConfig:
version = __config["version"]
build = __config["build"]
author = __config["author"]
author_social_link = __config["author-social-link"]
project_page = __config["project-page"]
license = __config["license"]
2 changes: 1 addition & 1 deletion scr/widgets/settings_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __init__(self):
version_info_frame = _SettingFrame(
"Info",
f"""
<br>{VersionConfig.name} by. {VersionConfig.author}.
<br>{VersionConfig.name} by <a href={VersionConfig.author_social_link}>{VersionConfig.author}</a>
<br>Version: {VersionConfig.version}
<br>Build: {VersionConfig.build}
<br>License: {VersionConfig.license}
Expand Down
2 changes: 1 addition & 1 deletion scr/widgets/status_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self) -> None:

self.current_file_status = QLabel()
self.current_position = QLabel()
self.version_info = QLabel(f"Build: {VersionConfig.build} Version: {VersionConfig.version}")
self.version_info = QLabel(f"Build: {VersionConfig.build} Version: {VersionConfig.version}; by {VersionConfig.author}")
# self.current_encoding = QLabel("utf-8")

self.update_font()
Expand Down

0 comments on commit bba1360

Please sign in to comment.