Commit af91a9bd authored by Chupligin Sergey's avatar Chupligin Sergey

[Theming] update some components size and color values

parent 006b3dc7
...@@ -36,8 +36,8 @@ import QtQuick.Controls.Styles.Nemo 1.0 ...@@ -36,8 +36,8 @@ import QtQuick.Controls.Styles.Nemo 1.0
Rectangle { Rectangle {
id: main id: main
width: childrenRect.width width: childrenRect.width
color: "#313131" color: Theme.fillDarkColor
height: size.dp(40) height: Theme.itemHeightSmall
property ListModel model: ListModel {} property ListModel model: ListModel {}
property bool enabled: true property bool enabled: true
property int currentIndex: -1 property int currentIndex: -1
...@@ -55,8 +55,8 @@ Rectangle { ...@@ -55,8 +55,8 @@ Rectangle {
y: size.dp(-5) y: size.dp(-5)
width: rowElement.children[main.currentIndex].width || 0 width: rowElement.children[main.currentIndex].width || 0
height: size.dp(50) height: Theme.itemHeightSmall
color: "#0091e5" color: Theme.accentColor
visible: main.currentIndex > -1 visible: main.currentIndex > -1
......
...@@ -62,7 +62,7 @@ Item { ...@@ -62,7 +62,7 @@ Item {
PropertyChanges { PropertyChanges {
target: toolBarRect target: toolBarRect
width: parent.width width: parent.width
height: size.dp(75) height: Theme.itemHeightExtraLarge
} }
}, },
State { State {
...@@ -91,7 +91,7 @@ Item { ...@@ -91,7 +91,7 @@ Item {
} }
PropertyChanges { PropertyChanges {
target: toolBarRect target: toolBarRect
width: size.dp(75) width: Theme.itemHeightExtraLarge
height: parent.height height: parent.height
} }
} }
......
...@@ -26,7 +26,7 @@ Item { ...@@ -26,7 +26,7 @@ Item {
Rectangle { Rectangle {
id: backButton id: backButton
width: opacity ? size.dp(60) : 0 width: opacity ? size.dp(60) : 0
anchors.leftMargin: size.dp(20) anchors.leftMargin: Theme.itemSpacingLarge
//check if Stack.view has already been initialized as well //check if Stack.view has already been initialized as well
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
antialiasing: true antialiasing: true
...@@ -46,22 +46,24 @@ Item { ...@@ -46,22 +46,24 @@ Item {
MouseArea { MouseArea {
id: backmouse id: backmouse
anchors.fill: parent anchors.fill: parent
anchors.margins: size.dp(-10) anchors.margins: -Theme.itemSpacingSmall
onClicked: header && header.stackView && header.stackView.pop() onClicked: header && header.stackView && header.stackView.pop()
} }
} }
Label { Label {
id: titleTxt id: titleTxt
anchors.right: toolButtonsContainer.left anchors{
anchors.left: backButton.visible ? backButton.right : parent.left right: toolButtonsContainer.left
anchors.verticalCenter: parent.verticalCenter left: backButton.visible ? backButton.right : parent.left
anchors.leftMargin: size.dp(20) verticalCenter: parent.verticalCenter
anchors.rightMargin: size.dp(20) leftMargin: Theme.itemSpacingLarge
rightMargin: Theme.itemSpacingLarge
}
clip: true clip: true
font.family: Theme.fontFamily font.family: Theme.fontFamily
color: Theme.textColor color: Theme.textColor
font.pointSize: size.dp(24) font.pointSize: Theme.fontSizeLarge
font.weight: Font.Bold font.weight: Font.Bold
LinearGradient { LinearGradient {
anchors.right: parent.right anchors.right: parent.right
...@@ -106,9 +108,11 @@ Item { ...@@ -106,9 +108,11 @@ Item {
Image { Image {
id: dots id: dots
anchors.right: parent.right anchors{
anchors.rightMargin: size.dp(20) right: parent.right
anchors.verticalCenter: parent.verticalCenter rightMargin: Theme.itemSpacingLarge
verticalCenter: parent.verticalCenter
}
visible: drawerLevels && drawerLevels.length > 1 visible: drawerLevels && drawerLevels.length > 1
source: "../Styles/Nemo/images/dots-vertical.png" source: "../Styles/Nemo/images/dots-vertical.png"
rotation: isUiPortrait ? 0 : 90 rotation: isUiPortrait ? 0 : 90
......
...@@ -35,5 +35,5 @@ Text { ...@@ -35,5 +35,5 @@ Text {
renderType: Text.NativeRendering renderType: Text.NativeRendering
font.family: Theme.fontFamily font.family: Theme.fontFamily
color: Theme.textColor color: Theme.textColor
font.pointSize: size.dp(Theme.fontSizeLarge) font.pointSize: Theme.fontSizeLarge
} }
...@@ -16,17 +16,17 @@ ListView { ...@@ -16,17 +16,17 @@ ListView {
Rectangle { Rectangle {
width: listView.width width: listView.width
height: size.dp(44) height: size.dp(44)
color: "black" color: Theme.backgroundColor
Text { Text {
id: sectionText id: sectionText
text: section text: section
font.capitalization: Font.AllUppercase font.capitalization: Font.AllUppercase
font.pixelSize: size.dp(20) font.pixelSize: Theme.fontSizeMedium
color: "white" color: Theme.textColor
anchors{ anchors{
left: parent.left left: parent.left
leftMargin: size.dp(10) leftMargin: Theme.itemSpacingSmall
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
} }
...@@ -34,11 +34,11 @@ ListView { ...@@ -34,11 +34,11 @@ ListView {
Rectangle{ Rectangle{
id: line id: line
height: 1 height: 1
color: "white" color: Theme.textColor
width: listView.width-sectionText.width-size.dp(30) width: listView.width-sectionText.width-size.dp(30)
anchors{ anchors{
left: sectionText.right left: sectionText.right
leftMargin: size.dp(10) leftMargin: Theme.itemSpacingSmall
verticalCenter: sectionText.verticalCenter verticalCenter: sectionText.verticalCenter
} }
} }
...@@ -59,7 +59,7 @@ ListView { ...@@ -59,7 +59,7 @@ ListView {
end: Qt.point(0, size.dp(30)) end: Qt.point(0, size.dp(30))
gradient: Gradient { gradient: Gradient {
GradientStop { position: 0.0; color: "transparent" } GradientStop { position: 0.0; color: "transparent" }
GradientStop { position: 1.0; color: "black" } GradientStop { position: 1.0; color: Theme.backgroundColor }
} }
} }
...@@ -68,7 +68,7 @@ ListView { ...@@ -68,7 +68,7 @@ ListView {
Rectangle{ Rectangle{
id: scrollerDecorator id: scrollerDecorator
visible: (listView.showDecorator && listView.contentHeight > listView.height) visible: (listView.showDecorator && listView.contentHeight > listView.height)
color: "#0091e5" color: Theme.accentColor
width: size.dp(5) width: size.dp(5)
height: listView.height*listView.height/listView.contentHeight height: listView.height*listView.height/listView.contentHeight
......
...@@ -6,7 +6,7 @@ import QtGraphicalEffects 1.0 ...@@ -6,7 +6,7 @@ import QtGraphicalEffects 1.0
Item { Item {
id: root id: root
width: parent.width width: parent.width
height: 60 height: size.dp(60)
property string label: "" property string label: ""
...@@ -36,7 +36,7 @@ Item { ...@@ -36,7 +36,7 @@ Item {
Rectangle{ Rectangle{
id: actionsArea id: actionsArea
color: "#474747" color: Theme.fillColor
anchors.right: listArea.left anchors.right: listArea.left
...@@ -70,7 +70,7 @@ Item { ...@@ -70,7 +70,7 @@ Item {
width: height width: height
anchors{ anchors{
left: parent.left left: parent.left
leftMargin: size.dp(20) leftMargin: Theme.itemSpacingLarge
top: parent.top top: parent.top
topMargin: size.dp(5) topMargin: size.dp(5)
} }
...@@ -90,14 +90,14 @@ Item { ...@@ -90,14 +90,14 @@ Item {
anchors{ anchors{
left:itemIcon.right left:itemIcon.right
leftMargin: size.dp(20) leftMargin: Theme.itemSpacingLarge
verticalCenter: itemIcon.verticalCenter verticalCenter: itemIcon.verticalCenter
} }
color: "transparent" color: "transparent"
Text { Text {
id: labelItem id: labelItem
color: "#ffffff" color: Theme.textColor
text: label text: label
anchors{ anchors{
left: parent.left left: parent.left
...@@ -109,28 +109,28 @@ Item { ...@@ -109,28 +109,28 @@ Item {
Text{ Text{
id: descriptionItem id: descriptionItem
color: "#ffffff" color: Theme.textColor
text: description text: description
anchors{ anchors{
left: parent.left left: parent.left
right: parent.right right: parent.right
top: labelItem.bottom top: labelItem.bottom
} }
font.pixelSize: size.dp(18) font.pixelSize: Theme.fontSizeSmall
clip: true clip: true
visible: description != "" visible: description != ""
} }
Text{ Text{
id: subDescriptionItem id: subDescriptionItem
color: "#ffffff" color: Theme.textColor
text: subdescription text: subdescription
anchors{ anchors{
left: parent.left left: parent.left
right: parent.right right: parent.right
top: descriptionItem.bottom top: descriptionItem.bottom
} }
font.pixelSize: size.dp(18) font.pixelSize: Theme.fontSizeSmall
clip: true clip: true
visible: subdescription != "" visible: subdescription != ""
} }
...@@ -162,7 +162,7 @@ Item { ...@@ -162,7 +162,7 @@ Item {
anchors{ anchors{
right: parent.right right: parent.right
rightMargin: size.dp(20) rightMargin: Theme.itemSpacingLarge
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
......
...@@ -4,7 +4,7 @@ Rectangle { ...@@ -4,7 +4,7 @@ Rectangle {
id: shell id: shell
anchors.fill: parent anchors.fill: parent
opacity: 0.7 opacity: 0.7
color: "black" color: Theme.backgroundColor
signal accepted() signal accepted()
signal canceled() signal canceled()
property alias cancelText: cancel.text property alias cancelText: cancel.text
......
...@@ -9,6 +9,7 @@ Theme::Theme(QObject *parent) : QObject(parent) ...@@ -9,6 +9,7 @@ Theme::Theme(QObject *parent) : QObject(parent)
m_itemWidthLarge = 320*m_dp; m_itemWidthLarge = 320*m_dp;
m_itemWidthMedium = 240*m_dp; m_itemWidthMedium = 240*m_dp;
m_itemWidthSmall = 120*m_dp; m_itemWidthSmall = 120*m_dp;
m_itemWidthExtraSmall = 72*m_dp;
m_itemHeightHuge = 80*m_dp; m_itemHeightHuge = 80*m_dp;
m_itemHeightExtraLarge = 75*m_dp; m_itemHeightExtraLarge = 75*m_dp;
...@@ -21,7 +22,7 @@ Theme::Theme(QObject *parent) : QObject(parent) ...@@ -21,7 +22,7 @@ Theme::Theme(QObject *parent) : QObject(parent)
m_itemSpacingLarge = 20*m_dp; m_itemSpacingLarge = 20*m_dp;
m_itemSpacingMedium = 15*m_dp; m_itemSpacingMedium = 15*m_dp;
m_itemSpacingSmall = 10*m_dp; m_itemSpacingSmall = 10*m_dp;
m_itemExtraSmall = 8*m_dp; m_itemSpacingExtraSmall = 8*m_dp;
m_fontSizeExtraLarge = 30*m_dp; m_fontSizeExtraLarge = 30*m_dp;
m_fontSizeLarge = 24*m_dp; m_fontSizeLarge = 24*m_dp;
......
...@@ -10,6 +10,7 @@ class Theme : public QObject ...@@ -10,6 +10,7 @@ class Theme : public QObject
Q_PROPERTY(qreal itemWidthLarge READ itemWidthLarge NOTIFY itemWidthLargeChanged) Q_PROPERTY(qreal itemWidthLarge READ itemWidthLarge NOTIFY itemWidthLargeChanged)
Q_PROPERTY(qreal itemWidthMedium READ itemWidthMedium NOTIFY itemWidthMediumChanged) Q_PROPERTY(qreal itemWidthMedium READ itemWidthMedium NOTIFY itemWidthMediumChanged)
Q_PROPERTY(qreal itemWidthSmall READ itemWidthSmall NOTIFY itemWidthSmallChanged) Q_PROPERTY(qreal itemWidthSmall READ itemWidthSmall NOTIFY itemWidthSmallChanged)
Q_PROPERTY(qreal itemWidthExtraSmall READ itemWidthExtraSmall NOTIFY itemWidthExtraSmallChanged)
Q_PROPERTY(qreal itemHeightHuge READ itemHeightHuge NOTIFY itemHeightHugeChanged) Q_PROPERTY(qreal itemHeightHuge READ itemHeightHuge NOTIFY itemHeightHugeChanged)
Q_PROPERTY(qreal itemHeightExtraLarge READ itemHeightExtraLarge NOTIFY itemHeightExtraLargeChanged) Q_PROPERTY(qreal itemHeightExtraLarge READ itemHeightExtraLarge NOTIFY itemHeightExtraLargeChanged)
...@@ -22,7 +23,7 @@ class Theme : public QObject ...@@ -22,7 +23,7 @@ class Theme : public QObject
Q_PROPERTY(qreal itemSpacingLarge READ itemSpacingLarge NOTIFY itemSpacingLargeChanged) Q_PROPERTY(qreal itemSpacingLarge READ itemSpacingLarge NOTIFY itemSpacingLargeChanged)
Q_PROPERTY(qreal itemSpacingMedium READ itemSpacingMedium NOTIFY itemSpacingMediumChanged) Q_PROPERTY(qreal itemSpacingMedium READ itemSpacingMedium NOTIFY itemSpacingMediumChanged)
Q_PROPERTY(qreal itemSpacingSmall READ itemSpacingSmall NOTIFY itemSpacingSmallChanged) Q_PROPERTY(qreal itemSpacingSmall READ itemSpacingSmall NOTIFY itemSpacingSmallChanged)
Q_PROPERTY(qreal itemExtraSmall READ itemExtraSmall NOTIFY itemExtraSmallChanged) Q_PROPERTY(qreal itemSpacingExtraSmall READ itemSpacingExtraSmall NOTIFY itemSpacingExtraSmallChanged)
Q_PROPERTY(int fontSizeExtraLarge READ fontSizeExtraLarge NOTIFY fontSizeExtraLargeChanged) Q_PROPERTY(int fontSizeExtraLarge READ fontSizeExtraLarge NOTIFY fontSizeExtraLargeChanged)
Q_PROPERTY(int fontSizeLarge READ fontSizeLarge NOTIFY fontSizeLargeChanged) Q_PROPERTY(int fontSizeLarge READ fontSizeLarge NOTIFY fontSizeLargeChanged)
...@@ -48,6 +49,7 @@ public: ...@@ -48,6 +49,7 @@ public:
qreal itemWidthLarge(){return m_itemWidthLarge;} qreal itemWidthLarge(){return m_itemWidthLarge;}
qreal itemWidthMedium(){return m_itemWidthMedium;} qreal itemWidthMedium(){return m_itemWidthMedium;}
qreal itemWidthSmall(){return m_itemWidthSmall;} qreal itemWidthSmall(){return m_itemWidthSmall;}
qreal itemWidthExtraSmall(){return m_itemWidthExtraSmall;}
qreal itemHeightHuge(){return m_itemHeightHuge;} qreal itemHeightHuge(){return m_itemHeightHuge;}
qreal itemHeightExtraLarge(){return m_itemHeightExtraLarge;} qreal itemHeightExtraLarge(){return m_itemHeightExtraLarge;}
...@@ -60,7 +62,7 @@ public: ...@@ -60,7 +62,7 @@ public:
qreal itemSpacingLarge(){return m_itemSpacingLarge;} qreal itemSpacingLarge(){return m_itemSpacingLarge;}
qreal itemSpacingMedium(){return m_itemSpacingMedium;} qreal itemSpacingMedium(){return m_itemSpacingMedium;}
qreal itemSpacingSmall(){return m_itemSpacingSmall;} qreal itemSpacingSmall(){return m_itemSpacingSmall;}
qreal itemExtraSmall(){return m_itemExtraSmall;} qreal itemSpacingExtraSmall(){return m_itemExtraSmall;}
int fontSizeExtraLarge(){return m_fontSizeExtraLarge;} int fontSizeExtraLarge(){return m_fontSizeExtraLarge;}
int fontSizeLarge(){return m_fontSizeLarge;} int fontSizeLarge(){return m_fontSizeLarge;}
...@@ -85,6 +87,7 @@ signals: ...@@ -85,6 +87,7 @@ signals:
void itemWidthLargeChanged(); void itemWidthLargeChanged();
void itemWidthMediumChanged(); void itemWidthMediumChanged();
void itemWidthSmallChanged(); void itemWidthSmallChanged();
void itemWidthExtraSmallChanged();
void itemHeightHugeChanged(); void itemHeightHugeChanged();
void itemHeightExtraLargeChanged(); void itemHeightExtraLargeChanged();
...@@ -97,7 +100,7 @@ signals: ...@@ -97,7 +100,7 @@ signals:
void itemSpacingLargeChanged(); void itemSpacingLargeChanged();
void itemSpacingMediumChanged(); void itemSpacingMediumChanged();
void itemSpacingSmallChanged(); void itemSpacingSmallChanged();
void itemExtraSmallChanged(); void itemSpacingExtraSmallChanged();
void fontSizeExtraLargeChanged(); void fontSizeExtraLargeChanged();
void fontSizeLargeChanged(); void fontSizeLargeChanged();
...@@ -121,6 +124,7 @@ private: ...@@ -121,6 +124,7 @@ private:
qreal m_itemWidthLarge; //320 qreal m_itemWidthLarge; //320
qreal m_itemWidthMedium; //240 qreal m_itemWidthMedium; //240
qreal m_itemWidthSmall; //120 qreal m_itemWidthSmall; //120
qreal m_itemWidthExtraSmall; //72
qreal m_itemHeightHuge; //80 qreal m_itemHeightHuge; //80
qreal m_itemHeightExtraLarge; //75 qreal m_itemHeightExtraLarge; //75
...@@ -133,7 +137,7 @@ private: ...@@ -133,7 +137,7 @@ private:
qreal m_itemSpacingLarge; //20 qreal m_itemSpacingLarge; //20
qreal m_itemSpacingMedium; //15 qreal m_itemSpacingMedium; //15
qreal m_itemSpacingSmall; //10 qreal m_itemSpacingSmall; //10
qreal m_itemExtraSmall; //8 qreal m_itemSpacingExtraSmall; //8
int m_fontSizeExtraLarge; //30 int m_fontSizeExtraLarge; //30
int m_fontSizeLarge; //24 int m_fontSizeLarge; //24
......
...@@ -37,12 +37,12 @@ CheckBoxStyle { ...@@ -37,12 +37,12 @@ CheckBoxStyle {
indicator: Rectangle { indicator: Rectangle {
id: background id: background
color: "transparent" color: "transparent"
implicitWidth: size.dp(72) implicitWidth: Theme.itemWidthExtraSmall
implicitHeight: size.dp(32) implicitHeight: Theme.itemHeightExtraSmall
Rectangle { Rectangle {
id: back1 id: back1
implicitWidth: size.dp(72) implicitWidth: Theme.itemWidthExtraSmall
implicitHeight: size.dp(28) implicitHeight: size.dp(28)
color: Theme.accentColor color: Theme.accentColor
anchors.centerIn: parent anchors.centerIn: parent
...@@ -50,7 +50,7 @@ CheckBoxStyle { ...@@ -50,7 +50,7 @@ CheckBoxStyle {
Rectangle { Rectangle {
id: back2 id: back2
implicitWidth: size.dp(72) implicitWidth: Theme.itemWidthExtraSmall
implicitHeight: size.dp(28) implicitHeight: size.dp(28)
color: Theme.fillDarkColor color: Theme.fillDarkColor
anchors.centerIn: parent anchors.centerIn: parent
...@@ -60,7 +60,7 @@ CheckBoxStyle { ...@@ -60,7 +60,7 @@ CheckBoxStyle {
Image { Image {
id: ball id: ball
width: size.dp(40) width: size.dp(40)
height: size.dp(32) height: Theme.itemHeightExtraSmall
source: "images/switch-ball.png" source: "images/switch-ball.png"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
...@@ -79,7 +79,7 @@ CheckBoxStyle { ...@@ -79,7 +79,7 @@ CheckBoxStyle {
Component.onCompleted: { Component.onCompleted: {
back1.opacity = control.checked ? 1 : 0 back1.opacity = control.checked ? 1 : 0
back2.opacity = control.checked ? 0 : 1 back2.opacity = control.checked ? 0 : 1
ball.x = control.checked ? size.dp(32) : 0 ball.x = control.checked ? Theme.itemHeightExtraSmall : 0
} }
SequentialAnimation { SequentialAnimation {
...@@ -88,7 +88,7 @@ CheckBoxStyle { ...@@ -88,7 +88,7 @@ CheckBoxStyle {
NumberAnimation { NumberAnimation {
target: ball target: ball
property: "x" property: "x"
to: size.dp(32) to: Theme.itemHeightExtraSmall
duration: 120 duration: 120
} }
NumberAnimation { NumberAnimation {
......
...@@ -26,8 +26,8 @@ SliderStyle{ ...@@ -26,8 +26,8 @@ SliderStyle{
handle: Rectangle { handle: Rectangle {
id: handle id: handle
anchors.centerIn: parent anchors.centerIn: parent
color: "black" color: Theme.backgroundColor
border.color: "#0091e5" border.color: Theme.accentColor
border.width: 2 border.width: 2
implicitWidth: size.dp(34) implicitWidth: size.dp(34)
implicitHeight: size.dp(34) implicitHeight: size.dp(34)
...@@ -39,7 +39,7 @@ SliderStyle{ ...@@ -39,7 +39,7 @@ SliderStyle{
anchors.centerIn: parent anchors.centerIn: parent
text: parseInt(control.value*100) text: parseInt(control.value*100)
visible: control.showValue visible: control.showValue
color: "white" color: Theme.textColor
} }
} }
...@@ -48,13 +48,13 @@ SliderStyle{ ...@@ -48,13 +48,13 @@ SliderStyle{
implicitHeight: size.dp(16) implicitHeight: size.dp(16)
implicitWidth: size.dp(440) implicitWidth: size.dp(440)
color: "#313131" color: Theme.fillDarkColor
z: 1 z: 1
Rectangle{ Rectangle{
id: dataLine id: dataLine
height: parent.height height: parent.height
width: styleData.handlePosition width: styleData.handlePosition
color: "#0091e5" color: Theme.accentColor
} }
Image { Image {
......
...@@ -25,14 +25,17 @@ TextFieldStyle { ...@@ -25,14 +25,17 @@ TextFieldStyle {
selectedTextColor: Theme.textColor selectedTextColor: Theme.textColor
selectionColor: Theme.accentColor selectionColor: Theme.accentColor
textColor: Theme.textColor textColor: Theme.textColor
font.pointSize: size.dp(14) font.pointSize: Theme.fontSizeTiny
font.family: Theme.fontFamily font.family: Theme.fontFamily
background: Item { background: Item {
anchors.leftMargin: size.dp(16) anchors{
anchors.rightMargin: size.dp(16) leftMargin: Theme.itemSpacingMedium
implicitHeight: size.dp(50) rightMargin: Theme.itemSpacingMedium
implicitWidth: size.dp(320) }
implicitHeight: Theme.itemHeightMedium
implicitWidth: Theme.itemWidthLarge
opacity: control.enabled ? 1 : 0.6 opacity: control.enabled ? 1 : 0.6
Image { Image {
anchors.fill: parent anchors.fill: parent
......
...@@ -28,7 +28,7 @@ Style { ...@@ -28,7 +28,7 @@ Style {
padding.bottom: 3 padding.bottom: 3
property Component panel: Item { property Component panel: Item {
implicitHeight: size.dp(75) implicitHeight:Theme.itemHeightExtraLarge
implicitWidth: size.dp(40) implicitWidth: size.dp(40)
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
......
...@@ -31,8 +31,8 @@ Style { ...@@ -31,8 +31,8 @@ Style {
id: styleitem id: styleitem
//TODO: Maybe we want to add a descriptive text at the bottom of the icon? //TODO: Maybe we want to add a descriptive text at the bottom of the icon?
implicitWidth: size.dp(50) implicitWidth: Theme.itemHeightMedium
implicitHeight: size.dp(50) implicitHeight: implicitWidth
opacity: control.pressed ? 0.5 : 1 opacity: control.pressed ? 0.5 : 1
...@@ -47,7 +47,7 @@ Style { ...@@ -47,7 +47,7 @@ Style {
id: icon id: icon
anchors.fill: parent anchors.fill: parent
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.margins: size.dp(8) anchors.margins: Theme.itemSpacingExtraSmall
source: control.iconSource source: control.iconSource
} }
} }
......
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