diff --git a/ltk/ltk.css b/ltk/ltk.css index 6c6d44b..2bcc927 100644 --- a/ltk/ltk.css +++ b/ltk/ltk.css @@ -18,25 +18,32 @@ position: absolute; z-index: 100000000; background-color: red; - width: 2px; - height: 2px; + width: 3px; + height: 3px; } .ltk-highlight-details { display: none; position: absolute; z-index: 100000000; - background-color: red; - border: 1px solid white; - color: white; + background-color: pink; + border: 3px solid red; + color: black; padding: 0 8px; height: fit-content; width: fit-content; min-height: 24px; } +.ltk-highlight-details tt { + color: black; + font-weight: bold; + border: 1px solid white; + padding: 0 4px; +} + .ltk-highlight-details a { - color: white; + color: rgb(76, 112, 255) } .ltk-highlight-details ul { diff --git a/ltk/widgets.py b/ltk/widgets.py index 196e51c..38c8265 100644 --- a/ltk/widgets.py +++ b/ltk/widgets.py @@ -59,14 +59,17 @@ def show(self, widget): .width(width) self.right.css("display", "block").css("left", left + width - 2).css("top", top) \ .height(height) - self.details.css("display", "block").css("left", left + width).css("top", top) \ + self.details.css("display", "block") \ .html(f""" - A widget of type {widget.__class__.__name__}