From 82998b6c1fd636cb1894752c79c0599b30fc5d88 Mon Sep 17 00:00:00 2001 From: laffra Date: Wed, 15 Nov 2023 13:27:36 +0100 Subject: [PATCH] Add a nicer link to Github --- kitchen.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kitchen.py b/kitchen.py index 02df79c..09d0de0 100644 --- a/kitchen.py +++ b/kitchen.py @@ -43,8 +43,13 @@ def setsource(src): ).attr("name", example.attr("name")) for file, example in examples.items ).css("margin-bottom", 24), - ltk.Link("https://github.com/laffra/ltk", ltk.Text("source")) - .attr("target", "_blank") + ltk.Link( + "https://github.com/laffra/ltk", + ltk.HBox( + ltk.Image("https://github.com/favicon.ico").width(20), + ltk.Text("See the LTK project at Github") + ) + ).attr("target", "_blank") ) .css("width", 1300) .css("margin", "auto")