Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Add breeze icons to text-transform.
Wolthera van Hövell tot Westerflierad7e73142669
diff --git a/pics/16_dark_format-text-capitalize.svg b/pics/16_dark_format-text-capitalize.svgnew file mode 100644index 0000000000..db4b67ab1d--- /dev/null+++ b/pics/16_dark_format-text-capitalize.svg@@ -0,0 +1,54 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0 0 16 16"+ version="1.1"+ id="svg8"+ sodipodi:docname="16_dark_format-text-capitalize.svg"+ inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <sodipodi:namedview+ id="namedview10"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="14.75"+ inkscape:cx="7.4915254"+ inkscape:cy="8"+ inkscape:window-width="1920"+ inkscape:window-height="1010"+ inkscape:window-x="0"+ inkscape:window-y="0"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg8" />+ <defs+ id="defs3051">+ <style+ type="text/css"+ id="current-color-scheme">+ .ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }+ </style>+ </defs>+ <path+ style="fill:#373737;fill-opacity:1;stroke:none;opacity:0.66"+ d="M 9 5 L 9 14 L 10 14 L 10 13.228516 A 3 3 0 0 0 12.003906 14 A 3 3 0 0 0 15.003906 11 A 3 3 0 0 0 12.003906 8 A 3 3 0 0 0 10 8.7734375 L 10 5 L 9 5 z M 3.8964844 5.9980469 L 1.0078125 13.998047 L 2.1757812 13.998047 L 3.1699219 11.712891 L 5.9472656 11.712891 L 6.8417969 13.998047 L 8.0078125 13.998047 L 5.3632812 5.9980469 L 3.8964844 5.9980469 z M 4.6289062 7.2382812 L 5.7226562 10.570312 L 3.4199219 10.570312 L 4.6289062 7.2382812 z M 12.003906 9 A 2 2 0 0 1 14.003906 11 A 2 2 0 0 1 12.003906 13 A 2 2 0 0 1 10.003906 11 A 2 2 0 0 1 12.003906 9 z "+ class="ColorScheme-Text"+ id="path4" />+ <path+ style="fill:#373737;fill-opacity:1;stroke:none"+ d="M 2,5 7,5 4.5,2 Z"+ class="ColorScheme-Accent"+ id="path6" />+</svg>diff --git a/pics/16_dark_format-text-lowercase.svg b/pics/16_dark_format-text-lowercase.svgnew file mode 100644index 0000000000..cfe849913a--- /dev/null+++ b/pics/16_dark_format-text-lowercase.svg@@ -0,0 +1,54 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0 0 16 16"+ version="1.1"+ id="svg2502"+ sodipodi:docname="16_dark_format-text-lowercase.svg"+ inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <sodipodi:namedview+ id="namedview2504"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="14.75"+ inkscape:cx="7.4915254"+ inkscape:cy="8"+ inkscape:window-width="1920"+ inkscape:window-height="1010"+ inkscape:window-x="0"+ inkscape:window-y="0"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg2502" />+ <defs+ id="defs3051">+ <style+ type="text/css"+ id="current-color-scheme">+ .ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }+ </style>+ </defs>+ <path+ style="fill:#373737;fill-opacity:0.66000003;stroke:none"+ d="M 8.5 3.0019531 L 8.5 11 L 8.5 14.005859 L 9.5 14.005859 L 9.5 13.230469 A 3 3.0000075 0 0 0 11.5 14 A 3 3.0000075 0 0 0 14.5 11 A 3 3.0000075 0 0 0 11.5 8 A 3 3.0000075 0 0 0 9.5 8.7695312 L 9.5 3.0019531 L 8.5 3.0019531 z M 6.5 7.9980469 L 6.5 8.7695312 A 3 3.0000075 0 0 0 4.5 8 A 3 3.0000075 0 0 0 1.5 11 A 3 3.0000075 0 0 0 4.5 14 A 3 3.0000075 0 0 0 6.5 13.232422 L 6.5 13.998047 L 7.5 13.998047 L 7.5 7.9980469 L 6.5 7.9980469 z M 4.5 9 A 2.0000002 2.0000048 0 0 1 6.5 11 A 2.0000002 2.0000048 0 0 1 4.5 13 A 2.0000002 2.0000048 0 0 1 2.5 11 A 2.0000002 2.0000048 0 0 1 4.5 9 z M 11.5 9 A 2.0000002 2.0000048 0 0 1 13.5 11 A 2.0000002 2.0000048 0 0 1 11.5 13 A 2.0000002 2.0000048 0 0 1 9.5 11 A 2.0000002 2.0000048 0 0 1 11.5 9 z "+ class="ColorScheme-Text"+ id="path2498" />+ <path+ style="fill:#373737;fill-opacity:1;stroke:none"+ d="m 9.49975,1.9975 5.00025,0 -2.49975,3 z"+ class="ColorScheme-Accent"+ id="path2500" />+</svg>diff --git a/pics/16_dark_format-text-uppercase.svg b/pics/16_dark_format-text-uppercase.svgnew file mode 100644index 0000000000..30952cdf65--- /dev/null+++ b/pics/16_dark_format-text-uppercase.svg@@ -0,0 +1,54 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0 0 16 16"+ version="1.1"+ id="svg4619"+ sodipodi:docname="16_dark_format-text-uppercase.svg"+ inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <sodipodi:namedview+ id="namedview4621"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="14.75"+ inkscape:cx="7.4915254"+ inkscape:cy="8"+ inkscape:window-width="1920"+ inkscape:window-height="1010"+ inkscape:window-x="0"+ inkscape:window-y="0"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg4619" />+ <defs+ id="defs3051">+ <style+ type="text/css"+ id="current-color-scheme">+ .ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }+ </style>+ </defs>+ <path+ style="fill:#373737;fill-opacity:0.66000003;stroke:none"+ d="M 3.8261719 5.9980469 L 0.99609375 13.998047 L 2.140625 13.998047 L 3.1132812 11.712891 L 5.8378906 11.712891 L 6.7109375 13.998047 L 7.8535156 13.998047 L 5.2636719 5.9980469 L 3.8261719 5.9980469 z M 8.7109375 6 L 8.7109375 14 L 12.710938 14 A 2.285714 2.285714 0 0 0 14.996094 11.714844 A 2.285714 2.285714 0 0 0 13.462891 9.5605469 A 2.285714 2.285714 0 0 0 13.853516 8.2851562 A 2.285714 2.285714 0 0 0 11.566406 6 L 9.28125 6 L 8.7109375 6 z M 9.8535156 7.1425781 L 11.566406 7.1425781 A 1.142857 1.142857 0 0 1 12.708984 8.2851562 A 1.142857 1.142857 0 0 1 11.566406 9.4277344 L 9.8535156 9.4277344 L 9.8535156 7.1425781 z M 4.5429688 7.2382812 L 5.6152344 10.570312 L 3.359375 10.570312 L 4.5429688 7.2382812 z M 9.8535156 10.572266 L 12.710938 10.572266 A 1.142857 1.142857 0 0 1 13.853516 11.714844 A 1.142857 1.142857 0 0 1 12.710938 12.857422 L 9.8535156 12.857422 L 9.8535156 10.572266 z "+ class="ColorScheme-Text"+ id="path4615" />+ <path+ style="fill:#373737;fill-opacity:1;stroke:none"+ d="m 8.71,5 5,0 -2.5,-3 z"+ class="ColorScheme-Accent"+ id="path4617" />+</svg>diff --git a/pics/16_light_format-text-capitalize.svg b/pics/16_light_format-text-capitalize.svgnew file mode 100644index 0000000000..cd95c1735c--- /dev/null+++ b/pics/16_light_format-text-capitalize.svg@@ -0,0 +1,13 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+ <defs>+ <style id="current-color-scheme" type="text/css">.ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }</style>+ </defs>+ <path class="ColorScheme-Text" d="m9 5v9h1v-0.77148a3 3 0 0 0 2.0039 0.77148 3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-2.0039 0.77344v-3.7734h-1zm-5.1035 0.99805-2.8887 8h1.168l0.99414-2.2852h2.7773l0.89453 2.2852h1.166l-2.6445-8h-1.4668zm0.73242 1.2402 1.0938 3.332h-2.3027l1.209-3.332zm7.375 1.7617a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2z" fill="#d2d2d2" opacity=".66"/>+ <path class="ColorScheme-Accent" d="m2 5h5l-2.5-3z" fill="#d2d2d2"/>+</svg>diff --git a/pics/16_light_format-text-lowercase.svg b/pics/16_light_format-text-lowercase.svgnew file mode 100644index 0000000000..73e812191c--- /dev/null+++ b/pics/16_light_format-text-lowercase.svg@@ -0,0 +1,54 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0 0 16 16"+ version="1.1"+ id="svg2502"+ sodipodi:docname="16_light_format-text-lowercase.svg"+ inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <sodipodi:namedview+ id="namedview2504"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="14.75"+ inkscape:cx="7.4915254"+ inkscape:cy="8"+ inkscape:window-width="1920"+ inkscape:window-height="1010"+ inkscape:window-x="0"+ inkscape:window-y="0"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg2502" />+ <defs+ id="defs3051">+ <style+ type="text/css"+ id="current-color-scheme">+ .ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }+ </style>+ </defs>+ <path+ style="fill:#d2d2d2;fill-opacity:0.66000003;stroke:none"+ d="M 8.5 3.0019531 L 8.5 11 L 8.5 14.005859 L 9.5 14.005859 L 9.5 13.230469 A 3 3.0000075 0 0 0 11.5 14 A 3 3.0000075 0 0 0 14.5 11 A 3 3.0000075 0 0 0 11.5 8 A 3 3.0000075 0 0 0 9.5 8.7695312 L 9.5 3.0019531 L 8.5 3.0019531 z M 6.5 7.9980469 L 6.5 8.7695312 A 3 3.0000075 0 0 0 4.5 8 A 3 3.0000075 0 0 0 1.5 11 A 3 3.0000075 0 0 0 4.5 14 A 3 3.0000075 0 0 0 6.5 13.232422 L 6.5 13.998047 L 7.5 13.998047 L 7.5 7.9980469 L 6.5 7.9980469 z M 4.5 9 A 2.0000002 2.0000048 0 0 1 6.5 11 A 2.0000002 2.0000048 0 0 1 4.5 13 A 2.0000002 2.0000048 0 0 1 2.5 11 A 2.0000002 2.0000048 0 0 1 4.5 9 z M 11.5 9 A 2.0000002 2.0000048 0 0 1 13.5 11 A 2.0000002 2.0000048 0 0 1 11.5 13 A 2.0000002 2.0000048 0 0 1 9.5 11 A 2.0000002 2.0000048 0 0 1 11.5 9 z "+ class="ColorScheme-Text"+ id="path2498" />+ <path+ style="fill:#d2d2d2;fill-opacity:1;stroke:none"+ d="m 9.49975,1.9975 5.00025,0 -2.49975,3 z"+ class="ColorScheme-Accent"+ id="path2500" />+</svg>diff --git a/pics/16_light_format-text-uppercase.svg b/pics/16_light_format-text-uppercase.svgnew file mode 100644index 0000000000..fa14cda0b0--- /dev/null+++ b/pics/16_light_format-text-uppercase.svg@@ -0,0 +1,54 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ viewBox="0 0 16 16"+ version="1.1"+ id="svg4619"+ sodipodi:docname="16_light_format-text-uppercase.svg"+ inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <sodipodi:namedview+ id="namedview4621"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="14.75"+ inkscape:cx="7.4915254"+ inkscape:cy="8"+ inkscape:window-width="1920"+ inkscape:window-height="1010"+ inkscape:window-x="0"+ inkscape:window-y="0"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg4619" />+ <defs+ id="defs3051">+ <style+ type="text/css"+ id="current-color-scheme">+ .ColorScheme-Text {+ color:#232629;+ }+ .ColorScheme-Accent {+ color:#3daee9;+ }+ </style>+ </defs>+ <path+ style="fill:#d2d2d2;fill-opacity:0.66000003;stroke:none"+ d="M 3.8261719 5.9980469 L 0.99609375 13.998047 L 2.140625 13.998047 L 3.1132812 11.712891 L 5.8378906 11.712891 L 6.7109375 13.998047 L 7.8535156 13.998047 L 5.2636719 5.9980469 L 3.8261719 5.9980469 z M 8.7109375 6 L 8.7109375 14 L 12.710938 14 A 2.285714 2.285714 0 0 0 14.996094 11.714844 A 2.285714 2.285714 0 0 0 13.462891 9.5605469 A 2.285714 2.285714 0 0 0 13.853516 8.2851562 A 2.285714 2.285714 0 0 0 11.566406 6 L 9.28125 6 L 8.7109375 6 z M 9.8535156 7.1425781 L 11.566406 7.1425781 A 1.142857 1.142857 0 0 1 12.708984 8.2851562 A 1.142857 1.142857 0 0 1 11.566406 9.4277344 L 9.8535156 9.4277344 L 9.8535156 7.1425781 z M 4.5429688 7.2382812 L 5.6152344 10.570312 L 3.359375 10.570312 L 4.5429688 7.2382812 z M 9.8535156 10.572266 L 12.710938 10.572266 A 1.142857 1.142857 0 0 1 13.853516 11.714844 A 1.142857 1.142857 0 0 1 12.710938 12.857422 L 9.8535156 12.857422 L 9.8535156 10.572266 z "+ class="ColorScheme-Text"+ id="path4615" />+ <path+ style="fill:#d2d2d2;fill-opacity:1;stroke:none"+ d="m 8.71,5 5,0 -2.5,-3 z"+ class="ColorScheme-Accent"+ id="path4617" />+</svg>diff --git a/pics/icons.qrc b/pics/icons.qrcindex 930bf55311..62e2d21e34 100644--- a/pics/icons.qrc+++ b/pics/icons.qrc@@ -329,5 +329,11 @@<file>16_dark_format-text-direction-horizontal-tb.svg</file><file>16_dark_format-text-direction-ltr.svg</file><file>16_light_format-text-direction-ltr.svg</file>+ <file>16_light_format-text-capitalize.svg</file>+ <file>16_dark_format-text-capitalize.svg</file>+ <file>16_light_format-text-lowercase.svg</file>+ <file>16_dark_format-text-lowercase.svg</file>+ <file>16_light_format-text-uppercase.svg</file>+ <file>16_dark_format-text-uppercase.svg</file></qresource></RCC>diff --git a/plugins/dockers/textproperties/qml/TextTransform.qml b/plugins/dockers/textproperties/qml/TextTransform.qmlindex 8b7019720c..2bb21b589e 100644--- a/plugins/dockers/textproperties/qml/TextTransform.qml+++ b/plugins/dockers/textproperties/qml/TextTransform.qml@@ -3,9 +3,9 @@** SPDX-License-Identifier: GPL-2.0-or-later*/-import QtQuick 2.0-import QtQuick.Controls 2.0-import QtQuick.Layouts 1.12+import QtQuick 2.15+import QtQuick.Controls 2.15+import QtQuick.Layouts 1.15import org.krita.flake.text 1.0TextPropertyBase {@@ -77,17 +77,19 @@ TextPropertyBase {text: i18nc("@label:listbox", "Case:")}- ComboBox {+ SqueezedComboBox {id: textTransformCaseCmb;model: [- {text: i18nc("@label:inlistbox", "None"), value: KoSvgText.TextTransformNone},- {text: i18nc("@label:inlistbox", "Capitalize"), value: KoSvgText.TextTransformCapitalize},- {text: i18nc("@label:inlistbox", "Upper Case"), value: KoSvgText.TextTransformUppercase},- {text: i18nc("@label:inlistbox", "Lower Case"), value: KoSvgText.TextTransformLowercase}+ {text: i18nc("@label:inlistbox", "None"), value: KoSvgText.TextTransformNone, icon: ""},+ {text: i18nc("@label:inlistbox", "Capitalize"), value: KoSvgText.TextTransformCapitalize, icon: "qrc:///16_light_format-text-capitalize.svg"},+ {text: i18nc("@label:inlistbox", "Upper Case"), value: KoSvgText.TextTransformUppercase, icon: "qrc:///16_light_format-text-uppercase.svg"},+ {text: i18nc("@label:inlistbox", "Lower Case"), value: KoSvgText.TextTransformLowercase, icon: "qrc:///16_light_format-text-lowercase.svg"}]Layout.fillWidth: truetextRole: "text";valueRole: "value";+ iconRole: "icon";+ iconSize: 16;onActivated: capitals = currentValue;wheelEnabled: true;}