File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
CodeEdit/Features/CodeEditUI/Views Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,19 @@ struct ToolbarBranchPicker: View {
31
31
}
32
32
33
33
var body : some View {
34
- HStack ( alignment: . center, spacing: 5 ) {
35
- if currentBranch != nil {
36
- Image . branch
37
- . font ( . title3)
38
- . imageScale ( . medium)
39
- . foregroundColor ( controlActive == . inactive ? inactiveColor : . gray)
40
- } else {
41
- Image ( systemName: " folder.fill.badge.gearshape " )
42
- . font ( . title3)
43
- . imageScale ( . medium)
44
- . foregroundColor ( controlActive == . inactive ? inactiveColor : . accentColor)
34
+ HStack ( alignment: . center, spacing: 7 ) {
35
+ Group {
36
+ if currentBranch != nil {
37
+ Image ( symbol: " branch " )
38
+ } else {
39
+ Image ( systemName: " folder.fill.badge.gearshape " )
40
+ }
45
41
}
46
- VStack ( alignment: . leading, spacing: 2 ) {
42
+ . foregroundColor ( controlActive == . inactive ? inactiveColor : . secondary)
43
+ . font ( . system( size: 14 ) )
44
+ . imageScale ( . medium)
45
+ . frame ( width: 17 , height: 17 )
46
+ VStack ( alignment: . leading, spacing: 0 ) {
47
47
Text ( title)
48
48
. font ( . headline)
49
49
. foregroundColor ( controlActive == . inactive ? inactiveColor : . primary)
@@ -63,6 +63,7 @@ struct ToolbarBranchPicker: View {
63
63
. menuIndicator ( isHovering ? . visible : . hidden)
64
64
. buttonStyle ( . borderless)
65
65
. padding ( . leading, - 3 )
66
+ . padding ( . bottom, 2 )
66
67
}
67
68
}
68
69
}
You can’t perform that action at this time.
0 commit comments