Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6858798b14 | ||
|
|
c3ad730677 | ||
|
|
0dcfcbfb6f | ||
|
|
31789df35c |
@@ -56,17 +56,19 @@ public class GaugeControl : FrameworkElement
|
|||||||
CultureInfo.CurrentCulture, FlowDirection.LeftToRight,
|
CultureInfo.CurrentCulture, FlowDirection.LeftToRight,
|
||||||
new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Bold, FontStretches.Normal),
|
new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Bold, FontStretches.Normal),
|
||||||
14, new SolidColorBrush(textColor), dpi);
|
14, new SolidColorBrush(textColor), dpi);
|
||||||
dc.DrawText(pctText, new Point(cx - pctText.Width / 2, cy - pctText.Height - 1));
|
|
||||||
|
|
||||||
var sub = new FormattedText(
|
var sub = new FormattedText(
|
||||||
"Updated\nnow",
|
"used",
|
||||||
CultureInfo.CurrentCulture, FlowDirection.LeftToRight,
|
CultureInfo.CurrentCulture, FlowDirection.LeftToRight,
|
||||||
new Typeface("Segoe UI"), 7,
|
new Typeface("Segoe UI"), 8,
|
||||||
new SolidColorBrush(subColor), dpi)
|
new SolidColorBrush(subColor), dpi)
|
||||||
{
|
{
|
||||||
TextAlignment = TextAlignment.Center
|
TextAlignment = TextAlignment.Center
|
||||||
};
|
};
|
||||||
dc.DrawText(sub, new Point(cx - sub.Width / 2, cy + 2));
|
|
||||||
|
var totalHeight = pctText.Height + 2 + sub.Height;
|
||||||
|
var startY = cy - totalHeight / 2;
|
||||||
|
dc.DrawText(pctText, new Point(cx - pctText.Width / 2, startY));
|
||||||
|
dc.DrawText(sub, new Point(cx - sub.Width / 2, startY + pctText.Height + 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void DrawArc(DrawingContext dc, double cx, double cy, double r,
|
private static void DrawArc(DrawingContext dc, double cx, double cy, double r,
|
||||||
|
|||||||
@@ -66,16 +66,7 @@
|
|||||||
|
|
||||||
<!-- Cards scroll area -->
|
<!-- Cards scroll area -->
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel Margin="0,4,0,4">
|
<StackPanel x:Name="CardsPanel" Margin="0,4,0,4"/>
|
||||||
<Border x:Name="DebugBanner" Visibility="Collapsed"
|
|
||||||
Background="{DynamicResource CardBrush}"
|
|
||||||
BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
|
|
||||||
CornerRadius="6" Margin="12,4,12,4" Padding="12,8">
|
|
||||||
<TextBlock x:Name="DebugBannerText" FontSize="10" FontFamily="Consolas"
|
|
||||||
Foreground="{DynamicResource SecondaryBrush}" TextWrapping="Wrap"/>
|
|
||||||
</Border>
|
|
||||||
<StackPanel x:Name="CardsPanel"/>
|
|
||||||
</StackPanel>
|
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
@@ -194,10 +185,6 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<TextBlock x:Name="DebugText" FontSize="10" Foreground="{DynamicResource SecondaryBrush}"
|
|
||||||
TextWrapping="Wrap" Margin="0,12,0,0" FontFamily="Consolas"
|
|
||||||
Visibility="Collapsed"/>
|
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|||||||
@@ -283,20 +283,6 @@ public partial class PopupWindow : Window
|
|||||||
|
|
||||||
SignOutButton.Visibility = VM.IsSignedIn ? Visibility.Visible : Visibility.Collapsed;
|
SignOutButton.Visibility = VM.IsSignedIn ? Visibility.Visible : Visibility.Collapsed;
|
||||||
SignInButton.Content = VM.IsSignedIn ? "Re-authenticate" : "Sign In";
|
SignInButton.Content = VM.IsSignedIn ? "Re-authenticate" : "Sign In";
|
||||||
|
|
||||||
var dbg = AppSettings.Default.DebugInfo;
|
|
||||||
if (!string.IsNullOrEmpty(dbg))
|
|
||||||
{
|
|
||||||
DebugText.Text = dbg;
|
|
||||||
DebugText.Visibility = Visibility.Visible;
|
|
||||||
DebugBannerText.Text = dbg;
|
|
||||||
DebugBanner.Visibility = Visibility.Visible;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DebugText.Visibility = Visibility.Collapsed;
|
|
||||||
DebugBanner.Visibility = Visibility.Collapsed;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Event handlers ───────────────────────────────────────────────
|
// ── Event handlers ───────────────────────────────────────────────
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## What's new in beta.32
|
## What's new in beta.33
|
||||||
|
|
||||||
- Fix: usage response fields were completely wrong — five_hour/seven_day not claude_ai_default_5h/claude_ai_default (this is why limits never loaded)
|
- Fix: gauge percentage text is now vertically centered within the dial
|
||||||
- Fix: placeholder cards shown while data loads instead of blank panel
|
- Remove: debug banner no longer appears on the main panel
|
||||||
|
|||||||
Reference in New Issue
Block a user