on xenial help sign in
Make Buttons in Notification bubble follor HIG (#336)
c1cdff1Joan CiberSheep
qml/Notifications/Notification.qml+8−3
@@ -464,7 +464,8 @@ StyledItem {
464 text: oneOverTwoLoaderTop.actionLabel
464 text: oneOverTwoLoaderTop.actionLabel
465 outline: notification.hints["x-canonical-private-affirmative-tint"] !== "true"
465 outline: notification.hints["x-canonical-private-affirmative-tint"] !== "true"
466 color: notification.hints["x-canonical-private-affirmative-tint"] === "true" ? theme.palette.normal.positive
466 color: notification.hints["x-canonical-private-affirmative-tint"] === "true" ? theme.palette.normal.positive
467− : theme.palette.normal.foreground
467+ : theme.name == "Ubuntu.Components.Themes.SuruDark" ? "#888"
468+ : "#666"
468 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
469 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
469 }
470 }
470 }
471 }
@@ -494,7 +495,8 @@ StyledItem {
494 text: oneOverTwoLoaderBottom.actionLabel
495 text: oneOverTwoLoaderBottom.actionLabel
495 outline: notification.hints["x-canonical-private-rejection-tint"] !== "true"
496 outline: notification.hints["x-canonical-private-rejection-tint"] !== "true"
496 color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] === "true" ? theme.palette.normal.negative
497 color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] === "true" ? theme.palette.normal.negative
497− : theme.palette.normal.foreground
498+ : theme.name == "Ubuntu.Components.Themes.SuruDark" ? "#888"
499+ : "#666"
498 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
500 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
499 }
501 }
500 }
502 }
@@ -556,7 +558,10 @@ StyledItem {
556 outline: (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] !== "true") ||
558 outline: (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] !== "true") ||
557 (index == 1 && notification.hints["x-canonical-private-rejection-tint"] !== "true")
559 (index == 1 && notification.hints["x-canonical-private-rejection-tint"] !== "true")
558 color: {
560 color: {
559− var result = theme.palette.normal.foreground;
561+ var result = "#666";
562+ if (theme.name == "Ubuntu.Components.Themes.SuruDark") {
563+ result = "#888"
564+ }
560 if (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] === "true") {
565 if (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] === "true") {
561 result = theme.palette.normal.positive;
566 result = theme.palette.normal.positive;
562 }
567 }
qml/Notifications/NotificationButton.qml+2−1
@@ -38,7 +38,8 @@ Rectangle {
38 fontSize: "medium"
38 fontSize: "medium"
39 font.weight: Font.Light
39 font.weight: Font.Light
40 anchors.centerIn: root
40 anchors.centerIn: root
41− color: outline ? theme.palette.normal.backgroundSecondaryText : "white"
41+ color: theme.name == "Ubuntu.Components.Themes.SuruDark" ? "#111"
42+ : "white"
42 visible: text !== ""
43 visible: text !== ""
43 }
44 }
44
45