Skip to content

Commit 1d894b5

Browse files
committed
Merge branch 'main'
2 parents 7945787 + a5d8fa7 commit 1d894b5

File tree

168 files changed

+3757
-5691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+3757
-5691
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,15 @@
785785
"contributions": [
786786
"bug"
787787
]
788+
},
789+
{
790+
"login": "pro100filipp",
791+
"name": "Filipp Kuznetsov",
792+
"avatar_url": "https://avatars.githubusercontent.com/u/12880697?v=4",
793+
"profile": "https://github.com/pro100filipp",
794+
"contributions": [
795+
"code"
796+
]
788797
}
789798
],
790799
"contributorsPerLine": 7,

.github/scripts/test_app.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ elif [ $1 = "arm" ]; then
88
ARCH="arm64"
99
fi
1010

11+
echo "Building with Xcode: $(xcodebuild -version)"
1112
echo "Building with arch: ${ARCH}"
1213
echo "SwiftLint Version: $(swiftlint --version)"
1314

.github/workflows/CI-release-notes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy Website on Release Note Changes
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [created, edited, deleted]
67

.github/workflows/pre-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build CodeEdit
4949
env:
5050
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
51-
run: xcodebuild -scheme CodeEdit -configuration Pre -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation DEVELOPMENT_TEAM=$APPLE_TEAM_ID archive
51+
run: xcodebuild -scheme CodeEdit -configuration Pre -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation DEVELOPMENT_TEAM=$APPLE_TEAM_ID archive | xcpretty
5252

5353
############################
5454
# Sign
@@ -109,6 +109,20 @@ jobs:
109109
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
110110
echo "APP_BUILD=$APP_BUILD" >> $GITHUB_ENV
111111
112+
############################
113+
# Upload dSYMs Artifact
114+
############################
115+
- name: Upload dSYMs Artifact
116+
uses: actions/upload-artifact@v4
117+
with:
118+
name: "CodeEdit-${{ env.APP_BUILD }}-dSYMs"
119+
path: "${{ RUNNER.TEMP }}/CodeEdit.xcarchive/dSYMs"
120+
if-no-files-found: error
121+
# overwrite files for the same build number
122+
overwrite: true
123+
# these can be big, use maximum compression
124+
compression-level: 9
125+
112126
############################
113127
# Sparkle Appcast
114128
############################

CodeEdit.xcodeproj/project.pbxproj

Lines changed: 174 additions & 4287 deletions
Large diffs are not rendered by default.

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

Lines changed: 0 additions & 8 deletions
This file was deleted.

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeEdit.xcodeproj/xcshareddata/xcschemes/CodeEdit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1540"
3+
LastUpgradeVersion = "1620"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

CodeEdit/Features/About/Views/BlurButtonStyle.swift

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ import SwiftUI
99

1010
extension ButtonStyle where Self == BlurButtonStyle {
1111
static var blur: BlurButtonStyle { BlurButtonStyle() }
12+
static var secondaryBlur: BlurButtonStyle { BlurButtonStyle(isSecondary: true) }
1213
}
1314

1415
struct BlurButtonStyle: ButtonStyle {
16+
var isSecondary: Bool = false
17+
1518
@Environment(\.controlSize)
1619
var controlSize
1720

21+
@Environment(\.colorScheme)
22+
var colorScheme
23+
1824
var height: CGFloat {
1925
switch controlSize {
2026
case .large:
@@ -24,32 +30,40 @@ struct BlurButtonStyle: ButtonStyle {
2430
}
2531
}
2632

27-
@Environment(\.colorScheme)
28-
var colorScheme
29-
3033
func makeBody(configuration: Configuration) -> some View {
3134
configuration.label
35+
.padding(.horizontal, 8)
3236
.frame(height: height)
33-
.buttonStyle(.bordered)
3437
.background {
3538
switch colorScheme {
3639
case .dark:
37-
Color
38-
.gray
39-
.opacity(0.001)
40-
.overlay(.regularMaterial.blendMode(.plusLighter))
41-
.overlay(Color.gray.opacity(0.30))
42-
.overlay(Color.white.opacity(configuration.isPressed ? 0.20 : 0.00))
40+
ZStack {
41+
Color.gray.opacity(0.001)
42+
if isSecondary {
43+
Rectangle()
44+
.fill(.regularMaterial)
45+
} else {
46+
Rectangle()
47+
.fill(.regularMaterial)
48+
.blendMode(.plusLighter)
49+
}
50+
Color.gray.opacity(isSecondary ? 0.10 : 0.30)
51+
Color.white.opacity(configuration.isPressed ? 0.10 : 0.00)
52+
}
4353
case .light:
44-
Color
45-
.gray
46-
.opacity(0.001)
47-
.overlay(.regularMaterial.blendMode(.darken))
48-
.overlay(Color.gray.opacity(0.15).blendMode(.plusDarker))
54+
ZStack {
55+
Color.gray.opacity(0.001)
56+
Rectangle()
57+
.fill(.regularMaterial)
58+
.blendMode(.darken)
59+
Color.gray.opacity(isSecondary ? 0.05 : 0.15)
60+
.blendMode(.plusDarker)
61+
Color.gray.opacity(configuration.isPressed ? 0.10 : 0.00)
62+
}
4963
@unknown default:
5064
Color.black
5165
}
5266
}
53-
.clipShape(RoundedRectangle(cornerRadius: 6))
67+
.clipShape(RoundedRectangle(cornerRadius: controlSize == .large ? 6 : 5))
5468
}
5569
}

0 commit comments

Comments
 (0)