fix(LinkPreviewMiniCard): dark theme background color (#12733)

This commit is contained in:
Igor Sirotin 2023-11-15 08:00:25 +00:00 committed by GitHub
parent 81d99c44e9
commit fc09027fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -7,7 +7,6 @@ import StatusQ.Components 0.1
import StatusQ.Controls 0.1
import shared 1.0
import utils 1.0
import "./private" 1.0
@ -42,7 +41,7 @@ CalloutCard {
verticalPadding: 15
horizontalPadding: 12
borderColor: Theme.palette.directColor7
backgroundColor: root.containsMouse ? Theme.palette.directColor7 : Theme.palette.baseColor4
backgroundColor: root.containsMouse ? Theme.palette.directColor7 : Style.current.background
// behavior
states: [
@ -79,7 +78,6 @@ CalloutCard {
root.linkData.type === Constants.StandardLinkPreviewType.Link
PropertyChanges {
target: root; visible: true; dashedBorder: false; borderWidth: 0;
backgroundColor: root.containsMouse ? Theme.palette.directColor8 : Theme.palette.indirectColor1;
borderColor: backgroundColor;
}
PropertyChanges { target: loadingAnimation; visible: false; }