Skip to content

Commit

Permalink
chore: bump release version
Browse files Browse the repository at this point in the history
  • Loading branch information
StuSerious committed Jun 6, 2023
1 parent 4df201f commit a76c9f5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
30 changes: 25 additions & 5 deletions src/threedy/interface/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,27 @@ def __init__(self, parent, import_event, export_event, **kwargs):
text="threedy",
font=ctk.CTkFont(family=FONT, size=35, weight="bold"),
)
self.logo_label.grid(row=0, column=0, padx=PADDING["large"], pady=(20, 10))
self.logo_label.grid(
row=0,
column=0,
padx=PADDING["large"],
pady=(20, 0),
)
# version text
self.version_label = ctk.CTkLabel(
self,
text=f"version {VERSION}",
font=ctk.CTkFont(family=FONT, size=8, slant="italic"),
bg_color="transparent",
fg_color="transparent",
)
self.version_label.grid(
row=1,
column=0,
padx=(0, 0),
pady=(0, 20),
sticky="n",
)

# select file button
self.select_file_button = ctk.CTkButton(
Expand All @@ -31,12 +51,11 @@ def __init__(self, parent, import_event, export_event, **kwargs):
command=self.select_file,
)
self.select_file_button.grid(
row=1,
row=2,
column=0,
padx=PADDING["medium"],
pady=10,
)

# export file button
self.export_file_button = ctk.CTkButton(
self,
Expand All @@ -45,7 +64,7 @@ def __init__(self, parent, import_event, export_event, **kwargs):
command=self.export_file,
)
self.export_file_button.grid(
row=2,
row=3,
column=0,
padx=PADDING["medium"],
pady=10,
Expand All @@ -64,7 +83,6 @@ def __init__(self, parent, import_event, export_event, **kwargs):
self.select_theme_optionmenu.grid(
row=6, column=0, padx=PADDING["medium"], pady=(0, 10)
)

# scaling selector
self.scaling_factor_label = ctk.CTkLabel(self, text="UI Scaling:", anchor="w")
self.scaling_factor_label.grid(row=7, column=0, padx=PADDING["medium"], pady=0)
Expand All @@ -77,6 +95,8 @@ def __init__(self, parent, import_event, export_event, **kwargs):
row=8, column=0, padx=PADDING["medium"], pady=(0, 10)
)

# TODO: settings dialog

# select and load file
def select_file(self):
self.import_event()
Expand Down
2 changes: 1 addition & 1 deletion src/threedy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self):
# setup window
self.geometry(f"{APP_SIZE['width']}x{APP_SIZE['height']}")
self.iconbitmap(resource_path("resources\\logo.ico"))
self.title("threedy")
self.title(f"threedy {VERSION}")

# setup grid
self.grid_rowconfigure(0, weight=1)
Expand Down
3 changes: 3 additions & 0 deletions src/threedy/modules/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# app info
VERSION = "0.1.0-alpha.4"

# size
APP_SIZE = {"width": 900, "height": 500}

Expand Down

0 comments on commit a76c9f5

Please sign in to comment.