Merge PR #990: Allow styling of tabbar icon color
This commit is contained in:
commit
6496d6005a
@ -4,6 +4,7 @@ Item {
|
|||||||
property color backgroundColor: "#fafafa"
|
property color backgroundColor: "#fafafa"
|
||||||
property color foregroundColor: "#202020"
|
property color foregroundColor: "#202020"
|
||||||
property color unobtrusiveForegroundColor: Qt.tint(foregroundColor, Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, 0.4))
|
property color unobtrusiveForegroundColor: Qt.tint(foregroundColor, Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, 0.4))
|
||||||
|
property color navBarForegroundColor: foregroundColor
|
||||||
|
|
||||||
property color accentColor: "#57baae"
|
property color accentColor: "#57baae"
|
||||||
property color iconColor: "#808080"
|
property color iconColor: "#808080"
|
||||||
|
|||||||
@ -54,13 +54,13 @@ TabButton {
|
|||||||
width: Style.iconSize
|
width: Style.iconSize
|
||||||
height: Style.iconSize
|
height: Style.iconSize
|
||||||
name: root.iconSource
|
name: root.iconSource
|
||||||
color: Style.foregroundColor
|
color: Style.navBarForegroundColor
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: textLabel
|
id: textLabel
|
||||||
text: root.text
|
text: root.text
|
||||||
font.pixelSize: app.smallFont
|
font.pixelSize: app.smallFont
|
||||||
color: Style.foregroundColor
|
color: Style.navBarForegroundColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user