Bar Widgets: Hover color switched from mPrimary to mTertiary for consistency

This commit is contained in:
LemmyCook
2025-09-11 17:30:52 -04:00
parent 719f5a20e7
commit 78443451e4
2 changed files with 4 additions and 4 deletions

View File

@@ -19,8 +19,8 @@ Rectangle {
property color colorBg: Color.mSurfaceVariant
property color colorFg: Color.mPrimary
property color colorBgHover: Color.mPrimary
property color colorFgHover: Color.mOnPrimary
property color colorBgHover: Color.mTertiary
property color colorFgHover: Color.mOnTertiary
property color colorBorder: Color.mOutline
property color colorBorderHover: Color.mOutline

View File

@@ -97,7 +97,7 @@ Item {
width: iconSize
height: iconSize
radius: width * 0.5
color: hovered && !forceOpen ? Color.mPrimary : Color.mSurfaceVariant
color: hovered && !forceOpen ? Color.mTertiary : Color.mSurfaceVariant
anchors.verticalCenter: parent.verticalCenter
x: rightOpen ? 0 : (parent.width - width)
@@ -112,7 +112,7 @@ Item {
NIcon {
icon: root.icon
font.pointSize: Style.fontSizeM * scaling
color: hovered && !forceOpen ? Color.mOnPrimary : Color.mOnSurface
color: hovered && !forceOpen ? Color.mOnTertiary : Color.mOnSurface
// Center horizontally
x: (iconCircle.width - width) / 2
// Center vertically accounting for font metrics