Skip to content

Commit

Permalink
fix: added releases link and aligned layout left on tab 3
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent 0762e28 commit 6bb73dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion alt-tab-macos/ui/PreferencesWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class PreferencesWindow: NSWindow, NSWindowDelegate {
return makeGridLayout([
[NSTextField(wrappingLabelWithString: "\(App.name) #VERSION#"), ],
[HyperlinkLabel(labelWithUrl: "Source code repository", nsUrl: NSURL(string: "https://github.com/lwouis/alt-tab-macos")!)],
[HyperlinkLabel(labelWithUrl: "Latest releases", nsUrl: NSURL(string: "https://github.com/lwouis/alt-tab-macos/releases")!)],
])
}

Expand All @@ -106,7 +107,9 @@ class PreferencesWindow: NSWindow, NSWindowDelegate {
gridView.yPlacement = .fill
gridView.columnSpacing = interPadding
gridView.rowSpacing = interPadding
gridView.column(at: 0).xPlacement = .trailing
if controls.first!.count > 1 {
gridView.column(at: 0).xPlacement = .trailing
}
gridView.column(at: 0).leadingPadding = padding
gridView.column(at: gridView.numberOfColumns - 1).trailingPadding = padding
gridView.row(at: 0).topPadding = padding
Expand Down

0 comments on commit 6bb73dc

Please sign in to comment.