Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions desktop/src/ui/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
--huly-history-box-left-indent: 0;
}
.history-box {
display: none !important;
}
[data-theme="theme-dark"] {
--bg-body: #1a1928;
--bg-secondary: #323233;
Expand Down Expand Up @@ -207,6 +211,15 @@
user-select: none;
}
.desktop-app-control-button.desktop-app-back,
.desktop-app-control-button.desktop-app-forward {
font-size: 16px;
font-weight: 700;
line-height: 1;
padding-bottom: 2px;
-webkit-text-stroke: 0.5px currentColor;
}
.desktop-app-control-button:hover {
background-color: var(--bg-hover);
}
Expand All @@ -229,6 +242,11 @@
<div class="desktop-app-menu-container">
</div>
<div class="desktop-app-window-controls">
<button class="desktop-app-control-button desktop-app-back" id="back-button" title="Back"></button>
<button class="desktop-app-control-button desktop-app-forward" id="forward-button" title="Forward"></button>
</div>
<div class="desktop-app-window-title" id="application-title-bar-caption">Huly</div>
<div class="desktop-app-window-controls">
Expand Down
8 changes: 8 additions & 0 deletions desktop/src/ui/titleBarMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ class MenuBarManager {
ipcMain.closeWindow()
})

this.onButtonClick('back-button', () => {
history.back()
})

this.onButtonClick('forward-button', () => {
history.forward()
})

document.addEventListener('keydown', (e) => { this.handleKeyDown(ipcMain, e) })
document.addEventListener('keyup', (e) => { this.handleKeyUp(e) })

Expand Down