-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
65 lines (61 loc) · 2.59 KB
/
MainWindow.axaml
File metadata and controls
65 lines (61 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:ClaudeUsageMonitor.Controls"
mc:Ignorable="d" d:DesignWidth="1180" d:DesignHeight="380"
x:Class="ClaudeUsageMonitor.MainWindow"
Title="Claude Code Usage Monitor"
Icon="avares://ClaudeUsageMonitor/Assets/icon.ico"
Width="1180" Height="420"
Background="#1a1a2e"
CanResize="False">
<Window.ContextMenu>
<ContextMenu>
<MenuItem Header="Charts..." Click="OnChartsContextMenuClicked" />
<MenuItem Header="Settings..." Click="OnSettingsContextMenuClicked" />
</ContextMenu>
</Window.ContextMenu>
<Grid RowDefinitions="Auto,Auto,*">
<!-- Header -->
<Grid Grid.Row="0" Margin="20,16,20,0">
<TextBlock Text="Claude Code Usage"
FontSize="20" FontWeight="Bold"
Foreground="#b0b0c0"
HorizontalAlignment="Center" />
<TextBlock x:Name="StatusText"
Text=""
FontSize="11"
Foreground="#606075"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</Grid>
<!-- Error message -->
<TextBlock Grid.Row="1"
x:Name="ErrorMessageText"
Text=""
FontSize="12"
Foreground="#f5d76e"
HorizontalAlignment="Left"
TextWrapping="Wrap"
Margin="20,4,20,0" />
<!-- Gauges -->
<UniformGrid Grid.Row="2"
x:Name="GaugeGrid"
Columns="4"
Margin="20,0,20,15">
<controls:GaugeControl x:Name="Gauge5Hour"
Label="5-Hour Window"
Value="0" />
<controls:GaugeControl x:Name="GaugeWeekly"
Label="Weekly"
Value="0" />
<controls:GaugeControl x:Name="GaugeOpus"
Label="Opus Weekly"
Value="0" />
<controls:GaugeControl x:Name="GaugeSonnet"
Label="Sonnet Weekly"
Value="0" />
</UniformGrid>
</Grid>
</Window>