Skip to content

Commit 8b41f79

Browse files
committed
redesign resource monitor app
1 parent 4de74c5 commit 8b41f79

7 files changed

Lines changed: 923 additions & 160 deletions

File tree

src/components/DesktopSessionHost.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ const apps: AppDef[] = [
218218
{
219219
id: 'resource-monitor',
220220
label: 'Resource Monitor',
221-
icon: 'bi-bar-chart-line-fill',
221+
icon: 'bi-speedometer2',
222222
iconColor: '#0891b2',
223223
iconBg: '#cffafe',
224-
width: 480,
225-
height: 500,
224+
width: 700,
225+
height: 560,
226226
},
227227
{
228228
id: 'screenshot',

src/components/DesktopSettingsPanel.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ const settingsStore = useSettingsStore()
2525
<option value="right">Right</option>
2626
</select>
2727
</div>
28+
29+
<hr class="desktop-settings-divider" />
30+
31+
<div class="desktop-settings-row">
32+
<p class="mb-0 fw-semibold">Resource Monitor refresh interval</p>
33+
<select
34+
class="form-select form-select-sm desktop-settings-select"
35+
:value="settingsStore.getResourceMonitorInterval(props.realm)"
36+
@change="settingsStore.setResourceMonitorInterval(props.realm, parseInt(($event.target as HTMLSelectElement).value, 10))"
37+
>
38+
<option value="1">1 second</option>
39+
<option value="5">5 seconds</option>
40+
<option value="10">10 seconds</option>
41+
<option value="15">15 seconds</option>
42+
<option value="30">30 seconds</option>
43+
<option value="60">60 seconds</option>
44+
</select>
45+
</div>
2846
</div>
2947
</div>
3048
</div>
@@ -68,6 +86,11 @@ const settingsStore = useSettingsStore()
6886
padding: 0.9rem 1.1rem;
6987
}
7088
89+
.desktop-settings-divider {
90+
margin: 0;
91+
border-color: #e8ecf0;
92+
}
93+
7194
.desktop-settings-select {
7295
width: 130px;
7396
flex-shrink: 0;

0 commit comments

Comments
 (0)