|
1 | 1 | """
|
2 | 2 | Tkinter Toolkit
|
3 | 3 | Author: Akash Bora
|
4 |
| -Version: 0.3 |
| 4 | +Version: 0.4 |
5 | 5 | License: MIT
|
6 | 6 | Homepage: https://github.com/Akascape/tkinter-toolkit
|
7 | 7 | """
|
@@ -66,7 +66,8 @@ def __init__(self):
|
66 | 66 | self.about_button = customtkinter.CTkButton(master=self.frame, text="i", hover=False, width=30, command=self.open_about_window)
|
67 | 67 | self.about_button.grid(row=0, column=2, padx=10, pady=10, sticky="e")
|
68 | 68 |
|
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) |
70 | 71 | self.option_type.set("All")
|
71 | 72 | self.option_type.grid(row=1, column=0, columnspan=3, padx=10, pady=10, sticky="ew")
|
72 | 73 |
|
@@ -108,7 +109,7 @@ def add_item(self, name, icon):
|
108 | 109 | desc = f"{self.data[name]['desc']} \nversion: {version}"
|
109 | 110 | self.data[name]["installation"] = f"{self.data[name]['installation']} --upgrade"
|
110 | 111 | else:
|
111 |
| - self.item_frame[name].configure(fg_color="grey20") |
| 112 | + self.item_frame[name].configure(fg_color=["grey80", "grey20"]) |
112 | 113 | desc = f"{self.data[name]['desc']} "
|
113 | 114 |
|
114 | 115 | 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):
|
248 | 249 | scrollable_info = customtkinter.CTkScrollableFrame(toplevel)
|
249 | 250 | scrollable_info.pack(fill="both", padx=10, pady=10, expand=True)
|
250 | 251 |
|
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...") |
252 | 253 | image_label.pack(fill="both", padx=10, pady=10, expand=True)
|
253 | 254 |
|
254 | 255 | def add_image():
|
@@ -279,7 +280,8 @@ def add_image():
|
279 | 280 | self.repo = customtkinter.CTkLabel(frame_link, text="Repository Link: ", font=(self.font,14,"bold"))
|
280 | 281 | self.repo.pack(anchor="w", side="left")
|
281 | 282 |
|
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") |
283 | 285 | label_stars.pack(fill="x", padx=(0, 10))
|
284 | 286 |
|
285 | 287 | def add_stats_avatar():
|
|
0 commit comments