From 36a921683b8f8bf62a01b1f7782fa641ad7526f0 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 25 Jun 2026 17:23:58 +0800
Subject: [PATCH] Polish usage tips close reminder layout
---
src/Apptag/EditModeViews.swift | 57 ++++++++++++++++++++++++++++++---------------------------
1 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/src/Apptag/EditModeViews.swift b/src/Apptag/EditModeViews.swift
index 9a7ff79..5594627 100644
--- a/src/Apptag/EditModeViews.swift
+++ b/src/Apptag/EditModeViews.swift
@@ -662,35 +662,35 @@
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: .infinity, alignment: .leading)
- Button {
- doNotRemind.toggle()
- } label: {
- HStack(spacing: 10) {
- ZStack {
- RoundedRectangle(cornerRadius: 4, style: .continuous)
- .fill(doNotRemind ? Color.accentColor : Color.white.opacity(0.10))
- RoundedRectangle(cornerRadius: 4, style: .continuous)
- .stroke(Color.white.opacity(0.92), lineWidth: 1.6)
- if doNotRemind {
- Image(systemName: "checkmark")
- .font(.system(size: 12, weight: .bold))
- .foregroundStyle(.white)
+ HStack(alignment: .bottom, spacing: 16) {
+ Button {
+ doNotRemind.toggle()
+ } label: {
+ HStack(spacing: 10) {
+ ZStack {
+ RoundedRectangle(cornerRadius: 4, style: .continuous)
+ .fill(doNotRemind ? Color.accentColor : Color.white.opacity(0.10))
+ RoundedRectangle(cornerRadius: 4, style: .continuous)
+ .stroke(Color.white.opacity(0.92), lineWidth: 1.6)
+ if doNotRemind {
+ Image(systemName: "checkmark")
+ .font(.system(size: 12, weight: .bold))
+ .foregroundStyle(.white)
+ }
}
+ .frame(width: 18, height: 18)
+
+ Text(doNotRemindTitle)
+ .font(.system(size: 13, weight: .semibold))
+ .foregroundStyle(.white.opacity(0.86))
+ .lineLimit(2)
+ .multilineTextAlignment(.leading)
}
- .frame(width: 18, height: 18)
-
- Text(doNotRemindTitle)
- .font(.system(size: 13, weight: .medium))
- .foregroundStyle(.white.opacity(0.82))
- .lineLimit(2)
- .multilineTextAlignment(.leading)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .contentShape(Rectangle())
}
- .contentShape(Rectangle())
- }
- .buttonStyle(.plain)
-
- HStack {
- Spacer(minLength: 0)
+ .buttonStyle(.plain)
+ .frame(maxWidth: .infinity, alignment: .leading)
Button(action: onConfirm) {
Text(confirmTitle)
@@ -706,6 +706,7 @@
}
.buttonStyle(.plain)
}
+ .padding(.top, 4)
}
.padding(.horizontal, 24)
.padding(.vertical, 20)
@@ -752,6 +753,7 @@
previewCheckbox(title: tr("settings.hideAppNames"), highlighted: false)
previewCheckbox(title: tr("settings.hideUsageTips"), highlighted: true)
}
+ .frame(maxWidth: .infinity, alignment: .center)
.padding(10)
.background(
RoundedRectangle(cornerRadius: 10, style: .continuous)
@@ -766,9 +768,10 @@
.font(.system(size: 11, weight: .semibold))
.foregroundStyle(Color.accentColor)
.lineLimit(2)
+ .multilineTextAlignment(.center)
.fixedSize(horizontal: false, vertical: true)
}
- .frame(maxWidth: .infinity, alignment: .trailing)
+ .frame(maxWidth: .infinity, alignment: .center)
}
.padding(14)
.background(
--
Gitblit v1.9.3