Skip to content

Commit

Permalink
forgot to dark mode the ending dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Jul 29, 2022
1 parent e08ecfe commit 241bccb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<main>
<label class="mdc-text-field mdc-text-field--filled" id="ytLink">
<span class="mdc-floating-label">Video URL</span>
<input class="mdc-text-field__input" type="text" oninput="preview(this.value)" />
<input class="mdc-text-field__input" type="text" />
<span class="mdc-line-ripple mdc-label"></span>
</label>
<div id="iframe">
Expand Down
3 changes: 2 additions & 1 deletion src/script.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './index.html';
import './stylesheet.scss';
import './mdc.scss';
import { Clipboard } from 'electron';
import { Clipboard, dialog } from 'electron';
import { getInfoOptions, videoInfo } from 'ytdl-core';

import { MDCCircularProgress } from "@material/circular-progress";
Expand Down Expand Up @@ -60,6 +60,7 @@ downloadButton.addEventListener("click", download);
});

const endMsg = new MDCDialog(document.querySelector('.mdc-dialog'));
endMsg.open()
endMsg.listen("MDCDialog:closing", (ev: MDCDialogCloseEvent) =>
{
electron.dialogResponse(ev.detail.action == "accept");
Expand Down
8 changes: 8 additions & 0 deletions src/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
background-color: rgba(118, 118, 118, 0.3);
color: #ffffff20;
}

.mdc-dialog .mdc-dialog__title{
color: var(--mdc-theme-on-primary)
}
.mdc-dialog__actions button{
background-color: var(--mdc-button-outline-color);
color: white;
}
}
}
}
Expand Down

0 comments on commit 241bccb

Please sign in to comment.