Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private struct MainTabBarItem: View {
.font(.system(size: 10, weight: .semibold))
.lineLimit(1)
}
.foregroundStyle(isSelected ? Color.tintLabel : .secondaryLabel)
.foregroundStyle(isSelected ? Color.label : .secondaryLabel)
.frame(maxWidth: isFlexible ? .infinity : nil)
.contentShape(.rect)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private struct CategorySheetTopBar: View {
let closeButton = Button(action: onClose) {
Text(closeTitle)
.font(.adaptive(.callout).weight(closesAtLeading ? .medium : .bold))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
.padding(.horizontal, 4)
.frame(maxHeight: .infinity)
.contentShape(.rect)
Expand Down Expand Up @@ -197,7 +197,7 @@ private struct CategoryManageRow: View {
.itemActions {
ItemActionButton(
title: String(localized: "todo_edit", bundle: PresentationResources.bundle),
color: Color.accent,
color: Color.label,
image: Image(systemName: "pencil"),
action: onEdit
)
Expand Down Expand Up @@ -333,7 +333,7 @@ private struct CategoryEditForm: View {
store.send(.tapRandomColorButton)
} label: {
Text(String(localized: "todo_manage_random_color", bundle: PresentationResources.bundle))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
}
.buttonStyle(.plain)
}
Expand Down Expand Up @@ -412,7 +412,7 @@ private struct CategoryEditForm: View {
.foregroundStyle(Color.secondaryLabel)
.monospacedDigit()
}
.tint(Color.accent)
.tint(Color.label)
.padding(.horizontal, 12 * AdaptiveSize.boardScale)
.frame(height: isiOSAppOnMac ? 32 * AdaptiveSize.boardScale : 44)
.modifier(CategoryNameFieldBackground(isFocused: isNameFocused, isInvalid: store.isDuplicatedName))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct GoalCreateView: View {
Button(action: save) {
if store.isSaving {
ProgressView()
.tint(Color.white)
.tint(Color.background)
} else {
Text(RecordPresentation.text("development_goal_save"))
}
Expand All @@ -67,7 +67,7 @@ struct GoalCreateView: View {
Button(action: save) {
Text(RecordPresentation.text("todo_manage_save"))
.font(.adaptive(.body).weight(.semibold))
.foregroundStyle(Color.accent)
.foregroundStyle(Color.label)
}
.buttonStyle(.plain)
.disabled(!store.isReadyToSave)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct GoalTodoSelectionRow: View {
HStack(spacing: 14) {
Image(systemName: isSelected ? "checkmark.circle.fill" : "circle")
.font(.adaptive(.title2))
.foregroundStyle(isSelected ? Color.accent : Color.separator)
.foregroundStyle(isSelected ? Color.label : Color.separator)
VStack(alignment: .leading, spacing: 4) {
Text(todo.title)
.font(.adaptive(.body).weight(isSelected ? .semibold : .regular))
Expand All @@ -93,12 +93,12 @@ struct GoalTodoSelectionRow: View {
.frame(maxWidth: .infinity, alignment: .leading)
if todo.isPinned {
Image(systemName: "star.fill")
.foregroundStyle(Color.warning)
.foregroundStyle(Color.important)
}
}
.padding(.horizontal, 16)
.padding(.vertical, 12)
.background(isSelected ? Color.tintFill : .clear)
.background(isSelected ? Color.fill : .clear)
.contentShape(.rect)
}
.buttonStyle(.plain)
Expand Down
8 changes: 5 additions & 3 deletions Application/Presentation/HomeTab/Sources/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ private struct HomeContentPicker: View {
bundle: PresentationResources.bundle
),
systemName: "flag.checkered",
imageColor: Color.accent
imageColor: Color.label,
iconColor: Color.background
)
}
.listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
Expand Down Expand Up @@ -716,6 +717,7 @@ private struct HomeContentPickerLabel: View {
let text: String
let systemName: String
let imageColor: Color
var iconColor = Color.white

var body: some View {
HStack {
Expand All @@ -724,7 +726,7 @@ private struct HomeContentPickerLabel: View {
.frame(width: labelWidth, height: labelWidth)
.overlay {
Image(systemName: systemName)
.foregroundStyle(Color.white)
.foregroundStyle(iconColor)
.font(.adaptive(.title3))
}
Text(text)
Expand Down Expand Up @@ -787,7 +789,7 @@ private struct HomeDesktopContentPicker: View {
row(
title: Text("development_goal_create_title", bundle: PresentationResources.bundle),
symbolName: "flag",
color: Color.tintLabel
color: Color.label
) {
store.send(.view(.tapCreateDevelopmentGoal))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public struct RecordEditorView: View {
Button(action: save) {
Text(RecordPresentation.text("development_record_save"))
.font(.adaptive(.body).weight(.semibold))
.foregroundStyle(Color.accent)
.foregroundStyle(Color.label)
}
.buttonStyle(.plain)
.disabled(!store.isReadyToSave)
Expand Down Expand Up @@ -262,7 +262,7 @@ public struct RecordEditorView: View {
} label: {
if store.isLoading {
ProgressView()
.tint(Color.white)
.tint(Color.background)
} else {
Text(RecordPresentation.text(
store.isCorrection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct GoalLinkedTodoCard: View {
action: onManage
)
.font(.adaptive(isiOSAppOnMac ? .subheadline : .footnote).weight(.semibold))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
.buttonStyle(.plain)
.disabled(isLoading)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct RecordTopBarTextButton: View {
Button(action: action) {
Text(title)
.font(.adaptive(.callout).weight(isProminent ? .bold : .medium))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
.opacity(isEnabled ? 1 : 0.4)
.padding(.horizontal, 4)
.frame(maxHeight: .infinity)
Expand All @@ -96,7 +96,7 @@ struct RecordTopBarTextButton: View {
}

// 반경 6의 높이 44 버튼, Mac은 높이 32
// 강조 버튼은 강조색 바탕, 보조 버튼은 회색 바탕과 테두리
// 강조 버튼은 흑백 채움 바탕, 보조 버튼은 회색 바탕과 테두리
struct RecordButtonStyle: ButtonStyle {
@Environment(\.isEnabled) private var isEnabled
@Environment(\.isiOSAppOnMac) private var isiOSAppOnMac
Expand All @@ -108,13 +108,13 @@ struct RecordButtonStyle: ButtonStyle {

configuration.label
.font(.adaptive(isiOSAppOnMac ? .body : .subheadline).weight(.semibold))
.foregroundStyle(isProminent ? Color.white : .label)
.foregroundStyle(isProminent ? Color.background : .label)
.lineLimit(1)
.padding(.horizontal, 16 * AdaptiveSize.boardScale)
.frame(maxWidth: fillsWidth ? .infinity : nil)
.frame(height: isiOSAppOnMac ? 32 * AdaptiveSize.boardScale : 44)
.background(isProminent ? Color.accent : .tertiaryBackground, in: shape)
.overlay { shape.strokeBorder(isProminent ? Color.accent : .secondarySeparator) }
.background(isProminent ? Color.label : .tertiaryBackground, in: shape)
.overlay { shape.strokeBorder(isProminent ? Color.label : .secondarySeparator) }
.opacity(isEnabled ? configuration.isPressed ? 0.7 : 1 : 0.4)
.contentShape(shape)
}
Expand Down Expand Up @@ -160,7 +160,7 @@ private struct RecordInputBackground: ViewModifier {

content
.background(Color.tertiaryBackground, in: shape)
.overlay { shape.strokeBorder(isFocused ? Color.accent : .secondarySeparator) }
.overlay { shape.strokeBorder(isFocused ? Color.secondaryLabel : .secondarySeparator) }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct SearchView: View {
HStack(alignment: .top, spacing: 10) {
Image(systemName: "info.circle")
.font(.adaptive(.body))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
VStack(alignment: .leading, spacing: 0) {
Text(String(
localized: "search_todo_number_tip_title",
Expand Down Expand Up @@ -305,10 +305,10 @@ private struct SearchResults: View {
localized: "search_show_more",
bundle: PresentationResources.bundle)
)
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
.font(.adaptive(.callout).bold())
}
.adaptiveButtonStyle(color: .tintFill)
.adaptiveButtonStyle(color: .fill)
.padding(.top, 8)
.padding(.horizontal)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private struct TodoListContent: View {
// Mac은 둥근 선택·마우스 표시와 맞닿는 구분선 숨김
TodoItemRow(
todo,
showsSeparator: !isLast && !(isiOSAppOnMac && (isHighlighted || isNextHighlighted))
showsSeparator: !(isiOSAppOnMac && (isHighlighted || isNextHighlighted))
)
// 선택·마우스 표시는 같은 회색, Mac은 Orca 데스크톱처럼 둥근 사각형
// 반투명 선택 색 아래로 행 동작 버튼이 비치지 않도록 불투명 바탕 위에 표시
Expand Down Expand Up @@ -217,7 +217,7 @@ private struct TodoListContent: View {
ItemActionButton(
title: todo.isPinned
? String(localized: "todo_action_unpin", bundle: PresentationResources.bundle) : String(localized: "todo_action_pin", bundle: PresentationResources.bundle),
color: Color.orange,
color: Color.important,
image: Image(systemName: "star\(todo.isPinned ? ".slash" : ".fill")")
) {
store.send(.view(.tapTogglePinned(todo)))
Expand Down Expand Up @@ -454,7 +454,7 @@ private struct TodoListSearchBar: View {
}
} label: {
Text(String(localized: "common_cancel", bundle: PresentationResources.bundle))
.foregroundStyle(Color.accent)
.foregroundStyle(Color.label)
}
.buttonStyle(.plain)
}
Expand Down Expand Up @@ -494,10 +494,10 @@ private struct TodoListFilterHeader: View {
.font(.system(size: 10, weight: .semibold))
}
.font(.adaptive(.footnote))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
.padding(.horizontal, 12)
.frame(height: 34)
.background(Color.tintFill, in: .rect(cornerRadius: CornerRadius.control))
.background(Color.tertiaryBackground, in: .rect(cornerRadius: CornerRadius.control))
}
}

Expand Down Expand Up @@ -560,7 +560,7 @@ private struct TodoListFilterHeader: View {
}
}

// 필터와 정렬 메뉴를 여는 칩, 기본값에서 바꾼 조건은 강조색 바탕으로 표시
// 필터와 정렬 메뉴를 여는 칩, 기본값에서 바꾼 조건은 회색 바탕으로 표시
private struct TodoListFilterChip: View {
let title: String
let systemImage: String
Expand All @@ -575,10 +575,10 @@ private struct TodoListFilterChip: View {
.font(.system(size: 10, weight: .semibold))
}
.font(.adaptive(.footnote))
.foregroundStyle(isActive ? Color.tintLabel : .label)
.foregroundStyle(Color.label)
.padding(.horizontal, 12)
.frame(height: 34)
.background(isActive ? Color.tintFill : .clear, in: .rect(cornerRadius: CornerRadius.control))
.background(isActive ? Color.tertiaryBackground : .clear, in: .rect(cornerRadius: CornerRadius.control))
.overlay {
RoundedRectangle(cornerRadius: CornerRadius.control).strokeBorder(isActive ? Color.clear : .separator)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ private struct PushNotificationFilterBar: View {
}
}

// 고른 조건은 강조색 바탕과 테두리, 나머지는 테두리만 있는 칩
// 고른 조건은 테두리 없는 회색 바탕, 나머지는 테두리만 있는 칩
private struct PushNotificationFilterChip<Content: View>: View {
let isSelected: Bool
@ViewBuilder let content: Content
Expand All @@ -457,13 +457,13 @@ private struct PushNotificationFilterChip<Content: View>: View {
}
.font(.adaptive(.footnote))
.imageScale(.small)
.foregroundStyle(isSelected ? Color.tintLabel : .label)
.foregroundStyle(Color.label)
.padding(.horizontal, 12)
.frame(height: 34)
.background(isSelected ? Color.tintFill : .clear, in: .rect(cornerRadius: CornerRadius.control))
.background(isSelected ? Color.tertiaryBackground : .clear, in: .rect(cornerRadius: CornerRadius.control))
.overlay {
RoundedRectangle(cornerRadius: CornerRadius.control)
.strokeBorder(isSelected ? Color.accent.opacity(0.6) : .separator)
.strokeBorder(isSelected ? Color.clear : .separator)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private struct DropdownMenuRow: View {
if isChecked {
Image(systemName: "checkmark")
.font(.system(size: iconSize * 0.8, weight: .semibold))
.foregroundStyle(Color.tintLabel)
.foregroundStyle(Color.label)
} else if hasSubmenu {
Image(systemName: "chevron.right")
.font(.system(size: iconSize * 0.7, weight: .semibold))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ public struct PaneMenuButton: View {
DropdownMenu(alignment: .trailing, sections: sections) {
Image(systemName: systemImage)
.topBarButtonStyle()
// 걸린 필터 개수는 아이콘 오른쪽 위 강조색 배지로 표시
// 걸린 필터 개수는 아이콘 오른쪽 위 흑백 배지로 표시
.overlay(alignment: .topTrailing) {
if 0 < badgeCount {
Text(verbatim: badgeCount.formatted())
.font(.system(size: isiOSAppOnMac ? 9 * AdaptiveSize.boardScale : 11, weight: .semibold))
.monospacedDigit()
.foregroundStyle(Color.white)
.foregroundStyle(Color.background)
.padding(.horizontal, isiOSAppOnMac ? 3 * AdaptiveSize.boardScale : 4)
.frame(
minWidth: isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 16,
minHeight: isiOSAppOnMac ? 14 * AdaptiveSize.boardScale : 16
)
.background(Color.accent, in: .capsule)
.background(Color.label, in: .capsule)
.fixedSize()
.padding([.top, .trailing], isiOSAppOnMac ? AdaptiveSize.boardScale : 2)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ private struct PillToggle: View {
let knob = (isiOSAppOnMac ? 14 : 18) * AdaptiveSize.boardScale

Capsule()
.fill(configuration.isOn ? Color.accent : .switchOffFill)
.fill(configuration.isOn ? Color.label : .switchOffFill)
.frame(
width: (isiOSAppOnMac ? 32 : 44) * AdaptiveSize.boardScale,
height: (isiOSAppOnMac ? 18 : 24) * AdaptiveSize.boardScale
)
.overlay(alignment: configuration.isOn ? .trailing : .leading) {
Circle()
.fill(Color.white)
.fill(configuration.isOn ? Color.background : .white)
.frame(width: knob, height: knob)
.shadow(color: Color.black.opacity(0.1), radius: 1.5, y: 1)
.padding((isiOSAppOnMac ? 2 : 3) * AdaptiveSize.boardScale)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,20 @@ private struct ToastOverlayView: View {

return Button(action: performAction) {
HStack(spacing: 8 * AdaptiveSize.boardScale) {
// 인포 토스트는 문구 앞 아이콘, 인터랙션 토스트는 문구 뒤 강조색 사각 버튼
// 인포 토스트는 문구 앞 아이콘, 인터랙션 토스트는 문구 뒤 흑백 사각 버튼
if action == nil {
Image(systemName: systemImage)
.foregroundStyle(Color.accent)
.foregroundStyle(Color.label)
}

Text(message)
.foregroundStyle(Color.label)

if action != nil {
Image(systemName: systemImage)
.foregroundStyle(Color.white)
.foregroundStyle(Color.background)
.frame(width: buttonSize, height: buttonSize)
.background(Color.accent, in: .rect(cornerRadius: CornerRadius.control))
.background(Color.label, in: .rect(cornerRadius: CornerRadius.control))
}
}
.font(isiOSAppOnMac ? .system(size: 13 * AdaptiveSize.boardScale) : .subheadline)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct TodoItemRow: View {
if item.isPinned {
Image(systemName: "star.fill")
.font(.system(size: isiOSAppOnMac ? 12.5 * AdaptiveSize.boardScale : 14))
.foregroundStyle(Color.accent)
.foregroundStyle(Color.important)
}

// 칸 화면은 옆 칸에 상세를 열어 화면 이동 표시 생략
Expand Down
Loading