feat(statusq/StatusRoundButton): Added `Quaternary` type red

Added `Quaternary` type - red color.
This commit is contained in:
Noelia 2022-11-25 18:33:16 +01:00 committed by Noelia
parent e436d6937d
commit 5aeef81bad
1 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,8 @@ Rectangle {
return Theme.palette.indirectColor1;
case StatusRoundButton.Type.Tertiary:
return Theme.palette.primaryColor1;
case StatusRoundButton.Type.Quaternary:
return Theme.palette.dangerColor1;
}
}
@ -32,6 +34,8 @@ Rectangle {
return Theme.palette.indirectColor1;
case StatusRoundButton.Type.Tertiary:
return Theme.palette.baseColor1;
case StatusRoundButton.Type.Quaternary:
return Theme.palette.dangerColor1;
}
}
@ -43,6 +47,8 @@ Rectangle {
return Theme.palette.indirectColor1;
case StatusRoundButton.Type.Tertiary:
return Theme.palette.baseColor1;
case StatusRoundButton.Type.Quaternary:
return Theme.palette.baseColor1;
}
}
}
@ -63,7 +69,8 @@ Rectangle {
enum Type {
Primary,
Secondary,
Tertiary
Tertiary,
Quaternary
}
/// Implementation
@ -78,6 +85,8 @@ Rectangle {
return Theme.palette.primaryColor1;
case StatusRoundButton.Type.Tertiary:
return "transparent";
case StatusRoundButton.Type.Quaternary:
return Theme.palette.dangerColor3;
}
}
@ -89,6 +98,8 @@ Rectangle {
return Theme.palette.miscColor1;
case StatusRoundButton.Type.Tertiary:
return Theme.palette.primaryColor3;
case StatusRoundButton.Type.Quaternary:
return Theme.palette.dangerColor2;
}
}
@ -100,6 +111,8 @@ Rectangle {
return Theme.palette.baseColor1;
case StatusRoundButton.Type.Tertiary:
return "transparent";
case StatusRoundButton.Type.Quaternary:
return Theme.palette.baseColor2;
}
}
}