mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-31 01:36:50 +00:00
Colors: 2 news colors, mHover+mOnHover - autocomputed. Using them for all hovers instead of mTertiary.
This commit is contained in:
@@ -423,7 +423,7 @@ Popup {
|
||||
implicitWidth: 6
|
||||
implicitHeight: 100
|
||||
radius: Style.radiusM
|
||||
color: parent.pressed ? Qt.alpha(Color.mTertiary, 0.8) : parent.hovered ? Qt.alpha(Color.mTertiary, 0.8) : Qt.alpha(Color.mTertiary, 0.8)
|
||||
color: Qt.alpha(Color.mHover, 0.8)
|
||||
opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 1.0 : 0.0
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
@@ -503,9 +503,9 @@ Popup {
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: (mouseArea.containsMouse && !isSelected) ? Color.mTertiary : Color.transparent
|
||||
color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : Color.transparent
|
||||
radius: parent.radius
|
||||
border.color: (mouseArea.containsMouse && !isSelected) ? Color.mTertiary : Color.transparent
|
||||
border.color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : Color.transparent
|
||||
border.width: Style.borderS
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
@@ -575,7 +575,7 @@ Popup {
|
||||
if (isSelected)
|
||||
return Color.mSecondary
|
||||
else if (mouseArea.containsMouse)
|
||||
return model.fileIsDir ? Color.mOnTertiary : Color.mOnTertiary
|
||||
return Color.mOnHover
|
||||
else
|
||||
return model.fileIsDir ? Color.mPrimary : Color.mOnSurfaceVariant
|
||||
}
|
||||
@@ -609,7 +609,7 @@ Popup {
|
||||
if (isSelected)
|
||||
return Color.mSecondary
|
||||
else if (mouseArea.containsMouse)
|
||||
return Color.mOnTertiary
|
||||
return Color.mOnHover
|
||||
else
|
||||
return Color.mOnSurfaceVariant
|
||||
}
|
||||
@@ -681,7 +681,7 @@ Popup {
|
||||
if (filePickerPanel.currentSelection.includes(model.filePath))
|
||||
return Color.mSecondary
|
||||
if (mouseArea.containsMouse)
|
||||
return Color.mTertiary
|
||||
return Color.mHover
|
||||
return Color.transparent
|
||||
}
|
||||
radius: Style.radiusS
|
||||
|
||||
Reference in New Issue
Block a user