diff --git a/app/app.pri b/app/app.pri index af71e021727b9d5a1f4a34d14f08d87177ee8187..0a0cd1ec320382fbc250d00a5ba1f6bf139b5be3 100644 --- a/app/app.pri +++ b/app/app.pri @@ -16,6 +16,7 @@ SOURCES += \ RESOURCES += \ $${PWD}/configs/configs.qrc \ + $${PWD}/images/images.qrc \ $${PWD}/qml/qml.qrc INCLUDEPATH += $${PWD}/src diff --git a/app/images/icons/dialog-information.svg b/app/images/icons/dialog-information.svg new file mode 100644 index 0000000000000000000000000000000000000000..308bd4effd3bf6645e3d32ece1ba870ae9407643 --- /dev/null +++ b/app/images/icons/dialog-information.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="128" height="128" viewBox="0, 0, 128, 128"> + <g id="icon"> + <path d="M64,8 C33.072,8 8,33.072 8,64 C8,94.928 33.072,120 64,120 C94.928,120 120,94.928 120,64 C120,33.072 94.928,8 64,8 z M64,24 C68.418,24 72,27.582 72,32 C72,36.418 68.418,40 64,40 C59.582,40 56,36.418 56,32 C56,27.582 59.582,24 64,24 z M48,48 L72,48 L72,96 L80,96 L80,104 L48,104 L48,96 L56,96 L56,56 L48,56 L48,48 z" fill="#000000" id="dialog-information"/> + </g> +</svg> diff --git a/app/images/icons/dialog-warning.svg b/app/images/icons/dialog-warning.svg new file mode 100644 index 0000000000000000000000000000000000000000..3227b79aea5172ed3c13f5497f1ff5d3097c1349 --- /dev/null +++ b/app/images/icons/dialog-warning.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="128" height="128" viewBox="0, 0, 128, 128"> + <g id="icon"> + <path d="M64,16 L8,112 L120,112 L64,16 z M56,48 L72,48 L72,80 L56,80 L56,48 z M64,88 C68.418,88 72,91.582 72,96 C72,100.418 68.418,104 64,104 C59.582,104 56,100.418 56,96 C56,91.582 59.582,88 64,88 z" fill="#000000" id="dialog-warning"/> + </g> +</svg> diff --git a/app/images/icons/emblem-default.svg b/app/images/icons/emblem-default.svg new file mode 100644 index 0000000000000000000000000000000000000000..0c29d9a675fbdad3873a7c5c5cbeb379c7c91d86 --- /dev/null +++ b/app/images/icons/emblem-default.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="128" height="128" viewBox="0, 0, 128, 128"> + <g id="icon"> + <path d="M64,8 C33.072,8 8,33.072 8,64 C8,94.928 33.072,120 64,120 C94.928,120 120,94.928 120,64 C120,33.072 94.928,8 64,8 z M80,32 L104,32 L56,104 L32,80 L32,56 L56,80 L80,32 z" fill="#000000" id="emblem-default"/> + </g> +</svg> diff --git a/app/images/icons/emblem-downloads.svg b/app/images/icons/emblem-downloads.svg new file mode 100644 index 0000000000000000000000000000000000000000..dafc2dbce4da6d8f48b0273fefd9769130f6779f --- /dev/null +++ b/app/images/icons/emblem-downloads.svg @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="128" height="128" viewBox="0, 0, 128, 128"> + <g id="icon"> + <path d="M40,8 L40,48 L16,48 L64,96 L112,48 L88,48 L88,8 L40,8 z M8,72 L8,120 L120,120 L120,72 L104,72 L104,104 L24,104 L24,72 L8,72 z" fill="#000000" id="emblem-downloads"/> + </g> +</svg> diff --git a/app/images/images.qrc b/app/images/images.qrc new file mode 100644 index 0000000000000000000000000000000000000000..892ca1d82a513bc32268d6e6f70d06a6f062b61f --- /dev/null +++ b/app/images/images.qrc @@ -0,0 +1,8 @@ +<RCC> + <qresource prefix="/images"> + <file>icons/dialog-information.svg</file> + <file>icons/dialog-warning.svg</file> + <file>icons/emblem-default.svg</file> + <file>icons/emblem-downloads.svg</file> + </qresource> +</RCC> diff --git a/app/qml/main.qml b/app/qml/main.qml index 682da6566865083485b2178dd487825616eddd0a..3475373d135a522342adcd48872c18bc5b2b393a 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -85,7 +85,7 @@ Window { Ui.Dialog { id: confirmDialog - //icon: StandardIcon.Question + icon: "qrc:/images/icons/dialog-information.svg" acceptButton.text: qsTr("OK") acceptButton.onClicked: { close(); @@ -100,7 +100,7 @@ Window { Ui.Dialog { id: infoDialog - //icon: StandardIcon.Information + icon: "qrc:/images/icons/emblem-default.svg" acceptButton.text: qsTr("Open") acceptButton.onClicked: { close(); @@ -116,7 +116,7 @@ Window { Ui.Dialog { id: errorDialog - //icon: StandardIcon.Warning + icon: "qrc:/images/icons/dialog-warning.svg" rejectButton.text: qsTr("Close") rejectButton.onClicked: { close(); @@ -126,7 +126,7 @@ Window { Ui.Dialog { id: progressDialog - //icon: StandardIcon.NoIcon + icon: "qrc:/images/icons/emblem-downloads.svg" property alias progress: progressBar.value property alias progressText: progressText.text content: ColumnLayout {