Skip to content

Commit

Permalink
Release 3.23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Mar 17, 2024
1 parent d9591a8 commit 12cdbbb
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 9 deletions.
161 changes: 161 additions & 0 deletions App/Sources/UI/Releases/Release3_23_2.swift
@@ -0,0 +1,161 @@
import Bonzai
import SwiftUI

struct Release3_23_2: View {
enum ButtonAction {
case done
}

let size: CGFloat = 96
let action: (ButtonAction) -> Void

var body: some View {
VStack(spacing: 8) {
HStack(spacing: 8) {
VStack {
HStack {
BugFixIconView(size: size)
UIImprovementIconView(size: size)
KeyboardIconView("M", size: size)
}
}
VStack(spacing: 8) {
HStack(spacing: 8) {
VStack(alignment: .leading) {
Text("Keyboard Cowboy")
.font(Font.system(size: 16, design: .rounded))
Text("3.23.2")
.foregroundStyle(.white)
.font(Font.system(size: 43, design: .rounded))
.allowsTightening(true)
.fontWeight(.heavy)
.shadow(color: Color(.systemTeal), radius: 10)
}
.shadow(radius: 2)
.frame(width: 200, height: 96)
.fixedSize()
.background {
Rectangle()
.fill(.black)
.overlay {
AngularGradient(stops: [
.init(color: Color.clear, location: 0.0),
.init(color: Color.white.opacity(0.2), location: 0.2),
.init(color: Color.clear, location: 1.0),
], center: .bottomLeading)

LinearGradient(stops: [
.init(color: Color.white.opacity(0.2), location: 0),
.init(color: Color.clear, location: 0.3),
], startPoint: .top, endPoint: .bottom)

LinearGradient(stops: [
.init(color: Color.clear, location: 0.8),
.init(color: Color(.windowBackgroundColor).opacity(0.3), location: 1.0),
], startPoint: .top, endPoint: .bottom)

}
}
.iconShape(size)
}
}
}
.padding(.top, 32)
.padding(.horizontal, 16)

ZenDivider()
.frame(maxWidth: 400)
.padding(.top, 8)

VStack(alignment: .leading, spacing: 16) {
ScrollView(.vertical) {
VStack(spacing: 6) {
Text("Changes")
.font(Font.system(.headline, weight: .bold))
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.bottom, 6)

VStack(alignment: .leading, spacing: 12) {
HStack(alignment: .top, spacing: 12) {
BugFixIconView(size: 24)
VStack(spacing: 12) {
Group {
Text("Fixed a bug where application-triggered workflows were inadvertently cancelled during concurrent trigger execution.")
}
.frame(maxWidth: .infinity, alignment: .leading)
Divider()
}
}
}

VStack(alignment: .leading, spacing: 12) {
HStack(alignment: .top, spacing: 12) {
KeyboardIconView("M", size: 24)
VStack(spacing: 12) {
Text("Resolved an issue causing repeated keyboard events.")
.frame(maxWidth: .infinity, alignment: .leading)
Text("Enhanced keyboard command reliability by ensuring commands are consistently sent in pairs.")
.frame(maxWidth: .infinity, alignment: .leading)
Divider()
}
}
}

VStack(alignment: .leading, spacing: 12) {
HStack(alignment: .top, spacing: 12) {
UIImprovementIconView(size: 24)
VStack(spacing: 12) {
Text("Window notifications have been updated to remove the small round indicator when no bundles or notifications are present.")
.frame(maxWidth: .infinity, alignment: .leading)
Divider()
}
}
}
}
}
.frame(minHeight: 210)

Divider()

HStack(spacing: 4) {
Text("Special thanks to")
AsyncImage.init(url: URL(string: "https://avatars.githubusercontent.com/u/4262050?v=4")) { image in
image
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 24, height: 24)
.mask { Circle() }
} placeholder: {
Circle()
.fill(Color(.controlAccentColor))
.frame(width: 24, height: 24)
.overlay {
ProgressView()
}
}
Link("@bjrmatos", destination: URL(string: "https://github.com/bjrmatos")!)
Text("for supporting the project ❤️")
}
}
.frame(width: 475)
.roundedContainer(margin: 0)
.padding(.top, 8)
.padding(.horizontal, 16)

HStack(spacing: 8) {
Button(action: { action(.done) }, label: { Text("Aww yeah!") })
.buttonStyle(.zen(.init(color: .systemGreen, hoverEffect: .constant(false))))
}
.padding(.top, 8)
.padding(.bottom, 32)
}
.background(Color(.windowBackgroundColor))
}
}

struct Release3_23_2_Previews: PreviewProvider {
static var previews: some View {
Release3_23_2 { _ in }
.previewDisplayName("Release 3.23.2")
}
}
2 changes: 1 addition & 1 deletion App/Sources/UI/Views/Windows/ReleaseNotesScene.swift
Expand Up @@ -7,7 +7,7 @@ struct ReleaseNotesScene: Scene {

var body: some Scene {
WindowGroup(id: KeyboardCowboy.releaseNotesWindowIdentifier) {
Release3_23_1 { action in
Release3_23_2 { action in
switch action {
case .done:
NSApplication.shared.keyWindow?.close()
Expand Down
16 changes: 8 additions & 8 deletions appcast.xml
Expand Up @@ -2,6 +2,14 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>Keyboard Cowboy</title>
<item>
<title>3.23.2</title>
<pubDate>Sun, 17 Mar 2024 18:18:57 +0100</pubDate>
<sparkle:version>703</sparkle:version>
<sparkle:shortVersionString>3.23.2</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/zenangst/KeyboardCowboy/releases/download/3.23.2/Keyboard.Cowboy.3.23.2.dmg" length="8305551" type="application/octet-stream" sparkle:edSignature="ZOdISMI2C9E+C5MHbzgnhon5WaQKkTZ0+vuj4pF4n5AVSTYv+Ibexe/6ugIzYhYwGQIflqPPv/BNY7aQVEr8Dw=="/>
</item>
<item>
<title>3.23.1</title>
<pubDate>Fri, 15 Mar 2024 16:42:07 +0100</pubDate>
Expand All @@ -18,14 +26,6 @@
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/zenangst/KeyboardCowboy/releases/download/3.23.0/Keyboard.Cowboy.3.23.0.dmg" length="8276900" type="application/octet-stream" sparkle:edSignature="lrYFVufqXxbkTJ7Jss4ozERc9u1fps5GnVpMLY8Rwk1VDYFtYhVlX3PYqHfIKswFivtDtRQEHtJfkgtysYqCBQ=="/>
</item>
<item>
<title>3.22.2</title>
<pubDate>Tue, 20 Feb 2024 15:40:16 +0100</pubDate>
<sparkle:version>545</sparkle:version>
<sparkle:shortVersionString>3.22.2</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://github.com/zenangst/KeyboardCowboy/releases/download/3.22.2/Keyboard.Cowboy.3.22.2.dmg" length="8157572" type="application/octet-stream" sparkle:edSignature="tv0x0AqcrlsMQmKpDU8xedK3P088y54m9h0cZPPRHDx+GtVtiGY7pFNF4uI85DXp9sRuaEfceCxgkHvlwW+KDw=="/>
</item>
<item>
<title>0.4.1</title>
<pubDate>Mon, 21 Dec 2020 19:46:13 +0100</pubDate>
Expand Down

0 comments on commit 12cdbbb

Please sign in to comment.