Skip to content

Commit 887feb1

Browse files
authored
Fixed Light Theme
1 parent 280f292 commit 887feb1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tkinter-toolkit.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Tkinter Toolkit
33
Author: Akash Bora
4-
Version: 0.3
4+
Version: 0.4
55
License: MIT
66
Homepage: https://github.com/Akascape/tkinter-toolkit
77
"""
@@ -66,7 +66,8 @@ def __init__(self):
6666
self.about_button = customtkinter.CTkButton(master=self.frame, text="i", hover=False, width=30, command=self.open_about_window)
6767
self.about_button.grid(row=0, column=2, padx=10, pady=10, sticky="e")
6868

69-
self.option_type = customtkinter.CTkSegmentedButton(self.frame, values=["All","pip", "manual"], selected_color="grey10", selected_hover_color="grey12", height=30, command=self.filter_packages)
69+
self.option_type = customtkinter.CTkSegmentedButton(self.frame, values=["All","pip", "manual"], selected_color=["grey40","grey10"],
70+
selected_hover_color=["grey38","grey12"], height=30, command=self.filter_packages)
7071
self.option_type.set("All")
7172
self.option_type.grid(row=1, column=0, columnspan=3, padx=10, pady=10, sticky="ew")
7273

@@ -108,7 +109,7 @@ def add_item(self, name, icon):
108109
desc = f"{self.data[name]['desc']} \nversion: {version}"
109110
self.data[name]["installation"] = f"{self.data[name]['installation']} --upgrade"
110111
else:
111-
self.item_frame[name].configure(fg_color="grey20")
112+
self.item_frame[name].configure(fg_color=["grey80", "grey20"])
112113
desc = f"{self.data[name]['desc']} "
113114

114115
item_label = customtkinter.CTkLabel(self.item_frame[name], width=250, justify="left", text=desc, anchor="w", wraplength=250)
@@ -248,7 +249,7 @@ def open_info_window(self, name):
248249
scrollable_info = customtkinter.CTkScrollableFrame(toplevel)
249250
scrollable_info.pack(fill="both", padx=10, pady=10, expand=True)
250251

251-
image_label = customtkinter.CTkLabel(scrollable_info, fg_color="grey16", height=200, corner_radius=20, text="Image is Loading...")
252+
image_label = customtkinter.CTkLabel(scrollable_info, fg_color=["grey86", "grey16"], height=200, corner_radius=20, text="Image is Loading...")
252253
image_label.pack(fill="both", padx=10, pady=10, expand=True)
253254

254255
def add_image():
@@ -279,7 +280,8 @@ def add_image():
279280
self.repo = customtkinter.CTkLabel(frame_link, text="Repository Link: ", font=(self.font,14,"bold"))
280281
self.repo.pack(anchor="w", side="left")
281282

282-
label_stars = customtkinter.CTkButton(scrollable_info, text=f"Stars: ", anchor="w", font=(self.font, 15, "bold"), image=self.starimage, compound="left", hover=False, fg_color="transparent")
283+
label_stars = customtkinter.CTkButton(scrollable_info, text=f"Stars: ", anchor="w", font=(self.font, 15, "bold"), image=self.starimage,
284+
compound="left", hover=False, fg_color="transparent")
283285
label_stars.pack(fill="x", padx=(0, 10))
284286

285287
def add_stats_avatar():

0 commit comments

Comments
 (0)