Bar Widgets: Hover color switched from mPrimary to mTertiary for consistency
This commit is contained in:
parent
719f5a20e7
commit
78443451e4
2 changed files with 4 additions and 4 deletions
|
|
@ -19,8 +19,8 @@ Rectangle {
|
||||||
|
|
||||||
property color colorBg: Color.mSurfaceVariant
|
property color colorBg: Color.mSurfaceVariant
|
||||||
property color colorFg: Color.mPrimary
|
property color colorFg: Color.mPrimary
|
||||||
property color colorBgHover: Color.mPrimary
|
property color colorBgHover: Color.mTertiary
|
||||||
property color colorFgHover: Color.mOnPrimary
|
property color colorFgHover: Color.mOnTertiary
|
||||||
property color colorBorder: Color.mOutline
|
property color colorBorder: Color.mOutline
|
||||||
property color colorBorderHover: Color.mOutline
|
property color colorBorderHover: Color.mOutline
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ Item {
|
||||||
width: iconSize
|
width: iconSize
|
||||||
height: iconSize
|
height: iconSize
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: hovered && !forceOpen ? Color.mPrimary : Color.mSurfaceVariant
|
color: hovered && !forceOpen ? Color.mTertiary : Color.mSurfaceVariant
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
x: rightOpen ? 0 : (parent.width - width)
|
x: rightOpen ? 0 : (parent.width - width)
|
||||||
|
|
@ -112,7 +112,7 @@ Item {
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: root.icon
|
icon: root.icon
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
color: hovered && !forceOpen ? Color.mOnPrimary : Color.mOnSurface
|
color: hovered && !forceOpen ? Color.mOnTertiary : Color.mOnSurface
|
||||||
// Center horizontally
|
// Center horizontally
|
||||||
x: (iconCircle.width - width) / 2
|
x: (iconCircle.width - width) / 2
|
||||||
// Center vertically accounting for font metrics
|
// Center vertically accounting for font metrics
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue