VSE: Strip Modifier Icons

Add missing icons to Video Sequencer modifiers:

- [x] Brightness/Contrast
- [x] Color Balance
- [x] Curves
- [x] Hue Correct
- [x] Mask (uses the existing `MOD_MASK`)
- [x] Tone Map
- [x] White Balance

Co-authored-by: Pablo Vazquez <pablo@blender.org>
Pull Request: https://projects.blender.org/blender/blender/pulls/145739
This commit is contained in:
Falk David
2025-09-10 19:27:43 +02:00
committed by Falk David
parent 02cd00dc75
commit 491a39b0c6
10 changed files with 215 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<path
id="path9-7"
style="fill:#ffffff;stroke-width:0.874442"
d="m 300.20508,15.681641 c -8.5035,-0.07535 -15.41994,7.859149 -15.32031,14.361328 v 51.341212 c -5.4e-4,8.348451 6.76678,15.116646 15.11523,15.117188 8.34845,-5.42e-4 15.11577,-6.768737 15.11523,-15.117188 V 30.042969 c 0.0982,-6.379122 -6.56803,-14.261701 -14.91015,-14.361328 z M 137.53959,82.889997 c -6.06616,5.959602 -5.34628,16.460802 -0.6781,20.988083 l 36.30372,36.30372 c 5.90287,5.90363 15.47392,5.90425 21.37755,0.001 5.90286,-5.90363 5.90224,-15.47468 -0.001,-21.37755 L 158.23765,82.501922 c -4.44128,-4.580159 -14.72884,-5.440247 -20.69806,0.388075 z M 70.041211,245.43535 c -0.07535,8.5035 7.859149,15.41994 14.361328,15.32031 h 51.341211 c 8.34845,5.4e-4 15.11665,-6.76678 15.11719,-15.11523 -5.4e-4,-8.34845 -6.76874,-15.11577 -15.11719,-15.11523 H 84.402539 c -6.379122,-0.0982 -14.261701,6.56803 -14.361328,14.91015 z m 67.208359,162.66549 c 5.9596,6.06616 16.4608,5.34628 20.98808,0.6781 l 36.30372,-36.30372 c 5.90363,-5.90287 5.90425,-15.47392 0.001,-21.37755 -5.90363,-5.90286 -15.47468,-5.90224 -21.37755,0.001 l -36.30372,36.30372 c -4.58016,4.44128 -5.44025,14.72884 0.38808,20.69806 z m 162.54535,67.49838 c 8.5035,0.0754 15.41994,-7.85915 15.32031,-14.36133 v -51.34121 c 5.4e-4,-8.34845 -6.76678,-15.11665 -15.11523,-15.11719 -8.34845,5.4e-4 -15.11577,6.76874 -15.11523,15.11719 v 51.34121 c -0.0982,6.37912 6.56803,14.2617 14.91015,14.36133 z m 162.66549,-67.20836 c 6.06616,-5.9596 5.34628,-16.4608 0.6781,-20.98808 l -36.30372,-36.30372 c -5.90287,-5.90363 -15.47392,-5.90425 -21.37755,-0.001 -5.90286,5.90363 -5.90224,15.47468 0.001,21.37755 l 36.30372,36.30372 c 4.44128,4.58016 14.72884,5.44025 20.69806,-0.38808 z m 67.49838,-162.54535 c 0.0753,-8.5035 -7.85915,-15.41994 -14.36133,-15.32031 h -51.34121 c -8.34845,-5.4e-4 -15.11665,6.76678 -15.11719,15.11523 5.4e-4,8.34845 6.76874,15.11577 15.11719,15.11523 h 51.34121 c 6.37912,0.0982 14.2617,-6.56803 14.36133,-14.91015 z M 462.75043,83.180024 c -5.9596,-6.066163 -16.4608,-5.346286 -20.98808,-0.678102 l -36.30372,36.303718 c -5.90363,5.90287 -5.90425,15.47392 -0.001,21.37755 5.90363,5.90286 15.47468,5.90224 21.37755,-0.001 l 36.30372,-36.30372 c 4.58016,-4.441278 5.44025,-14.728839 -0.38808,-20.698056 z"
transform="matrix(3.0440242,0,0,3.0440242,-113.20727,52.264581)" />
<path
d="m 800,400 c -219.73005,0 -400,180.27 -400,400 0,219.73 180.26995,400 400,400 219.7301,0 400,-180.27 400,-400 0,-219.73 -180.2699,-400 -400,-400 z m 0,100 a 300,300 0 0 1 300,300 300,300 0 0 1 -300,300 z"
style="fill:#ffffff;stroke-width:200"
id="path3" />
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<g
id="g1"
transform="matrix(2.386373,0,0,2.386373,-532.38882,-905.91275)">
<path
d="m 581.14648,639.44464 c 0.2803,1.24602 0.41929,2.48276 0.40099,3.68552 l 0.0161,84.25292 c 0.003,12.82572 -10.39315,23.22236 -23.21933,23.22133 -12.82665,-0.003 -23.22635,-10.40321 -23.22738,-23.22939 l -0.0141,-84.25292 c -0.0187,-1.20171 0.11815,-2.43534 0.39697,-3.67543 A 146.67354,146.67354 0 0 0 411.6593,784.33218 146.67354,146.67354 0 0 0 558.33218,931.00506 146.67354,146.67354 0 0 0 705.00506,784.33218 146.67354,146.67354 0 0 0 581.14648,639.44464 Z"
style="display:inline;fill:#ffffff;stroke-width:93.6627;stroke-linecap:round"
id="path18" />
<path
id="path12"
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:0.5;vector-effect:none;fill:#ffffff;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m 697.6093,522.42374 c -7.75761,-0.0184 -15.05635,3.38727 -18.74248,10.0039 l -28.24223,48.91789 c -5.92084,10.25368 -2.36296,23.54007 7.89067,29.4609 l 0.002,0.002 c 10.25432,5.91946 23.54137,2.35805 29.46089,-7.89639 h -0.002 l 28.24222,-48.91789 c 2.77601,-4.64169 3.0563,-10.0808 1.75394,-15.25589 -1.30236,-5.17509 -4.44154,-10.32303 -9.74364,-13.46922 -0.005,-0.003 -0.0104,-0.007 -0.0156,-0.01 -3.37028,-1.98586 -7.07771,-2.82759 -10.60383,-2.83593 z m 100.62915,101.56627 v 8.2e-4 c -3.30495,-0.006 -6.61175,0.68748 -9.56685,2.45453 l 0.0786,-0.0467 -48.9981,28.28888 c -10.25444,5.91952 -13.81421,19.20495 -7.89476,29.45926 v 0.002 c 5.92083,10.25363 19.20723,13.81395 29.4609,7.89312 l 48.91788,-28.24468 c 4.72505,-2.63187 7.68513,-7.2027 9.14454,-12.33567 1.4594,-5.13297 1.31538,-11.15953 -1.7032,-16.53512 -0.003,-0.005 -0.007,-0.0104 -0.01,-0.0156 -4.2359,-7.49007 -12.15877,-10.90649 -19.42916,-10.92056 z m 38.60952,138.77542 -56.57857,8.2e-4 c -11.84045,-7.6e-4 -21.56782,9.72586 -21.56859,21.56613 7.7e-4,11.84028 9.72852,21.56691 21.56859,21.56614 h 56.57857 l -0.0925,-0.002 c 5.40782,0.0833 10.25595,-2.39424 14.08633,-6.10972 3.83038,-3.71548 6.7195,-9.00692 6.79313,-15.17159 10e-6,-0.007 10e-6,-0.0131 0,-0.0197 0.0555,-6.25791 -2.78084,-11.68587 -6.61716,-15.51206 -3.83632,-3.82618 -8.75443,-6.40037 -14.2623,-6.31597 z m -85.73828,110.9727 c -7.65299,-0.19924 -15.18187,3.72809 -19.25238,10.77734 v 0.002 c -5.91945,10.25432 -2.35968,23.53975 7.89476,29.45926 l 48.92198,28.24386 c 4.64153,2.77525 10.07734,3.05232 15.2518,1.74984 5.17505,-1.30262 10.32227,-4.43998 13.4684,-9.742 0.004,-0.005 0.007,-0.0104 0.0106,-0.0155 3.17699,-5.3918 3.43418,-11.51296 2.02484,-16.74465 -1.40887,-5.22992 -4.38033,-9.91631 -9.18954,-12.59757 l -0.004,-0.004 -48.91788,-28.24223 c -3.20378,-1.84998 -6.72887,-2.79606 -10.20852,-2.88667 z" />
<path
id="path13"
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#ffffff;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m 558.59735,485.02962 c -6.25807,-0.0554 -11.68738,2.78073 -15.5137,6.61716 -3.82631,3.83644 -6.40038,8.75336 -6.31598,14.26147 l -0.002,-0.09 v 56.57612 c -7.6e-4,11.84045 9.72667,21.56783 21.56695,21.56859 11.84028,-7.6e-4 21.56691,-9.72814 21.56614,-21.56859 v -56.48445 c 0.0832,-5.40783 -2.39595,-10.25739 -6.11136,-14.08797 -3.71542,-3.83059 -9.00673,-6.71868 -15.17159,-6.7923 -0.006,-1e-5 -0.012,-1e-5 -0.018,0 z m -139.17319,37.35893 c -3.47474,-0.0503 -7.13907,0.7131 -10.49825,2.59939 -0.005,0.003 -0.0104,0.005 -0.0155,0.008 -5.44728,3.08097 -8.72968,8.25256 -10.12503,13.48804 -1.39536,5.23549 -1.16721,10.78267 1.65981,15.51043 l 28.24223,48.91789 c 5.91951,10.25444 19.20494,13.81585 29.45926,7.89639 l 0.002,-0.002 c 10.25363,-5.92083 13.81151,-19.20722 7.89067,-29.4609 h 0.002 l -28.24468,-48.91789 c -3.61864,-6.49658 -10.73029,-9.92837 -18.37255,-10.03909 z M 318.59777,623.98264 c -7.15466,-0.0582 -15.00257,3.16298 -19.3285,10.45323 -0.003,0.005 -0.007,0.0104 -0.01,0.0155 -3.17704,5.39188 -3.43251,11.51201 -2.0232,16.74384 1.40931,5.23184 4.37891,9.92076 9.19118,12.60166 l 48.91789,28.24386 c 10.25367,5.92083 23.54007,2.36133 29.4609,-7.8923 l 0.002,-0.002 c 5.91946,-10.25431 2.35804,-23.53974 -7.8964,-29.45926 l -48.9187,-28.24222 c -2.90145,-1.73525 -6.14348,-2.43624 -9.3958,-2.46272 z m -38.7814,138.78361 0.0917,0.002 c -5.40782,-0.0832 -10.25514,2.39424 -14.08551,6.10972 -3.83038,3.71548 -6.71951,9.00693 -6.79313,15.17159 -1e-5,0.007 -1e-5,0.0131 0,0.0196 -0.0554,6.25787 2.78087,11.68507 6.61716,15.51125 3.8363,3.82618 8.75361,6.40119 14.26148,6.31679 l -0.0917,0.002 h 56.57776 c 11.84008,7.7e-4 21.56782,-9.72587 21.56859,-21.56614 -7.7e-4,-11.8396 -9.72658,-21.56581 -21.56614,-21.56613 z m 85.73828,110.97188 c -3.47965,0.0906 -7.00555,1.03751 -10.20933,2.88749 l -48.91789,28.24141 v 8.2e-4 h -8.2e-4 v 8.2e-4 h -8.2e-4 v 8.2e-4 l -8.1e-4,8.1e-4 v 8.2e-4 h -8.2e-4 -8.2e-4 c -4.72222,2.63231 -7.68154,7.20119 -9.14044,12.33239 -1.4594,5.13298 -1.31539,11.15954 1.70319,16.53513 0.003,0.006 0.007,0.0115 0.01,0.0172 3.08097,5.44727 8.25338,8.72968 13.48886,10.12504 5.23491,1.3952 10.77811,1.16632 15.50552,-1.65982 h 0.002 l 48.91952,-28.24386 c 10.25444,-5.91951 13.81585,-19.20494 7.8964,-29.45926 l -0.002,-0.002 c -4.07051,-7.04925 -11.5994,-10.97659 -19.25238,-10.77734 z" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
id="svg3"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<g
fill="#fff"
id="g3">
<g
enable-background="new"
transform="matrix(100 0 0 100 -44600.356 -59800.356)"
id="g2">
<path
id="path1"
d="m 447.50001,599.00001 c -0.27613,3e-5 -0.49997,0.22387 -0.5,0.5 v 13.00355 c 3e-5,0.27613 0.22397,0.48947 0.5,0.5 h 13 c 0.0229,3e-4 0.045,-5.7e-4 0.0664,-0.003 0.32026,-0.0296 0.46599,-0.30644 0.43719,-0.56098 v -12.94003 c -3e-5,-0.27613 -0.22387,-0.49997 -0.5,-0.5 z m 0.5,1 h 12.00355 v 12.00355 h -12.00355 z"
style="opacity:0.5" />
<path
style="display:inline;fill:none;fill-opacity:0.6;stroke:#ffffff;stroke-width:1;stroke-linecap:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 450.00356,610.00356 c 0,0 2.99141,1.00812 6,-2 3,-3 2,-6 2,-6"
id="path9" />
<path
id="path10"
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:0.6;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.01;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000"
d="m 454.30099,605.0345 c -0.13256,0.005 -0.25777,0.0617 -0.34826,0.1586 l -0.68593,0.73573 c -0.18827,0.20204 -0.17742,0.51833 0.0245,0.7067 0.20201,0.18824 0.51831,0.1774 0.70666,-0.0245 l 0.68596,-0.73577 c 0.1883,-0.20197 0.1774,-0.51831 -0.0245,-0.70668 -0.0971,-0.0904 -0.22591,-0.13866 -0.35843,-0.13408 z m 2.05085,-2.18954 c -0.13257,0.005 -0.25779,0.0617 -0.34828,0.1586 l -0.68593,0.73574 c -0.18826,0.20203 -0.1774,0.51832 0.0246,0.70669 0.20201,0.18825 0.51831,0.17741 0.70666,-0.0245 l 0.68596,-0.73577 c 0.1883,-0.20197 0.1774,-0.51831 -0.0245,-0.70668 -0.0971,-0.0904 -0.22591,-0.13866 -0.35842,-0.13408 z m -4.0961,4.38429 c -0.13257,0.005 -0.25778,0.0617 -0.34827,0.1586 l -0.68593,0.73574 c -0.18826,0.20203 -0.17741,0.51831 0.0245,0.7067 0.20201,0.18823 0.51831,0.17739 0.70667,-0.0245 l 0.68595,-0.73577 c 0.1883,-0.20197 0.17741,-0.51831 -0.0245,-0.70668 -0.0971,-0.0904 -0.22592,-0.13866 -0.35844,-0.13408 z" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
id="svg3"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<g
fill="#fff"
id="g3">
<g
enable-background="new"
transform="matrix(100 0 0 100 -44600.356 -59800.356)"
id="g2">
<path
id="path1"
d="m 447.50001,599.00001 c -0.27613,3e-5 -0.49997,0.22387 -0.5,0.5 v 13.00355 c 3e-5,0.27613 0.22397,0.48947 0.5,0.5 h 13 c 0.0229,3e-4 0.045,-5.7e-4 0.0664,-0.003 0.32026,-0.0296 0.46599,-0.30644 0.43719,-0.56098 v -12.94003 c -3e-5,-0.27613 -0.22387,-0.49997 -0.5,-0.5 z m 0.5,1 h 12.00355 v 12.00355 h -12.00355 z"
style="opacity:0.5" />
<path
d="m 458.00356,602.00356 c -4.87024,0 -4.08879,7 -8,7 h -1 v 1 h 1 c 4.75106,0 4.07637,-7 8,-7 h 1 v -1 z"
opacity="0.65"
id="path6"
style="display:inline;opacity:1" />
<circle
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.02;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
id="path7"
cx="456.00357"
cy="603.00354"
r="1" />
<circle
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.02;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
id="circle7"
cx="452.00357"
cy="609.00354"
r="1" />
<path
id="path1-1"
style="display:inline;opacity:0.3"
d="m 450.50372,600.9984 c -0.25245,0 -0.50494,0.16903 -0.50016,0.50711 v 0.49805 h -0.5 c -0.67616,-0.01 -0.67616,1.00956 0,1 h 0.5 v 3.50195 c -0.004,0.28226 0.22555,0.51224 0.50781,0.50782 0.27614,-0.004 0.49651,-0.23168 0.49219,-0.50782 v -3.50195 h 2.48083 c 0.67616,0.01 0.67616,-1.00956 0,-1 h -2.48083 v -0.49805 c 0.005,-0.33808 -0.2474,-0.50711 -0.49984,-0.50711 z m 6.99203,4.00516 c -0.27614,0.004 -0.49651,0.23167 -0.49219,0.50781 v 3.49414 h -2.5 c -0.67616,-0.01 -0.67616,1.00956 0,1 h 2.5 v 0.49805 c -0.01,0.67616 1.00956,0.67616 1,0 v -0.49805 h 0.5 c 0.67616,0.01 0.67616,-1.00956 0,-1 h -0.5 v -3.49414 c 0.004,-0.28226 -0.22555,-0.51223 -0.50781,-0.50781 z" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
id="svg4"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs4" />
<g
fill="#fff"
id="g4">
<g
enable-background="new"
opacity=".99"
transform="matrix(-100 0 0 100 126400.005 29299.979)"
id="g3"
style="opacity:1">
<path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m 1259.2639,-287.60827 c -0.1781,5.1e-4 -0.3425,0.0957 -0.4316,0.25 l -3.2363,5.60547 c -0.1925,0.33356 0.048,0.75039 0.4336,0.75 h 6.4707 c 0.3851,3.9e-4 0.6261,-0.41644 0.4336,-0.75 l -3.2364,-5.60547 c -0.089,-0.15487 -0.2548,-0.2502 -0.4336,-0.25 z"
id="path12" />
<path
id="path13"
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:0.6;vector-effect:none;stroke-width:1.50964;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m 1254.4203,-290.46097 c 0.1661,0.0121 0.3155,0.10507 0.3986,0.24944 l 2.2498,3.89924 -0.5774,1.00016 -2.1059,-3.64628 -4.0188,6.9585 h 4.2124 l -0.1434,0.24711 c -0.1925,0.33355 0.048,0.75037 0.4335,0.75001 l -5.3701,0.003 c -0.3842,-2.2e-4 -0.6247,-0.41566 -0.4334,-0.74891 l 4.8864,-8.46284 c 0.095,-0.16594 0.2774,-0.26278 0.4683,-0.24944 z" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="svg3"
height="1600"
viewBox="0 0 1600 1600"
width="1600"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<g
id="g5">
<path
d="m 149.91406,99.972656 c -8.806,0.001 -16.95453,2.476614 -24.14453,6.474614 -0.46018,0.23898 -0.91662,0.4851 -1.36914,0.73828 -7.112,4.2516 -13.02344,10.16043 -17.27344,17.27343 -0.24006,0.45212 -0.47316,0.90791 -0.69922,1.36719 -3.99,7.1864 -6.469699,15.33753 -6.470699,24.14453 v 1300 c 0.007,18.9657 10.011109,33.4916 23.662109,41.9551 1.00797,0.6409 2.03858,1.2454 3.08984,1.8125 7.184,3.7877 15.05047,6.1642 23.23047,6.2285 h 0.0176 0.082 c 0.51,0 1.01953,0.083 1.51953,0.07 h 0.0156 c 0.2,-0.01 0.50117,-0.061 0.70117,-0.07 H 1449.957 c 27.6131,0 49.9972,-22.3869 50,-50 V 152.28906 c 0.03,-0.748 0,-1.48633 0,-2.23633 v -0.082 l -0.049,-0.0137 c -0.07,-8.1835 -2.4385,-16.04647 -6.2285,-23.23047 -0.5663,-1.05322 -1.1702,-2.08578 -1.8106,-3.0957 -8.463,-13.6475 -22.989,-23.650904 -41.955,-23.658204 z M 550,300 c 27.61424,0 50,22.38576 50,50 v 150 h 150 c 27.61424,0 50,22.38576 50,50 0,27.61424 -22.38576,50 -50,50 H 600 v 150 c 0,27.61424 -22.38576,50 -50,50 -27.61424,0 -50,-22.38576 -50,-50 V 600 H 350 c -27.61424,0 -50,-22.38576 -50,-50 0,-27.61424 22.38576,-50 50,-50 H 500 V 350 c 0,-27.61424 22.38576,-50 50,-50 z m 849.957,-29.32617 V 1399.9707 H 270.66016 Z"
style="fill:#ffffff"
id="path6" />
<path
style="fill:none;fill-opacity:0.6;stroke:#ffffff;stroke-width:88.7273;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1"
d="M 1156.5003,1152.6082 H 842.69009"
id="path4" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1546,6 +1546,10 @@ class SEQUENCER_MT_modifier_add(Menu):
bl_label = "Add Modifier"
bl_options = {'SEARCH_ON_KEY_PRESS'}
MODIFIER_TYPES_TO_ICONS = {
enum_it.identifier: enum_it.icon
for enum_it in bpy.types.StripModifier.bl_rna.properties["type"].enum_items_static
}
MODIFIER_TYPES_TO_LABELS = {
enum_it.identifier: enum_it.name
for enum_it in bpy.types.StripModifier.bl_rna.properties["type"].enum_items_static
@@ -1560,7 +1564,7 @@ class SEQUENCER_MT_modifier_add(Menu):
# Although these are operators, the label actually comes from an (enum) property,
# so the property's translation context must be used here.
text_ctxt=cls.MODIFIER_TYPES_I18N_CONTEXT,
icon='NONE',
icon=cls.MODIFIER_TYPES_TO_ICONS[mod_type],
).type = mod_type
def draw(self, context):

