UI: Add icons to tabs.

This commit is contained in:
Nodir Temirkhodjaev 2017-09-06 15:24:03 +05:00
parent 534615ca8f
commit a516c354c3
7 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,10 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>images/application_cascade.png</file>
<file>images/application_double.png</file>
<file>images/cog.png</file>
<file>images/link.png</file>
<file>images/shield.png</file>
<file>images/zoom.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

BIN
src/ui/images/link.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

BIN
src/ui/images/zoom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

View File

@ -95,9 +95,10 @@ BasePage {
model: appGroups
TabButton {
width: Math.max(70, implicitWidth)
width: Math.max(100, implicitWidth)
font.bold: checked
text: appGroup.name
icon.source: "qrc:/images/application_double.png"
readonly property AppGroup appGroup: modelData
}

View File

@ -20,15 +20,19 @@ Page {
TabButton {
text: QT_TRANSLATE_NOOP("qml", "Options")
icon.source: "qrc:/images/cog.png"
}
TabButton {
text: QT_TRANSLATE_NOOP("qml", "IPv4 Addresses")
icon.source: "qrc:/images/link.png"
}
TabButton {
text: QT_TRANSLATE_NOOP("qml", "Applications")
icon.source: "qrc:/images/application_cascade.png"
}
TabButton {
text: QT_TRANSLATE_NOOP("qml", "Activity")
icon.source: "qrc:/images/zoom.png"
}
}