Skip to content

Commit

Permalink
Add logo to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustín Castro committed Feb 6, 2024
1 parent 568ccc5 commit ad5e190
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Binary file added docs/img/logo-dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions norfair/common_reference_ui.py
@@ -1,4 +1,4 @@
# from tkinter import
import os
import tkinter as tk
from copy import deepcopy

Expand Down Expand Up @@ -144,7 +144,6 @@ def set_reference(

skipper = {}

desired_size = 700
radius = max(int(desired_size / 100), 1)

points = {}
Expand All @@ -153,6 +152,8 @@ def set_reference(
transformation = None

window = tk.Tk()
window.title("Norfair - Set Reference Coordinates")
window.configure(bg="LightSkyBlue1")

frame_options = tk.Frame()
frame_images = tk.Frame()
Expand Down Expand Up @@ -579,6 +580,21 @@ def reference_coord_chosen_in_reference(event):
"current_frame_label": None,
"path": reference,
}
######### MAKE SUBBLOCK FOR LOGO

frame_options_logo = tk.Frame(master=frame_options)
image = Image.open(
os.path.join(os.path.dirname(__file__), "../docs/img/logo-dark.png")
)
image = image.resize((300, 70))
image = ImageTk.PhotoImage(image)

image_label = tk.Label(
frame_options_logo, image=image, width=40, height=60, bg="LightSkyBlue1"
)

image_label.pack(side=tk.TOP, fill="both", expand="yes")
frame_options_logo.pack(side=tk.TOP, fill="both", expand="yes")

###### MAKE SUBBLOCK FOR TITLE
frame_options_title = tk.Frame(master=frame_options)
Expand Down

0 comments on commit ad5e190

Please sign in to comment.