From 07f16ae1a6cb41f571fd4e0b545d08a74c46c2e9 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Thu, 3 Sep 2026 11:33:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(ViperQtProject):=20indicator=20=E5=8A=A0?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E5=8D=A0=E4=BD=8D=E8=83=8C=E6=99=AF=E4=BD=BF?= =?UTF-8?q?=20QSS=20=E6=8E=A5=E7=AE=A1=E5=9B=BE=E6=A0=87=E7=BB=98=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ViperBTests/ViperQtProject/App/main.vp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ViperBTests/ViperQtProject/App/main.vp b/ViperBTests/ViperQtProject/App/main.vp index 5e17147..ffaf3cf 100644 --- a/ViperBTests/ViperQtProject/App/main.vp +++ b/ViperBTests/ViperQtProject/App/main.vp @@ -474,8 +474,8 @@ def ApplyIndicatorIcons(ptr: t.CPtr, is_tree: int): uon: bytes = stdlib.malloc(640) vqt6.vqt6_asset_url_utf8(uoff, 640, "assets/check_off.png") vqt6.vqt6_asset_url_utf8(uon, 640, "assets/check_on.png") - buf: bytes = stdlib.malloc(1500) - viperlib.snprintf(buf, 1500, "%s::indicator { width: 16px; height: 16px; } %s::indicator:unchecked { image: url(%s); } %s::indicator:checked { image: url(%s); }", sel, sel, uoff, sel, uon) + buf: bytes = stdlib.malloc(1600) + viperlib.snprintf(buf, 1600, "%s::indicator { width: 16px; height: 16px; background-color: transparent; background-repeat: no-repeat; background-position: center; } %s::indicator:unchecked { image: url(%s); } %s::indicator:checked { image: url(%s); }", sel, sel, uoff, sel, uon) vqt6.vqt6_qwidget_set_stylesheet_utf8(ptr, buf) stdlib.free(uoff) stdlib.free(uon)