2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

utils aa-notify: Use default bold font

Instead of specifying the font type and size, which will not work for
all display configuration, use the the default BOLD font that tkinter
supplies.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2025-02-08 18:50:56 -08:00
parent b7ce9b81fa
commit e0f8bd4400

View File

@ -205,7 +205,7 @@ class ShowMoreGUIAggregated(GUI):
def create_profile_rules_frame(self, parent, clean_rules):
for profile_name, profile_rules in clean_rules.items():
label = ttk.Label(parent, text=profile_name, font=('Arial', 14, 'bold'))
label = ttk.Label(parent, text=profile_name, font=tk.font.BOLD)
label.pack(anchor='w', pady=(5, 0))
label.bind("<Button-1>", lambda event, rules=profile_rules: self.toggle_profile_rules(rules))