feat: Added Always on Top Toggle. Closes #5
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
- Status Colors on Monitor tab now reflect status of host. Closes #7
|
- Status Colors on Monitor tab now reflect status of host. Closes #7
|
||||||
- Removed unused function.
|
- Removed unused function.
|
||||||
|
- Fixed Screen Refresh Bug on Monitor Tab. Now When You Go To Change a Label While the Monitor Is Running. The Page Stops Refreshing Until You’re Done Changing the Name. This Is To Prevent Your Text Box From Being Deselected When the Table Refreshes.
|
||||||
## [0.2.0] - 2026-09-24
|
## [0.2.0] - 2026-09-24
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 Features
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"permissions": [
|
"permissions": [
|
||||||
"core:default",
|
"core:default",
|
||||||
"opener:default",
|
"opener:default",
|
||||||
"dialog:default"
|
"dialog:default",
|
||||||
|
"core:window:allow-set-always-on-top"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,6 +200,10 @@
|
|||||||
<div id="status-bar">
|
<div id="status-bar">
|
||||||
<span class="status-bar-item" id="status-bar-version">Argus</span>
|
<span class="status-bar-item" id="status-bar-version">Argus</span>
|
||||||
<button id="btn-changelog" class="status-bar-btn">Changelog</button>
|
<button id="btn-changelog" class="status-bar-btn">Changelog</button>
|
||||||
|
<label class="toggle-label status-bar-toggle">
|
||||||
|
<input type="checkbox" id="chk-always-on-top" />
|
||||||
|
<span>Always on Top</span>
|
||||||
|
</label>
|
||||||
<select id="theme-picker" class="theme-picker">
|
<select id="theme-picker" class="theme-picker">
|
||||||
<option value="cyber">Cyber</option>
|
<option value="cyber">Cyber</option>
|
||||||
<option value="midnight">Midnight</option>
|
<option value="midnight">Midnight</option>
|
||||||
|
|||||||
@@ -1255,6 +1255,13 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||||||
updater.init();
|
updater.init();
|
||||||
changelog.init();
|
changelog.init();
|
||||||
theme.init();
|
theme.init();
|
||||||
|
// Always on top toggle
|
||||||
|
document.getElementById('chk-always-on-top').addEventListener('change', function (e) {
|
||||||
|
if (window.__TAURI__ && window.__TAURI__.window) {
|
||||||
|
var current = window.__TAURI__.window.getCurrentWindow();
|
||||||
|
current.setAlwaysOnTop(e.target.checked);
|
||||||
|
}
|
||||||
|
});
|
||||||
document.getElementById('btn-export-all').addEventListener('click', exporter.csvAll);
|
document.getElementById('btn-export-all').addEventListener('click', exporter.csvAll);
|
||||||
document.getElementById('btn-export-up').addEventListener('click', exporter.csvUp);
|
document.getElementById('btn-export-up').addEventListener('click', exporter.csvUp);
|
||||||
console.log('[Argus] Ready');
|
console.log('[Argus] Ready');
|
||||||
|
|||||||
@@ -1515,3 +1515,12 @@ body {
|
|||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status-bar-toggle {
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-bar-toggle input:checked+span {
|
||||||
|
color: var(--cyan);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user