From a6aac53f1865ff835b3fe3fec350587002e203e4 Mon Sep 17 00:00:00 2001 From: goldim Date: Thu, 15 Feb 2024 18:39:50 +0300 Subject: [PATCH] Added new icons for checkbox states --- source/class/bernstein/theme/Decoration.js | 23 +++++++++++++----- .../decoration/checkbox/checked-disabled.png | Bin 0 -> 323 bytes .../decoration/checkbox/checked-focused.png | Bin 0 -> 547 bytes .../bernstein/decoration/checkbox/checked.png | Bin 0 -> 349 bytes 4 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 source/resource/bernstein/decoration/checkbox/checked-disabled.png create mode 100644 source/resource/bernstein/decoration/checkbox/checked-focused.png create mode 100644 source/resource/bernstein/decoration/checkbox/checked.png diff --git a/source/class/bernstein/theme/Decoration.js b/source/class/bernstein/theme/Decoration.js index b93222c..78e045b 100644 --- a/source/class/bernstein/theme/Decoration.js +++ b/source/class/bernstein/theme/Decoration.js @@ -325,10 +325,10 @@ qx.Theme.define("bernstein.theme.Decoration", "checkbox-checked": { - include: "button-checked", - + include: "checkbox", + style: { - radius: 2 + backgroundImage: "decoration/checkbox/checked.png" } }, @@ -339,7 +339,11 @@ qx.Theme.define("bernstein.theme.Decoration", "checkbox-checked-hovered": { - include: "button-checked-hovered" + include: "checkbox", + + style: { + backgroundImage: "decoration/checkbox/checked-focused.png" + } }, "checkbox-focused": @@ -349,7 +353,11 @@ qx.Theme.define("bernstein.theme.Decoration", "checkbox-checked-focused": { - include: "checkbox-checked" + include: "checkbox", + + style: { + backgroundImage: "decoration/checkbox/checked-focused.png" + } }, "checkbox-disabled": @@ -364,7 +372,10 @@ qx.Theme.define("bernstein.theme.Decoration", "checkbox-checked-disabled": { - include: "button-checked-disabled" + include: "checkbox", + style: { + backgroundImage: "decoration/checkbox/checked-disabled.png" + } }, "checkbox-invalid": diff --git a/source/resource/bernstein/decoration/checkbox/checked-disabled.png b/source/resource/bernstein/decoration/checkbox/checked-disabled.png new file mode 100644 index 0000000000000000000000000000000000000000..68df10764ea7d2076bc5747cb1d780db1fc10521 GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^{2``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eB{tZtT$B+ufr{@j%nhZqP9thcX7)#{d;b@jQ zC@s;;ta9w&j$n(Hl{|+On72>p^i_yCQ0)<4%frK=_U4c0B_-9Qa z&*6$!yZ-rI-m)V5vf_sd8_UqIiC^Qq0%lcl-`=)&YLM2P&l^@oPJ7A`XsCF>^HE_P zZ}og%&9jV8+AfKn+!Vg)zPt>BgN_Kp!=L|pC)U@`J1@>6?YrktjGlNli**c#DtFUv z@48EeTqml}TK2FZOPA$Lfu==|>&3;));s(nr**DcWoq>C#j(OW+{b6>*Ph9anqejz Q0`wz;r>mdKI;Vst09m_vEdT%j literal 0 HcmV?d00001 diff --git a/source/resource/bernstein/decoration/checkbox/checked-focused.png b/source/resource/bernstein/decoration/checkbox/checked-focused.png new file mode 100644 index 0000000000000000000000000000000000000000..9d4abe2fcc12bd47a0e1ae26ab14bae2ef3a395b GIT binary patch literal 547 zcmV+;0^I$HP){SLd1-@boqriF3gHN52ncKCKYuYWL zvW(l1;88Z4bz9)w3hOw$;`r|m)YqYMt@gY$x-KkXSb2^>w l%IEWK@8PxcY}VRVdjeFe+6awbA+7)b002ovPDHLkV1nR$?a2TD literal 0 HcmV?d00001 diff --git a/source/resource/bernstein/decoration/checkbox/checked.png b/source/resource/bernstein/decoration/checkbox/checked.png new file mode 100644 index 0000000000000000000000000000000000000000..67a16968a43eabf4030b6aa99d7674da280dbea2 GIT binary patch literal 349 zcmeAS@N?(olHy`uVBq!ia0vp^{2``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eB{wGft$B+ufw-fgJIT?zypVw3^{3y91zaX~f zajSVkS>hF6^Se`8Pg=ZEJ7?EWxKUfWFK3E-LPOlI=TppBm}1&?Px_$hJFEED+6g$s^v5?BA+(lsaH_NF+C8Tv1nbSK~MkIXCa6+32L z^6<))H(g8TZ(Xh?aH7Ij@c*;c<04=8^i}S*o^e2KX>R?!^rjQX7;ki>7ll3ldG_@N t6}c(G@3$8+7|Xg{+5cNY(_&*H=j!H^TUWTscL06Q;OXk;vd$@?2>@AykxBpn literal 0 HcmV?d00001