|
| 1 | +<Window xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:scottplot="clr-namespace:ScottPlot.Avalonia;assembly=ScottPlot.Avalonia" |
| 6 | + mc:Ignorable="d" d:DesignWidth="1100" d:DesignHeight="700" |
| 7 | + x:Class="ClaudeUsageMonitor.ChartsWindow" |
| 8 | + Title="Claude Usage Charts" |
| 9 | + Icon="avares://ClaudeUsageMonitor/Assets/icon.ico" |
| 10 | + Width="1100" Height="700" |
| 11 | + Background="#1a1a2e"> |
| 12 | + |
| 13 | + <Window.Styles> |
| 14 | + <Style Selector="TabItem"> |
| 15 | + <Setter Property="Foreground" Value="#b0b0c0" /> |
| 16 | + <Setter Property="FontSize" Value="13" /> |
| 17 | + </Style> |
| 18 | + </Window.Styles> |
| 19 | + |
| 20 | + <Grid RowDefinitions="*,Auto"> |
| 21 | + <TabControl Grid.Row="0" x:Name="ChartsTabs" Margin="6"> |
| 22 | + <TabItem Header="Burn Rate Forecast"> |
| 23 | + <scottplot:AvaPlot x:Name="BurnRatePlot" /> |
| 24 | + </TabItem> |
| 25 | + <TabItem Header="Hour-of-Day"> |
| 26 | + <scottplot:AvaPlot x:Name="HourOfDayPlot" /> |
| 27 | + </TabItem> |
| 28 | + <TabItem Header="Cycle Overlay"> |
| 29 | + <scottplot:AvaPlot x:Name="CycleOverlayPlot" /> |
| 30 | + </TabItem> |
| 31 | + <TabItem Header="Sonnet vs Opus"> |
| 32 | + <scottplot:AvaPlot x:Name="SonnetOpusPlot" /> |
| 33 | + </TabItem> |
| 34 | + <TabItem Header="Reset Waterfall"> |
| 35 | + <scottplot:AvaPlot x:Name="WaterfallPlot" /> |
| 36 | + </TabItem> |
| 37 | + <TabItem Header="Burst Detector"> |
| 38 | + <scottplot:AvaPlot x:Name="BurstPlot" /> |
| 39 | + </TabItem> |
| 40 | + <TabItem Header="Extra Credits"> |
| 41 | + <Grid RowDefinitions="Auto,*"> |
| 42 | + <StackPanel Grid.Row="0" Margin="20,16,20,8"> |
| 43 | + <TextBlock x:Name="ExtraCreditsHeader" |
| 44 | + Text="Extra Credits" |
| 45 | + FontSize="16" FontWeight="Bold" |
| 46 | + Foreground="#e0e0f0" /> |
| 47 | + <TextBlock x:Name="ExtraCreditsAmount" |
| 48 | + Foreground="#b0b0c0" |
| 49 | + FontSize="13" |
| 50 | + Margin="0,4,0,4" /> |
| 51 | + <ProgressBar x:Name="ExtraCreditsProgressBar" |
| 52 | + Height="16" |
| 53 | + Minimum="0" Maximum="100" |
| 54 | + Background="#22223a" |
| 55 | + Foreground="#9b59b6" /> |
| 56 | + <TextBlock x:Name="ExtraCreditsForecast" |
| 57 | + Foreground="#80808a" |
| 58 | + FontSize="11" |
| 59 | + Margin="0,8,0,0" |
| 60 | + TextWrapping="Wrap" /> |
| 61 | + </StackPanel> |
| 62 | + <scottplot:AvaPlot Grid.Row="1" x:Name="ExtraCreditsPlot" /> |
| 63 | + </Grid> |
| 64 | + </TabItem> |
| 65 | + </TabControl> |
| 66 | + |
| 67 | + <StackPanel Grid.Row="1" |
| 68 | + Orientation="Horizontal" |
| 69 | + HorizontalAlignment="Right" |
| 70 | + Margin="10,0,10,10" |
| 71 | + Spacing="8"> |
| 72 | + <TextBlock x:Name="StatusText" |
| 73 | + Foreground="#80808a" |
| 74 | + FontSize="11" |
| 75 | + VerticalAlignment="Center" /> |
| 76 | + <Button Content="Refresh" Click="OnRefreshClicked" Padding="14,6" /> |
| 77 | + </StackPanel> |
| 78 | + </Grid> |
| 79 | +</Window> |
0 commit comments