migrate to wpf

This commit is contained in:
pypy
2021-02-05 03:16:36 +09:00
parent 17d8811790
commit 97a4dbf4d3
13 changed files with 2211 additions and 1718 deletions

View File

@@ -67,9 +67,9 @@ speechSynthesis.getVoices();
document.addEventListener('keyup', function (e) {
if (e.ctrlKey) {
if (e.shiftKey && e.code === 'KeyI') {
if (e.key === 'I') {
AppApi.ShowDevTools();
} else if (e.code === 'KeyR') {
} else if (e.key === 'r') {
location.reload();
}
}
@@ -3455,6 +3455,18 @@ speechSynthesis.getVoices();
}
};
$app.methods.minimizeWindow = function () {
AppApi.MinimizeMainWindow();
};
$app.methods.toggleMaximizeWindow = function () {
AppApi.ToggleMaximizeMainWindow();
};
$app.methods.closeWindow = function () {
AppApi.CloseMainWindow();
};
$app.methods.openExternalLink = function (link) {
this.$confirm(`${link}`, 'Open External Link', {
confirmButtonText: 'Confirm',

View File

@@ -138,10 +138,24 @@ a {
.x-app {
position: absolute;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden;
}
.x-title-bar {
display: flex;
width: 100%;
height: 30px;
}
.x-wrap {
position: relative;
display: flex;
width: 100%;
height: calc(100% - 30px);
overflow: hidden auto;
cursor: default;
}
.x-container {
@@ -156,10 +170,10 @@ a {
position: absolute;
// modal 시작이 2000이라서
z-index: 1999;
display: flex;
width: 100%;
height: 100%;
background: #fff;
overflow: hidden scroll;
}
.x-menu-container {

File diff suppressed because it is too large Load Diff