View File

@@ -566,10 +566,13 @@ if(WITH_BLENDER)
mod_array
mod_bevel
mod_boolean
mod_brightness_contrast
mod_build
mod_cast
mod_cloth
mod_color_balance
mod_curve
mod_curves
mod_dash
mod_data_transfer
mod_decim
@@ -580,6 +583,7 @@ if(WITH_BLENDER)
mod_explode
mod_fluid
mod_fluidsim
mod_hue_correct
mod_hue_saturation
mod_instance
mod_lattice
@@ -611,11 +615,13 @@ if(WITH_BLENDER)
mod_thickness
mod_time
mod_tint
mod_tonemap
mod_triangulate
mod_uvproject
mod_vertex_weight
mod_warp
mod_wave
mod_white_balance
mod_wireframe
monkey
mouse_lmb

View File

@@ -807,6 +807,14 @@ DEF_ICON(SEQ_SPLITVIEW)
DEF_ICON(SEQ_STRIP_DUPLICATE)
DEF_ICON(SEQ_STRIP_META)
/* Modifiers. */
DEF_ICON_MODIFIER(MOD_BRIGHTNESS_CONTRAST)
DEF_ICON_MODIFIER(MOD_COLOR_BALANCE)
DEF_ICON_MODIFIER(MOD_CURVES)
DEF_ICON_MODIFIER(MOD_HUE_CORRECT)
DEF_ICON_MODIFIER(MOD_TONEMAP)
DEF_ICON_MODIFIER(MOD_WHITE_BALANCE)
/* IMAGE EDITOR */
DEF_ICON(IMAGE_ALPHA)
DEF_ICON(IMAGE_RGB_ALPHA)

