-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
78 lines (74 loc) · 3.14 KB
/
Copy pathMainWindow.axaml
File metadata and controls
78 lines (74 loc) · 3.14 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
66
67
68
69
70
71
72
73
74
75
76
77
78
<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="420"
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" />
<Border x:Name="WeeklyLimitsPanel"
Margin="8,20,8,8"
Padding="12,10"
CornerRadius="6"
BorderThickness="1"
BorderBrush="#33334d"
Background="#22223a">
<StackPanel>
<TextBlock Text="Weekly Limits"
FontSize="13" FontWeight="SemiBold"
Foreground="#b4b4be"
HorizontalAlignment="Center"
Margin="0,0,0,8" />
<StackPanel x:Name="WeeklyLimitsList" Spacing="6" />
</StackPanel>
</Border>
</UniformGrid>
</Grid>
</Window>