Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(windows): small icon buttons such as Switch to subtitle bar and the notes window's collapse no longer have their right edge cut off

wquguru32196103b19e
diff --git a/windows/src/Cicada/Ui.cs b/windows/src/Cicada/Ui.cs
index fd938d2..d34bc2f 100644
--- a/windows/src/Cicada/Ui.cs
+++ b/windows/src/Cicada/Ui.cs
@@ -187,7 +187,9 @@ static class Ui
var b = new Button
{
Content = Icon(icon, iconSize, color ?? Palette.Body, fill), Width = size, Height = size, Background = Brushes.Transparent,
- BorderThickness = new Thickness(0), Cursor = Cursors.Hand, ToolTip = name,
+ // No padding: the Fluent theme's 11 a side leaves a 34-wide button 12 for a 16 icon, and
+ // the Viewbox clips its right edge.
+ BorderThickness = new Thickness(0), Cursor = Cursors.Hand, ToolTip = name, Padding = new Thickness(0),
};
b.Template = Template(plain: true, onDark: onDark, radius: 10);
b.Click += (_, _) => onClick();