View File

@@ -42,13 +42,13 @@ struct EffectInfo {
/* These wrap strangely, disable formatting for fixed indentation and wrapping. */
/* clang-format off */
#define RNA_ENUM_SEQUENCER_VIDEO_MODIFIER_TYPE_ITEMS \
{eSeqModifierType_BrightContrast, "BRIGHT_CONTRAST", ICON_NONE, "Brightness/Contrast", ""}, \
{eSeqModifierType_ColorBalance, "COLOR_BALANCE", ICON_NONE, "Color Balance", ""}, \
{eSeqModifierType_Curves, "CURVES", ICON_NONE, "Curves", ""}, \
{eSeqModifierType_HueCorrect, "HUE_CORRECT", ICON_NONE, "Hue Correct", ""}, \
{eSeqModifierType_Mask, "MASK", ICON_NONE, "Mask", ""}, \
{eSeqModifierType_Tonemap, "TONEMAP", ICON_NONE, "Tone Map", ""}, \
{eSeqModifierType_WhiteBalance, "WHITE_BALANCE", ICON_NONE, "White Balance", ""}
{eSeqModifierType_BrightContrast, "BRIGHT_CONTRAST", ICON_MOD_BRIGHTNESS_CONTRAST, "Brightness/Contrast", ""}, \
{eSeqModifierType_ColorBalance, "COLOR_BALANCE", ICON_MOD_COLOR_BALANCE, "Color Balance", ""}, \
{eSeqModifierType_Curves, "CURVES", ICON_MOD_CURVES, "Curves", ""}, \
{eSeqModifierType_HueCorrect, "HUE_CORRECT", ICON_MOD_HUE_CORRECT, "Hue Correct", ""}, \
{eSeqModifierType_Mask, "MASK", ICON_MOD_MASK, "Mask", ""}, \
{eSeqModifierType_Tonemap, "TONEMAP", ICON_MOD_TONEMAP, "Tone Map", ""}, \
{eSeqModifierType_WhiteBalance, "WHITE_BALANCE", ICON_MOD_WHITE_BALANCE, "White Balance", ""}
#define RNA_ENUM_SEQUENCER_AUDIO_MODIFIER_TYPE_ITEMS \
{eSeqModifierType_SoundEqualizer, "SOUND_EQUALIZER", ICON_NONE, "Sound Equalizer", ""}
@@ -3887,6 +3887,7 @@ static void rna_def_colorbalance_modifier(BlenderRNA *brna)
PropertyRNA *prop;
srna = RNA_def_struct(brna, "ColorBalanceModifier", "StripModifier");
RNA_def_struct_ui_icon(srna, ICON_MOD_COLOR_BALANCE);
RNA_def_struct_sdna(srna, "ColorBalanceModifierData");
RNA_def_struct_ui_text(
srna, "ColorBalanceModifier", "Color balance modifier for sequence strip");
@@ -3911,6 +3912,7 @@ static void rna_def_whitebalance_modifier(BlenderRNA *brna)
srna = RNA_def_struct(brna, "WhiteBalanceModifier", "StripModifier");
RNA_def_struct_sdna(srna, "WhiteBalanceModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_WHITE_BALANCE);
RNA_def_struct_ui_text(
srna, "WhiteBalanceModifier", "White balance modifier for sequence strip");
@@ -3930,6 +3932,7 @@ static void rna_def_curves_modifier(BlenderRNA *brna)
srna = RNA_def_struct(brna, "CurvesModifier", "StripModifier");
RNA_def_struct_sdna(srna, "CurvesModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_CURVES);
RNA_def_struct_ui_text(srna, "CurvesModifier", "RGB curves modifier for sequence strip");
prop = RNA_def_property(srna, "curve_mapping", PROP_POINTER, PROP_NONE);
@@ -3948,6 +3951,7 @@ static void rna_def_hue_modifier(BlenderRNA *brna)
srna = RNA_def_struct(brna, "HueCorrectModifier", "StripModifier");
RNA_def_struct_sdna(srna, "HueCorrectModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_HUE_CORRECT);
RNA_def_struct_ui_text(srna, "HueCorrectModifier", "Hue correction modifier for sequence strip");
prop = RNA_def_property(srna, "curve_mapping", PROP_POINTER, PROP_NONE);
@@ -3963,6 +3967,7 @@ static void rna_def_mask_modifier(BlenderRNA *brna)
{
StructRNA *srna;
srna = RNA_def_struct(brna, "MaskStripModifier", "StripModifier");
RNA_def_struct_ui_icon(srna, ICON_MOD_MASK);
RNA_def_struct_ui_text(srna, "Mask Modifier", "Mask modifier for sequence strip");
/* Mask properties are part of #rna_def_modifier. */
@@ -3974,6 +3979,7 @@ static void rna_def_brightcontrast_modifier(BlenderRNA *brna)
PropertyRNA *prop;
srna = RNA_def_struct(brna, "BrightContrastModifier", "StripModifier");
RNA_def_struct_ui_icon(srna, ICON_MOD_BRIGHTNESS_CONTRAST);
RNA_def_struct_sdna(srna, "BrightContrastModifierData");
RNA_def_struct_ui_text(
srna, "BrightContrastModifier", "Bright/contrast modifier data for sequence strip");
@@ -4006,6 +4012,7 @@ static void rna_def_tonemap_modifier(BlenderRNA *brna)
srna = RNA_def_struct(brna, "SequencerTonemapModifierData", "StripModifier");
RNA_def_struct_sdna(srna, "SequencerTonemapModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_TONEMAP);
RNA_def_struct_ui_text(srna, "SequencerTonemapModifierData", "Tone mapping modifier");
prop = RNA_def_property(srna, "tonemap_type", PROP_ENUM, PROP_NONE);