Commit 16c811c6 authored by Martin Straka's avatar Martin Straka

Resize icons

parent feadb524
......@@ -190,7 +190,7 @@ Dialog {
(index === selectedFileIndex) ? datovkaPalette.highlight : datovkaPalette.window
}
width: fileList.width
height: imgHeight
height: imgHeightHeader
RowLayout {
anchors.fill: parent
Text {
......
......@@ -91,7 +91,8 @@ ApplicationWindow {
property int textPointSmall: Math.round(defaultTextFont.font.pointSize * 0.7)
property int textFontSizeSmall: if (textPointSmall > 0) {textPointSmall} else {8}
property int headerHeight: textFontSizeInPixels * 3
property int imgHeight: headerHeight * 0.8
property int imgHeightHeader: headerHeight * 0.6
property int imgHeight: imgHeightHeader * 0.8
// inputItemHeight holds height of controls elements computed from font size
property int inputItemHeight: headerHeight
property int navImgHeight: headerHeight * 0.3
......@@ -288,8 +289,8 @@ ApplicationWindow {
Image{
id: datovkaLogo
anchors.horizontalCenter: parent.horizontalCenter
width: imgHeight * 1.4
height: imgHeight * 1.4
width: imgHeightHeader * 1.4
height: imgHeightHeader * 1.4
source: "qrc:/datovka.png"
}
Text {
......
......@@ -74,8 +74,8 @@ Item {
Image{
id: datovkaLogo
anchors.horizontalCenter: parent.horizontalCenter
width: imgHeight * 1.4
height: imgHeight * 1.4
width: imgHeightHeader * 1.4
height: imgHeightHeader * 1.4
source: "qrc:/datovka.png"
MouseArea {
anchors.fill: parent
......@@ -134,7 +134,7 @@ Item {
Image{
id: cznicLogo
anchors.horizontalCenter: parent.horizontalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/cznic.png"
MouseArea {
anchors.fill: parent
......
......@@ -67,7 +67,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: defaultMargin
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/sync.svg"
MouseArea {
anchors.fill: parent
......
......@@ -82,7 +82,7 @@ Component {
anchors.left: parent.left
anchors.leftMargin: defaultMargin
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/datovka@2x.png"
MouseArea {
anchors.fill: parent
......@@ -102,7 +102,7 @@ Component {
Image {
id: syncAllButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/sync-all.svg"
MouseArea {
anchors.fill: parent
......@@ -115,7 +115,7 @@ Component {
Image {
id: settingsButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/menu.svg"
MouseArea {
anchors.fill: parent
......@@ -195,7 +195,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.8
sourceSize.height: imgHeightHeader
source: "qrc:/ui/account-box.svg"
}
Rectangle {
......@@ -253,7 +253,7 @@ Component {
anchors.right: parent.right
anchors.rightMargin: defaultMargin
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/sync.svg"
MouseArea {
anchors.fill: parent
......@@ -293,7 +293,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.8
sourceSize.height: imgHeightHeader
source: "qrc:/ui/received-msgs.svg"
}
ColorOverlay {
......@@ -362,7 +362,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.8
sourceSize.height: imgHeightHeader
source: "qrc:/ui/sent-msgs.svg"
}
ColorOverlay {
......
......@@ -78,7 +78,7 @@ Item {
Image {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/checkbox-marked-circle.svg"
MouseArea {
anchors.fill: parent
......
......@@ -90,7 +90,7 @@ Item {
Image {
id: searchButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/magnify.svg"
MouseArea {
anchors.fill: parent
......
......@@ -96,7 +96,7 @@ Item {
id: searchButton
visible: false
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/magnify.svg"
MouseArea {
anchors.fill: parent
......@@ -110,7 +110,7 @@ Item {
Image {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/account-search.svg"
MouseArea {
anchors.fill: parent
......
......@@ -107,7 +107,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.7
sourceSize.height: imgHeight
source: image
}
ColorOverlay {
......
......@@ -113,7 +113,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.7
sourceSize.height: imgHeight
source: image
}
ColorOverlay {
......
......@@ -103,7 +103,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.7
sourceSize.height: imgHeight
source: image
}
ColorOverlay {
......
......@@ -119,7 +119,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.7
sourceSize.height: imgHeight
source: image
}
ColorOverlay {
......
......@@ -79,7 +79,7 @@ Component {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight * 0.7
sourceSize.height: imgHeight
source: image
}
ColorOverlay {
......
......@@ -155,7 +155,7 @@ Component {
Image {
id: msgEmailButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/reply.svg"
MouseArea {
anchors.fill: parent
......@@ -167,7 +167,7 @@ Component {
Image {
id: attachmentSaveButon
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/save-to-disk.svg"
MouseArea {
anchors.fill: parent
......@@ -183,7 +183,7 @@ Component {
Image {
id: msgDownloadButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/datovka-email-download.svg"
MouseArea {
anchors.fill: parent
......@@ -197,7 +197,7 @@ Component {
Image {
id: attachmentMenuButon
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/menu.svg"
MouseArea {
anchors.fill: parent
......@@ -291,7 +291,7 @@ Component {
id: imageAttachment
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader * 1.2
source: rFileIcon
}
Item {
......
......@@ -103,7 +103,7 @@ Component {
Image {
id: searchButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/magnify.svg"
MouseArea {
anchors.fill: parent
......@@ -117,7 +117,7 @@ Component {
Image {
id: settingsButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/menu.svg"
MouseArea {
anchors.fill: parent
......
......@@ -75,7 +75,7 @@ Item {
Image {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/magnify.svg"
MouseArea {
anchors.fill: parent
......
......@@ -205,7 +205,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: defaultMargin
image.sourceSize.height: imgHeight
image.sourceSize.height: imgHeightHeader
image.source: "qrc:/ui/send-msg.svg"
MouseArea {
anchors.fill: parent
......
......@@ -85,7 +85,7 @@ Item {
Image {
id: actionButton
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/checkbox-marked-circle.svg"
MouseArea {
anchors.fill: parent
......
......@@ -143,7 +143,7 @@ Item {
Image {
id: acceptElement
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
sourceSize.height: imgHeightHeader
source: "qrc:/ui/checkbox-marked-circle.svg"
MouseArea {
anchors.fill: parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment