adds nice git interface

This commit is contained in:
2026-10-30 13:21:45 +01:00
parent b9c03a7637
commit caec81e762
107 changed files with 6466 additions and 3992 deletions
+19 -1
View File
@@ -77,7 +77,7 @@ public enum Typography {
public static let terminal = TypeRole(.monoRegular, 12, lineHeight: 20.4)
public static let row = TypeRole(.sansRegular, 13)
public static let rowSelected = TypeRole(.sansMedium, 13)
public static let sourceControlRow = TypeRole(.sansRegular, 12)
public static let rowSmall = TypeRole(.sansRegular, 12)
public static let body = TypeRole(.sansRegular, 14, lineHeight: 23.8)
public static let tooltip = TypeRole(.sansRegular, 12, lineHeight: 18)
public static let button = TypeRole(.sansMedium, 12)
@@ -88,10 +88,28 @@ public enum Typography {
public static let toolbarLabel = TypeRole(.sansRegular, 12)
public static let menuItem = TypeRole(.sansRegular, 13)
public static let menuItemHighlighted = TypeRole(.sansMedium, 13)
/// The main item of a menu, such as "Open in editor".
public static let menuItemEmphasized = TypeRole(.sansSemiBold, 13)
public static let note = TypeRole(.monoRegular, 14, lineHeight: 23.8)
public static let markdownH2 = TypeRole(.monoBold, 24, lineHeight: 26.4, trackingEm: -0.03)
public static let markdownH3 = TypeRole(.monoBold, 17, lineHeight: 20.4)
public static let markdownQuote = TypeRole(.sansItalic, 15)
// MARK: Git view
/// `[ git ]` and the section labels: 11px mono 700, uppercase.
public static let gitLabel = TypeRole(.monoBold, 11, trackingEm: 0.14, uppercase: true)
/// The ↓2 / ↑1 counts, the ⌘G hint and the section count badge.
public static let gitCount = TypeRole(.monoSemiBold, 11)
public static let commitMessage = TypeRole(.monoRegular, 14, lineHeight: 22.4)
public static let gitCommitButton = TypeRole(.sansSemiBold, 13)
public static let gitStatusLetter = TypeRole(.monoBold, 11)
public static let gitPath = TypeRole(.monoRegular, 13)
public static let gitStats = TypeRole(.monoMedium, 12)
public static let inlineDiff = TypeRole(.monoRegular, 13, lineHeight: 22)
public static let gitEmpty = TypeRole(.sansRegular, 13, lineHeight: 20.8)
public static let console = TypeRole(.monoRegular, 12, lineHeight: 19.2)
public static let branchCurrent = TypeRole(.monoSemiBold, 12)
}
extension View {