From d25acd595dcb73864eb266cd4e6dfd6c1e824a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20R=C4=99bacz?= Date: Sun, 6 Jul 2025 00:49:18 +0200 Subject: [PATCH] GLCtrl: cosmetics improvemenet in GLCtrl.usc --- uppsrc/GLCtrl/GLCtrl.usc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/uppsrc/GLCtrl/GLCtrl.usc b/uppsrc/GLCtrl/GLCtrl.usc index aa6baca84..b995c017c 100644 --- a/uppsrc/GLCtrl/GLCtrl.usc +++ b/uppsrc/GLCtrl/GLCtrl.usc @@ -11,16 +11,17 @@ ctrl GLCtrl { r = GetRect(); w.DrawRect(r, :SBlack); - font = Arial(12); - tn = GetTextSize("3D"); + font = Arial(12).Bold(); + right_text = "2D | 3D"; + tn = GetTextSize(right_text, font); if (r.right >= 130 && r.bottom >= 130) { w.DrawText(r.left + 10, r.top + 10, "OpenGL", font, :SWhite); - w.DrawText(r.right - 10 - tn.cx, r.top + 10, "3D", font, :SWhite); + w.DrawText(r.right - 10 - tn.cx, r.top + 10, right_text, font, :SWhite); } poffset = 20; - w.DrawLine(r.left + poffset, r.bottom - poffset, r.right / 2, r.top + tn.cy, 3, :SWhite); - w.DrawLine(r.right - poffset, r.bottom - poffset, r.right / 2, r.top + tn.cy, 3, :SWhite); - w.DrawLine(r.left + poffset, r.bottom - poffset, r.right - poffset, r.bottom - poffset, 3, :SWhite); + w.DrawLine(r.left + poffset, r.bottom - poffset, r.right / 2, r.top + tn.cy, 7, :SGreen); + w.DrawLine(r.right - poffset, r.bottom - poffset, r.right / 2, r.top + tn.cy, 7, :SGreen); + w.DrawLine(r.left + poffset, r.bottom - poffset, r.right - poffset, r.bottom - poffset, 7, :SGreen); } }