Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

color level icons

konero703cbcb2ac1d
diff --git a/toonz/sources/toonz/icons/dark/actions/16/new_note_level.svg b/toonz/sources/toonz/icons/dark/actions/16/new_note_level.svg
index 7b6bdbcb2..e218cdde7 100644
--- a/toonz/sources/toonz/icons/dark/actions/16/new_note_level.svg
+++ b/toonz/sources/toonz/icons/dark/actions/16/new_note_level.svg
@@ -1,11 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
- <g id="new_note_level">
- <rect id="bg" x="0.001" y="-0.04" width="16" height="16" style="fill:rgb(135,135,135);fill-opacity:0;"/>
- <rect x="4.501" y="4.235" width="5" height="1.45"/>
- <rect x="4.501" y="7.235" width="7" height="1.45"/>
- <rect x="4.501" y="10.235" width="6" height="1.45"/>
- <path d="M14.694,4.694C14.89,4.89 15,5.156 15.001,5.432C15.004,6.91 15.013,11.788 15.017,13.951C15.018,14.229 14.907,14.496 14.711,14.693C14.515,14.889 14.248,15 13.97,15C11.369,15 4.646,15 2.047,15C1.769,15 1.503,14.89 1.307,14.693C1.11,14.497 1,14.231 1,13.953C1,11.356 1,4.644 1,2.047C1,1.769 1.11,1.503 1.307,1.307C1.503,1.11 1.769,1 2.047,1C4.209,1 9.087,1 10.567,1C10.845,1 11.111,1.11 11.308,1.307C12.053,2.052 13.95,3.95 14.694,4.694ZM14,14L14,5L11,5L11,2L2,2L2,14L14,14Z"/>
+ <rect id="bg" x="0.001" y="-0.04" width="16" height="16" style="fill:#878787;fill-opacity:0;"/>
+ <g transform="matrix(1,0,0,1,-171,-115)">
+ <g transform="matrix(1,0,0,1,61.0005,-115)">
+ <path d="M124.999,234L122,234L122,231.023L124.999,234Z" style="fill:#9f9f9f;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,61,-115)">
+ <path d="M121,230C121.191,230 121.579,230.015 121.612,230.002C122.094,229.998 122.418,230.029 122.704,230.313L125.704,233.29C126.046,233.665 125.997,233.954 125.998,234.363C125.998,234.474 126,234.818 126,235L126,244C126,245.104 125.104,246 124,246L112,246C110.896,246 110,245.104 110,244L110,232C110,230.896 110.896,230 112,230L121,230ZM121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235L121,235L121,231ZM124.999,234L122,231.023L122,234L124.999,234Z" style="fill:#1b1b1b;fill-opacity:0.75;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,61,-115)">
+ <path d="M121,231L121,235L125,235L125,244C125,244.552 124.552,245 124,245L112,245C111.448,245 111,244.552 111,244L111,232C111,231.448 111.448,231 112,231L121,231Z" style="fill:#d6d6d6;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,171.016,116.017)">
+ <path d="M9.501,4.235L9.501,5.685L4.501,5.685L4.501,4.235L9.501,4.235ZM11.501,7.235L11.501,8.685L4.501,8.685L4.501,7.235L11.501,7.235ZM10.501,10.235L10.501,11.685L4.501,11.685L4.501,10.235L10.501,10.235Z" style="fill:#181818;"/>
+ </g>
</g>
</svg>
diff --git a/toonz/sources/toonz/icons/dark/actions/16/new_raster_level.svg b/toonz/sources/toonz/icons/dark/actions/16/new_raster_level.svg
index b2e25996f..03d23b604 100644
--- a/toonz/sources/toonz/icons/dark/actions/16/new_raster_level.svg
+++ b/toonz/sources/toonz/icons/dark/actions/16/new_raster_level.svg
@@ -1,26 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
- <g transform="matrix(1,0,0,1,-150,-210)">
- <g id="new_raster_level" transform="matrix(1,0,0,1,40,-20)">
- <g id="bg" transform="matrix(0.110345,0,0,0.121212,93.7793,211.091)">
- <rect x="147" y="156" width="145" height="132" style="fill:rgb(135,135,135);fill-opacity:0;"/>
- </g>
- <g>
- <g transform="matrix(1,0,0,1,1,0)">
- <path d="M120,231.5L123.5,235L120,235L120,231.5Z"/>
- </g>
- <path d="M125,235C125,234.735 124.895,234.48 124.707,234.293L121.707,231.293C121.52,231.105 121.265,231 121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235ZM124,235L121,232L112,232L112,244L124,244L124,235Z"/>
- </g>
- <g transform="matrix(1,0,0,0.8,-40,63.6)">
- <ellipse cx="156" cy="216.75" rx="1" ry="1.25"/>
- </g>
- <g transform="matrix(1.25,0,0,1.66667,-80.5,-128.667)">
- <path d="M160,220L162.8,223L157.2,223L160,220Z"/>
- </g>
- <g transform="matrix(1.25,0,0,1,-84.5,20)">
- <path d="M159.6,220L161.2,223L158,223L159.6,220Z"/>
- </g>
+<svg width="100%" height="100%" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
+ <g transform="matrix(0.110345,0,0,0.121212,-16.2207,-18.909)">
+ <rect x="147" y="156" width="145" height="132" style="fill:#878787;fill-opacity:0;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,-151,-115)">
+ <g transform="matrix(1,0,0,1,41.0005,-115)">
+ <path d="M124.999,234L122,234L122,231.023L124.999,234Z" style="fill:#abdffb;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,41,-115)">
+ <path d="M121,230C121.191,230 121.579,230.015 121.612,230.002C122.094,229.998 122.418,230.029 122.704,230.313L125.704,233.29C126.046,233.665 125.997,233.954 125.998,234.363C125.998,234.474 126,234.818 126,235L126,244C126,245.104 125.104,246 124,246L112,246C110.896,246 110,245.104 110,244L110,232C110,230.896 110.896,230 112,230L121,230ZM121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235L121,235L121,231ZM124.999,234L122,231.023L122,234L124.999,234Z" style="fill:#141414;fill-opacity:0.75;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,41,-115)">
+ <path d="M121,231L121,235L125,235L125,244C125,244.552 124.552,245 124,245L112,245C111.448,245 111,244.552 111,244L111,232C111,231.448 111.448,231 112,231L121,231Z" style="fill:#7ac1e8;"/>
+ </g>
+ <g transform="matrix(1,0,0,0.8,0.99996,-51.4001)">
+ <ellipse cx="156" cy="216.75" rx="1" ry="1.25" style="fill:#161616;"/>
+ </g>
+ <g transform="matrix(1.25,0,0,1.66667,-39.5,-243.667)">
+ <path d="M160,220L162.8,223L157.2,223L160,220Z" style="fill:#161616;"/>
+ </g>
+ <g transform="matrix(1.25,0,0,1,-43.5,-95.0001)">
+ <path d="M159.6,220L161.2,223L158,223L159.6,220Z" style="fill:#161616;"/>
</g>
</g>
</svg>
diff --git a/toonz/sources/toonz/icons/dark/actions/16/new_toonz_raster_level.svg b/toonz/sources/toonz/icons/dark/actions/16/new_toonz_raster_level.svg
index 022309710..2549c06d8 100644
--- a/toonz/sources/toonz/icons/dark/actions/16/new_toonz_raster_level.svg
+++ b/toonz/sources/toonz/icons/dark/actions/16/new_toonz_raster_level.svg
@@ -1,20 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
- <g transform="matrix(1,0,0,1,-190,-210)">
- <g id="new_toonz_raster_level" transform="matrix(1,0,0,1,80,-20)">
- <g id="bg" transform="matrix(0.110345,0,0,0.121212,93.7793,211.091)">
- <rect x="147" y="156" width="145" height="132" style="fill:rgb(135,135,135);fill-opacity:0;"/>
- </g>
- <g>
- <g transform="matrix(1,0,0,1,1,0)">
- <path d="M120,231.5L123.5,235L120,235L120,231.5Z"/>
- </g>
- <path d="M125,235C125,234.735 124.895,234.48 124.707,234.293L121.707,231.293C121.52,231.105 121.265,231 121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235ZM124,235L121,232L112,232L112,244L124,244L124,235Z"/>
- </g>
- <g transform="matrix(1,0,0,1,108.142,227)">
- <path d="M9.929,8C7.72,8 5.358,9.791 5.358,12C5.358,14.209 7.72,16 9.929,16C10.298,16 10.596,15.702 10.596,15.333C10.596,15.16 10.529,15.004 10.422,14.884C10.32,14.769 10.253,14.613 10.253,14.444C10.253,14.076 10.551,13.778 10.92,13.778L11.707,13.778C12.933,13.778 14.5,12.782 14.5,11.556C14.5,9.591 12.138,8 9.929,8ZM7.941,14.024C7.381,14.024 6.929,13.572 6.929,13.012C6.929,12.452 7.381,12 7.941,12C8.501,12 8.953,12.452 8.953,13.012C8.953,13.572 8.501,14.024 7.941,14.024ZM11.928,12C11.375,12 10.929,11.554 10.929,11.001C10.929,10.448 11.375,10.001 11.928,10.001C12.481,10.001 12.928,10.448 12.928,11.001C12.928,11.554 12.481,12 11.928,12ZM8.953,10.999C8.4,10.999 7.954,10.552 7.954,9.999C7.954,9.446 8.4,9 8.953,9C9.506,9 9.953,9.446 9.953,9.999C9.953,10.552 9.506,10.999 8.953,10.999Z"/>
- </g>
+<svg width="100%" height="100%" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
+ <g transform="matrix(0.110345,0,0,0.121212,-16.2207,-18.909)">
+ <rect x="147" y="156" width="145" height="132" style="fill:#878787;fill-opacity:0;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,-131,-115)">
+ <g transform="matrix(1,0,0,1,21,-115)">
+ <path d="M121,230C121.191,230 121.579,230.015 121.612,230.002C122.094,229.998 122.418,230.029 122.704,230.313L125.704,233.29C126.046,233.665 125.997,233.954 125.998,234.363C125.998,234.474 126,234.818 126,235L126,244C126,245.104 125.104,246 124,246L112,246C110.896,246 110,245.104 110,244L110,232C110,230.896 110.896,230 112,230L121,230ZM121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235L121,235L121,231ZM124.999,234L122,231.023L122,234L124.999,234Z" style="fill:#141414;fill-opacity:0.75;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,21,-115)">
+ <path d="M121,231L121,235L125,235L125,244C125,244.552 124.552,245 124,245L112,245C111.448,245 111,244.552 111,244L111,232C111,231.448 111.448,231 112,231L121,231Z" style="fill:#6bda54;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,21,-115)">
+ <path d="M124.999,234L122,234L122,231.023L124.999,234Z" style="fill:#80ff74;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,129.142,112)">
+ <path d="M9.929,8C7.72,8 5.358,9.791 5.358,12C5.358,14.209 7.72,16 9.929,16C10.298,16 10.596,15.702 10.596,15.333C10.596,15.16 10.529,15.004 10.422,14.884C10.32,14.769 10.253,14.613 10.253,14.444C10.253,14.076 10.551,13.778 10.92,13.778L11.707,13.778C12.933,13.778 14.5,12.782 14.5,11.556C14.5,9.591 12.138,8 9.929,8ZM7.941,14.024C7.381,14.024 6.929,13.572 6.929,13.012C6.929,12.452 7.381,12 7.941,12C8.501,12 8.953,12.452 8.953,13.012C8.953,13.572 8.501,14.024 7.941,14.024ZM11.928,12C11.375,12 10.929,11.554 10.929,11.001C10.929,10.448 11.375,10.001 11.928,10.001C12.481,10.001 12.928,10.448 12.928,11.001C12.928,11.554 12.481,12 11.928,12ZM8.953,10.999C8.4,10.999 7.954,10.552 7.954,9.999C7.954,9.446 8.4,9 8.953,9C9.506,9 9.953,9.446 9.953,9.999C9.953,10.552 9.506,10.999 8.953,10.999Z" style="fill:#171717;"/>
</g>
</g>
</svg>
diff --git a/toonz/sources/toonz/icons/dark/actions/16/new_vector_level.svg b/toonz/sources/toonz/icons/dark/actions/16/new_vector_level.svg
index 33009f48f..ef5171ce8 100644
--- a/toonz/sources/toonz/icons/dark/actions/16/new_vector_level.svg
+++ b/toonz/sources/toonz/icons/dark/actions/16/new_vector_level.svg
@@ -1,20 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
- <g transform="matrix(1,0,0,1,-170,-210)">
- <g id="new_vector_level" transform="matrix(1,0,0,1,60,-20)">
- <g id="bg" transform="matrix(0.110345,0,0,0.121212,93.7793,211.091)">
- <rect x="147" y="156" width="145" height="132" style="fill:rgb(135,135,135);fill-opacity:0;"/>
- </g>
- <g>
- <g transform="matrix(1,0,0,1,1,0)">
- <path d="M120,231.5L123.5,235L120,235L120,231.5Z"/>
- </g>
- <path d="M125,235C125,234.735 124.895,234.48 124.707,234.293L121.707,231.293C121.52,231.105 121.265,231 121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235ZM124,235L121,232L112,232L112,244L124,244L124,235Z"/>
- </g>
- <g transform="matrix(1,0,0,1,108,227)">
- <path d="M7,14L5,14L5,16L7,16L7,14ZM15,14L13,14L13,16L15,16L15,14ZM14.472,13.5C14.28,11.762 13.096,10.321 11.5,9.756L11.5,10.976C12.468,11.458 13.173,12.391 13.338,13.5L14.472,13.5ZM6.662,13.5C6.827,12.391 7.532,11.458 8.5,10.976L8.5,9.756C6.904,10.321 5.72,11.762 5.528,13.5L6.662,13.5ZM11,9L9,9L9,11L11,11L11,9Z"/>
- </g>
+<svg width="100%" height="100%" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
+ <g transform="matrix(0.110345,0,0,0.121212,-16.2207,-18.909)">
+ <rect x="147" y="156" width="145" height="132" style="fill:#878787;fill-opacity:0;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,-171,-115)">
+ <g transform="matrix(1,0,0,1,61.0005,-115)">
+ <path d="M124.999,234L122,234L122,231.023L124.999,234Z" style="fill:#fff091;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,61,-115)">
+ <path d="M121,230C121.191,230 121.579,230.015 121.612,230.002C122.094,229.998 122.418,230.029 122.704,230.313L125.704,233.29C126.046,233.665 125.997,233.954 125.998,234.363C125.998,234.474 126,234.818 126,235L126,244C126,245.104 125.104,246 124,246L112,246C110.896,246 110,245.104 110,244L110,232C110,230.896 110.896,230 112,230L121,230ZM121,231L112,231C111.448,231 111,231.448 111,232L111,244C111,244.552 111.448,245 112,245L124,245C124.552,245 125,244.552 125,244L125,235L121,235L121,231ZM124.999,234L122,231.023L122,234L124.999,234Z" style="fill:#1b1b1b;fill-opacity:0.75;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,61,-115)">
+ <path d="M121,231L121,235L125,235L125,244C125,244.552 124.552,245 124,245L112,245C111.448,245 111,244.552 111,244L111,232C111,231.448 111.448,231 112,231L121,231Z" style="fill:#ecdc74;"/>
+ </g>
+ <g transform="matrix(1,0,0,1,169,112)">
+ <path d="M7,14L5,14L5,16L7,16L7,14ZM15,14L13,14L13,16L15,16L15,14ZM14.472,13.5C14.28,11.762 13.096,10.321 11.5,9.756L11.5,10.976C12.468,11.458 13.173,12.391 13.338,13.5L14.472,13.5ZM6.662,13.5C6.827,12.391 7.532,11.458 8.5,10.976L8.5,9.756C6.904,10.321 5.72,11.762 5.528,13.5L6.662,13.5ZM11,9L9,9L9,11L11,11L11,9Z" style="fill:#161616;"/>
</g>
</g>
</svg>
diff --git a/toonz/sources/toonzqt/gutil.cpp b/toonz/sources/toonzqt/gutil.cpp
index f189e9b34..d80b41fb9 100644
--- a/toonz/sources/toonzqt/gutil.cpp
+++ b/toonz/sources/toonzqt/gutil.cpp
@@ -500,10 +500,18 @@ QIcon createQIcon(const QString &iconSVGName, bool useFullOpacity,
static ThemeManager &themeManager = ThemeManager::getInstance();
if (iconSVGName.isEmpty() || !themeManager.hasIcon(iconSVGName)) {
// Use debug to check if something calls for an icon that doesn't exist
- //qDebug () << "File not found:" << iconSVGName;
+ // qDebug () << "File not found:" << iconSVGName;
return QIcon();
}
+ // Full opacity for color level icons
+ if (iconSVGName.contains("new_toonz_raster_level") ||
+ iconSVGName.contains("new_vector_level") ||
+ iconSVGName.contains("new_raster_level") ||
+ iconSVGName.contains("new_note_level")) {
+ useFullOpacity = true;
+ }
+
static int devPixRatio = getHighestDevicePixelRatio();
QImage baseImg(generateIconImage(iconSVGName, qreal(1.0), newSize));
@@ -511,7 +519,7 @@ QIcon createQIcon(const QString &iconSVGName, bool useFullOpacity,
QImage onImg(generateIconImage(iconSVGName + "_on", qreal(1.0), newSize));
QIcon icon;
-
+
// START_BUG_WORKAROUND: #20230627
// Set an empty pixmap for menu icons when hiding icons from menus is true,
// search bug ID for more info.