mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing button colors in update notification (#1986)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
df47d1713c
commit
749996f284
@ -64,17 +64,17 @@ async function autoUpdateCheck(windowManager: WindowManager): Promise<void> {
|
|||||||
{
|
{
|
||||||
label: "Yes, now",
|
label: "Yes, now",
|
||||||
backchannel: yesNowChannel,
|
backchannel: yesNowChannel,
|
||||||
action: true,
|
className: "light"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Yes, on quit",
|
label: "Yes, on quit",
|
||||||
backchannel: yesLaterChannel,
|
backchannel: yesLaterChannel,
|
||||||
action: true,
|
className: "primary outline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "No",
|
label: "Remind later",
|
||||||
backchannel: noChannel,
|
backchannel: noChannel,
|
||||||
secondary: true
|
className: "primary outline"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
closeChannel: noChannel,
|
closeChannel: noChannel,
|
||||||
@ -99,7 +99,7 @@ export function startUpdateChecking(windowManager: WindowManager, interval = 100
|
|||||||
.on("update-available", async (args: UpdateInfo) => {
|
.on("update-available", async (args: UpdateInfo) => {
|
||||||
try {
|
try {
|
||||||
const releaseDate = moment(args.releaseDate);
|
const releaseDate = moment(args.releaseDate);
|
||||||
const body = `Version ${args.version} was released on ${releaseDate.format("dddd, MMMM Do, yyyy")}.`;
|
const body = `Version ${args.version} of Lens IDE is now available. Would you like to update?`;
|
||||||
windowManager.mainView.webContents.send(NotificationChannelAdd, {
|
windowManager.mainView.webContents.send(NotificationChannelAdd, {
|
||||||
title,
|
title,
|
||||||
body,
|
body,
|
||||||
|
|||||||
@ -33,6 +33,15 @@
|
|||||||
background: $buttonSecondaryBackground;
|
background: $buttonSecondaryBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.outline {
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.light {
|
||||||
|
background-color: white;
|
||||||
|
color: #505050;
|
||||||
|
}
|
||||||
|
|
||||||
&.plain {
|
&.plain {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user