feat: reduce space between app icon and window title

This commit is contained in:
lwouis committed 2025-01-02 19:28:35 +01:00
1 parent dfcf9de78e
commit 295eb2bd60
2 files changed
+5 -4

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ class Appearance {
static var windowPadding = CGFloat(18)
static var interCellPadding = CGFloat(1)
static var intraCellPadding = CGFloat(5)
static var appIconLabelSpacing = CGFloat(2)
static var edgeInsetsSize = CGFloat(5)
static var cellCornerRadius = CGFloat(10)
static var windowCornerRadius = CGFloat(23)
+4 -4
View File
@@ -372,7 +372,7 @@ class ThumbnailView: FlippedView {
} else {
vStackView.frame.size = NSSize(width: frame.width, height: frame.height)
hStackView.frame.size = NSSize(width: frame.width - Appearance.edgeInsetsSize * 2, height: max(appIcon.frame.height, label.cell!.cellSize.height))
let labelWidth = hStackView.frame.width - appIcon.frame.width - Appearance.intraCellPadding - indicatorsSpace()
let labelWidth = hStackView.frame.width - appIcon.frame.width - Appearance.appIconLabelSpacing - indicatorsSpace()
label.setWidth(labelWidth)
}
if Preferences.appearanceStyle == .thumbnails {
@@ -398,10 +398,10 @@ class ThumbnailView: FlippedView {
: indicatorSpace - iconWidth
}
}
let labelWidth = hStackView.frame.width - appIcon.frame.width - Appearance.intraCellPadding - indicatorSpace
let labelWidth = hStackView.frame.width - appIcon.frame.width - Appearance.appIconLabelSpacing - indicatorSpace
label.frame.origin.x = App.shared.userInterfaceLayoutDirection == .leftToRight
? appIcon.frame.maxX + Appearance.intraCellPadding
: hStackView.frame.width - appIcon.frame.width - Appearance.intraCellPadding - labelWidth
? appIcon.frame.maxX + Appearance.appIconLabelSpacing
: hStackView.frame.width - appIcon.frame.width - Appearance.appIconLabelSpacing - labelWidth
label.centerFrameInParent(y: true)
}
if Preferences.appearanceStyle == .thumbnails {