feat: reduce space between app icon and window title
This commit is contained in:
1 parent
dfcf9de78e
commit
295eb2bd60
2 files changed
+5
-4
No files matched your search
@@ -5,6 +5,7 @@ class Appearance {
|
|||||||
static var windowPadding = CGFloat(18)
|
static var windowPadding = CGFloat(18)
|
||||||
static var interCellPadding = CGFloat(1)
|
static var interCellPadding = CGFloat(1)
|
||||||
static var intraCellPadding = CGFloat(5)
|
static var intraCellPadding = CGFloat(5)
|
||||||
|
static var appIconLabelSpacing = CGFloat(2)
|
||||||
static var edgeInsetsSize = CGFloat(5)
|
static var edgeInsetsSize = CGFloat(5)
|
||||||
static var cellCornerRadius = CGFloat(10)
|
static var cellCornerRadius = CGFloat(10)
|
||||||
static var windowCornerRadius = CGFloat(23)
|
static var windowCornerRadius = CGFloat(23)
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ class ThumbnailView: FlippedView {
|
|||||||
} else {
|
} else {
|
||||||
vStackView.frame.size = NSSize(width: frame.width, height: frame.height)
|
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))
|
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)
|
label.setWidth(labelWidth)
|
||||||
}
|
}
|
||||||
if Preferences.appearanceStyle == .thumbnails {
|
if Preferences.appearanceStyle == .thumbnails {
|
||||||
@@ -398,10 +398,10 @@ class ThumbnailView: FlippedView {
|
|||||||
: indicatorSpace - iconWidth
|
: 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
|
label.frame.origin.x = App.shared.userInterfaceLayoutDirection == .leftToRight
|
||||||
? appIcon.frame.maxX + Appearance.intraCellPadding
|
? appIcon.frame.maxX + Appearance.appIconLabelSpacing
|
||||||
: hStackView.frame.width - appIcon.frame.width - Appearance.intraCellPadding - labelWidth
|
: hStackView.frame.width - appIcon.frame.width - Appearance.appIconLabelSpacing - labelWidth
|
||||||
label.centerFrameInParent(y: true)
|
label.centerFrameInParent(y: true)
|
||||||
}
|
}
|
||||||
if Preferences.appearanceStyle == .thumbnails {
|
if Preferences.appearanceStyle == .thumbnails {
|
||||||
|
|||||||
Reference in new issue
Block a user