Clean up debug statements, restore proper icons, document multi-line text spacing
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -90,7 +90,6 @@ func (r *Renderer) drawStatusBar(gtx layout.Context, sb StatusBar) {
|
||||
|
||||
// Line 1: Filename (truncated with ellipsis if needed)
|
||||
filenameLineY := reg.Y
|
||||
filenameLineH := unit.Dp(24)
|
||||
|
||||
// Truncate filename only if it doesn't fit
|
||||
displayFilename := sb.Filename
|
||||
@@ -117,8 +116,9 @@ func (r *Renderer) drawStatusBar(gtx layout.Context, sb StatusBar) {
|
||||
// Layout filename, measure widths, and draw in a single pass
|
||||
r.drawTruncatedText(gtx, th.Shaper, displayFilename, r.theme.FontSize, reg.X+unit.Dp(8), filenameLineY, availableWidth, spaceForText, color.NRGBA{R: 0, G: 0, B: 0, A: 255})
|
||||
|
||||
// Line 2: Icons
|
||||
iconsLineY := filenameLineY + filenameLineH
|
||||
// Line 2: Icons — positioned 20DP below filename baseline.
|
||||
// This matches Gio's default line spacing (ascent+descent with LineHeightScale=1.0).
|
||||
iconsLineY := filenameLineY + unit.Dp(20)
|
||||
|
||||
// Left side: Cut, Copy, Paste icons
|
||||
leftX := reg.X + unit.Dp(8)
|
||||
|
||||
Reference in New Issue
Block a user