pyui: implement styled label and text box (#34813)

implement styled label
This commit is contained in:
Dean Lee
2025-03-08 06:20:49 +08:00
committed by GitHub
parent fa79b29cba
commit 2d2efb3f58
5 changed files with 55 additions and 11 deletions
+1
View File
@@ -54,6 +54,7 @@ def gui_button(
if button_style != ButtonStyle.TRANSPARENT:
rl.draw_rectangle_rounded(rect, roundness, 20, bg_color)
else:
rl.draw_rectangle_rounded(rect, roundness, 20, rl.BLACK)
rl.draw_rectangle_rounded_lines_ex(rect, roundness, 20, 2, rl.WHITE)
font = gui_app.font(font_weight)