diff --git a/Application/Presentation/Entry/Sources/Main/MainTabBar.swift b/Application/Presentation/Entry/Sources/Main/MainTabBar.swift index 098be0b4..d91d959c 100644 --- a/Application/Presentation/Entry/Sources/Main/MainTabBar.swift +++ b/Application/Presentation/Entry/Sources/Main/MainTabBar.swift @@ -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) } diff --git a/Application/Presentation/HomeTab/Sources/Category/CategoryManageView.swift b/Application/Presentation/HomeTab/Sources/Category/CategoryManageView.swift index de8c6d76..1cc70055 100644 --- a/Application/Presentation/HomeTab/Sources/Category/CategoryManageView.swift +++ b/Application/Presentation/HomeTab/Sources/Category/CategoryManageView.swift @@ -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) @@ -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 ) @@ -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) } @@ -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)) diff --git a/Application/Presentation/HomeTab/Sources/Goal/Create/GoalCreateView.swift b/Application/Presentation/HomeTab/Sources/Goal/Create/GoalCreateView.swift index 7103c937..11bb78d6 100644 --- a/Application/Presentation/HomeTab/Sources/Goal/Create/GoalCreateView.swift +++ b/Application/Presentation/HomeTab/Sources/Goal/Create/GoalCreateView.swift @@ -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")) } @@ -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) diff --git a/Application/Presentation/HomeTab/Sources/Goal/TodoSelection/GoalTodoSelectionViews.swift b/Application/Presentation/HomeTab/Sources/Goal/TodoSelection/GoalTodoSelectionViews.swift index 7555020f..7b081abb 100644 --- a/Application/Presentation/HomeTab/Sources/Goal/TodoSelection/GoalTodoSelectionViews.swift +++ b/Application/Presentation/HomeTab/Sources/Goal/TodoSelection/GoalTodoSelectionViews.swift @@ -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)) @@ -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) diff --git a/Application/Presentation/HomeTab/Sources/Home/HomeView.swift b/Application/Presentation/HomeTab/Sources/Home/HomeView.swift index a291f46f..27a073f1 100644 --- a/Application/Presentation/HomeTab/Sources/Home/HomeView.swift +++ b/Application/Presentation/HomeTab/Sources/Home/HomeView.swift @@ -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)) @@ -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 { @@ -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) @@ -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)) } diff --git a/Application/Presentation/HomeTab/Sources/Record/Editor/RecordEditorView.swift b/Application/Presentation/HomeTab/Sources/Record/Editor/RecordEditorView.swift index 7810f3f2..b0167ab6 100644 --- a/Application/Presentation/HomeTab/Sources/Record/Editor/RecordEditorView.swift +++ b/Application/Presentation/HomeTab/Sources/Record/Editor/RecordEditorView.swift @@ -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) @@ -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 diff --git a/Application/Presentation/HomeTab/Sources/Record/GoalDetail/GoalLinkedTodoCard.swift b/Application/Presentation/HomeTab/Sources/Record/GoalDetail/GoalLinkedTodoCard.swift index a7d6bda2..ac3b060a 100644 --- a/Application/Presentation/HomeTab/Sources/Record/GoalDetail/GoalLinkedTodoCard.swift +++ b/Application/Presentation/HomeTab/Sources/Record/GoalDetail/GoalLinkedTodoCard.swift @@ -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) } diff --git a/Application/Presentation/HomeTab/Sources/Record/RecordPresentation.swift b/Application/Presentation/HomeTab/Sources/Record/RecordPresentation.swift index 2fdbabf0..978d869f 100644 --- a/Application/Presentation/HomeTab/Sources/Record/RecordPresentation.swift +++ b/Application/Presentation/HomeTab/Sources/Record/RecordPresentation.swift @@ -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) @@ -96,7 +96,7 @@ struct RecordTopBarTextButton: View { } // 반경 6의 높이 44 버튼, Mac은 높이 32 -// 강조 버튼은 강조색 바탕, 보조 버튼은 회색 바탕과 테두리 +// 강조 버튼은 흑백 채움 바탕, 보조 버튼은 회색 바탕과 테두리 struct RecordButtonStyle: ButtonStyle { @Environment(\.isEnabled) private var isEnabled @Environment(\.isiOSAppOnMac) private var isiOSAppOnMac @@ -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) } @@ -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) } } } } diff --git a/Application/Presentation/HomeTab/Sources/Search/SearchView.swift b/Application/Presentation/HomeTab/Sources/Search/SearchView.swift index 88bda336..8a496aa1 100644 --- a/Application/Presentation/HomeTab/Sources/Search/SearchView.swift +++ b/Application/Presentation/HomeTab/Sources/Search/SearchView.swift @@ -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", @@ -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) } diff --git a/Application/Presentation/HomeTab/Sources/Todo/List/TodoListView.swift b/Application/Presentation/HomeTab/Sources/Todo/List/TodoListView.swift index abf24f7f..b05c819d 100644 --- a/Application/Presentation/HomeTab/Sources/Todo/List/TodoListView.swift +++ b/Application/Presentation/HomeTab/Sources/Todo/List/TodoListView.swift @@ -167,7 +167,7 @@ private struct TodoListContent: View { // Mac은 둥근 선택·마우스 표시와 맞닿는 구분선 숨김 TodoItemRow( todo, - showsSeparator: !isLast && !(isiOSAppOnMac && (isHighlighted || isNextHighlighted)) + showsSeparator: !(isiOSAppOnMac && (isHighlighted || isNextHighlighted)) ) // 선택·마우스 표시는 같은 회색, Mac은 Orca 데스크톱처럼 둥근 사각형 // 반투명 선택 색 아래로 행 동작 버튼이 비치지 않도록 불투명 바탕 위에 표시 @@ -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))) @@ -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) } @@ -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)) } } @@ -560,7 +560,7 @@ private struct TodoListFilterHeader: View { } } -// 필터와 정렬 메뉴를 여는 칩, 기본값에서 바꾼 조건은 강조색 바탕으로 표시 +// 필터와 정렬 메뉴를 여는 칩, 기본값에서 바꾼 조건은 회색 바탕으로 표시 private struct TodoListFilterChip: View { let title: String let systemImage: String @@ -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) } diff --git a/Application/Presentation/NotificationTab/Sources/PushNotificationListView.swift b/Application/Presentation/NotificationTab/Sources/PushNotificationListView.swift index 5696a520..e834b0d6 100644 --- a/Application/Presentation/NotificationTab/Sources/PushNotificationListView.swift +++ b/Application/Presentation/NotificationTab/Sources/PushNotificationListView.swift @@ -446,7 +446,7 @@ private struct PushNotificationFilterBar: View { } } -// 고른 조건은 강조색 바탕과 테두리, 나머지는 테두리만 있는 칩 +// 고른 조건은 테두리 없는 회색 바탕, 나머지는 테두리만 있는 칩 private struct PushNotificationFilterChip: View { let isSelected: Bool @ViewBuilder let content: Content @@ -457,13 +457,13 @@ private struct PushNotificationFilterChip: 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) } } } diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/DropdownMenu.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/DropdownMenu.swift index 83642453..fdef3245 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/DropdownMenu.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/DropdownMenu.swift @@ -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)) diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/PaneMenuButton.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/PaneMenuButton.swift index 5fe76156..40c69d26 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/PaneMenuButton.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/PaneMenuButton.swift @@ -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) } diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/PillToggleStyle.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/PillToggleStyle.swift index 4c639344..e34c16ad 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/PillToggleStyle.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/PillToggleStyle.swift @@ -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) diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/Toast.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/Toast.swift index a2c5c08a..a978ab90 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/Toast.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/Toast.swift @@ -222,10 +222,10 @@ 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) @@ -233,9 +233,9 @@ private struct ToastOverlayView: View { 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) diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/TodoItemRow.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/TodoItemRow.swift index 2dd2ddcb..dd56b5ed 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/TodoItemRow.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/TodoItemRow.swift @@ -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) } // 칸 화면은 옆 칸에 상세를 열어 화면 이동 표시 생략 diff --git a/Application/Presentation/PresentationShared/Sources/Common/Component/ToolbarButtons.swift b/Application/Presentation/PresentationShared/Sources/Common/Component/ToolbarButtons.swift index 08e6984d..e75c3f93 100644 --- a/Application/Presentation/PresentationShared/Sources/Common/Component/ToolbarButtons.swift +++ b/Application/Presentation/PresentationShared/Sources/Common/Component/ToolbarButtons.swift @@ -51,7 +51,7 @@ public struct ToolbarTrailingButton: ToolbarContent { } label: { Image(systemName: "checkmark") } - .topBarButtonStyle(tint: Color.accent) + .topBarButtonStyle() .disabled(isDisabled) } .sharedBackgroundHidden() diff --git a/Application/Presentation/PresentationShared/Sources/Extension/Color+Assets.swift b/Application/Presentation/PresentationShared/Sources/Extension/Color+Assets.swift index 2d825a0e..8a50d774 100644 --- a/Application/Presentation/PresentationShared/Sources/Extension/Color+Assets.swift +++ b/Application/Presentation/PresentationShared/Sources/Extension/Color+Assets.swift @@ -13,6 +13,7 @@ public extension Color { static let danger = Color("Danger", bundle: PresentationResources.bundle) static let fill = Color("Fill", bundle: PresentationResources.bundle) static let fillLabel = Color("FillLabel", bundle: PresentationResources.bundle) + static let important = Color("Important", bundle: PresentationResources.bundle) static let info = Color("Info", bundle: PresentationResources.bundle) static let inputBorder = Color("InputBorder", bundle: PresentationResources.bundle) static let inputFill = Color("InputFill", bundle: PresentationResources.bundle) diff --git a/Application/Presentation/PresentationShared/Sources/Extension/View+Alert.swift b/Application/Presentation/PresentationShared/Sources/Extension/View+Alert.swift index bb937fc8..c36c879e 100644 --- a/Application/Presentation/PresentationShared/Sources/Extension/View+Alert.swift +++ b/Application/Presentation/PresentationShared/Sources/Extension/View+Alert.swift @@ -131,10 +131,7 @@ where State: ObservableState { .contentShape(.rect) } .buttonStyle(.plain) - .foregroundStyle( - button.role == .destructive - ? Color.danger : usesDefaultAction ? .accent : .label - ) + .foregroundStyle(button.role == .destructive ? Color.danger : .label) .keyboardShortcut( usesDefaultAction ? .defaultAction : button.role == .cancel ? .cancelAction : nil diff --git a/Application/Presentation/PresentationShared/Sources/Extension/View+InputBackground.swift b/Application/Presentation/PresentationShared/Sources/Extension/View+InputBackground.swift index 51facf6b..53ee6b9c 100644 --- a/Application/Presentation/PresentationShared/Sources/Extension/View+InputBackground.swift +++ b/Application/Presentation/PresentationShared/Sources/Extension/View+InputBackground.swift @@ -28,7 +28,7 @@ private struct InputBackgroundModifier: ViewModifier { // 사이드바가 있는 창은 Mac과 같은 입력칸 모양 if usesDesktopLayout { let shape = RoundedRectangle(cornerRadius: isMultiline ? CornerRadius.group : CornerRadius.control) - let border = isInvalid ? Color.danger : isFocused ? .accent : isMultiline ? .multilineInputBorder : .inputBorder + let border = isInvalid ? Color.danger : isFocused ? .secondaryLabel : isMultiline ? .multilineInputBorder : .inputBorder // Orca 입력칸처럼 라이트는 테두리만, 다크는 옅은 바탕과 테두리 content @@ -36,7 +36,7 @@ private struct InputBackgroundModifier: ViewModifier { .overlay { shape.strokeBorder(border) } .overlay { if isFocused && !isInvalid { - shape.inset(by: -3).strokeBorder(Color.accent.opacity(0.3), lineWidth: 3) + shape.inset(by: -3).strokeBorder(Color.secondaryLabel.opacity(0.3), lineWidth: 3) } } } else { diff --git a/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailSideBarView.swift b/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailSideBarView.swift index 04b2f785..a005b745 100644 --- a/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailSideBarView.swift +++ b/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailSideBarView.swift @@ -161,7 +161,7 @@ private struct TodoInfoProperties: View { .resizable() .fontWeight(.medium) .frame(width: glyphSize, height: glyphSize) - .foregroundStyle(editorStore.isPinned ? Color.accent : .secondaryLabel) + .foregroundStyle(editorStore.isPinned ? Color.important : .secondaryLabel) .padding(hitPadding) .contentShape(.rect) } @@ -355,13 +355,13 @@ private struct TagField: View { } label: { Image(systemName: "plus") .font(.adaptive(.title3)) - .foregroundStyle(canSubmit ? Color.accent : .secondaryLabel) + .foregroundStyle(canSubmit ? Color.label : .secondaryLabel) } .buttonStyle(.plain) .disabled(!canSubmit) } .font(.adaptive(isiOSAppOnMac ? .body : .subheadline)) - .tint(Color.accent) + .tint(Color.label) .padding(.horizontal, 12 * AdaptiveSize.boardScale) .frame(height: isiOSAppOnMac ? 32 * AdaptiveSize.boardScale : 44) .inputBackground(isFocused: isFocused) diff --git a/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailView.swift b/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailView.swift index e1031295..802f13c6 100644 --- a/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailView.swift +++ b/Application/Presentation/PresentationShared/Sources/Todo/Detail/TodoDetailView.swift @@ -302,7 +302,7 @@ public struct InfoSheetView: View { } label: { Text(String(localized: "common_close", bundle: PresentationResources.bundle)) .font(.adaptive(.callout).weight(.medium)) - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) .padding(.horizontal, 4) .frame(maxHeight: .infinity) .contentShape(.rect) diff --git a/Application/Presentation/PresentationShared/Sources/Todo/Editor/TodoEditorView.swift b/Application/Presentation/PresentationShared/Sources/Todo/Editor/TodoEditorView.swift index daf2263a..138702de 100644 --- a/Application/Presentation/PresentationShared/Sources/Todo/Editor/TodoEditorView.swift +++ b/Application/Presentation/PresentationShared/Sources/Todo/Editor/TodoEditorView.swift @@ -196,7 +196,7 @@ private struct PaneEditorActions: View { Button(action: onSubmit) { Text(String(localized: "todo_manage_save", bundle: PresentationResources.bundle)) .font(.adaptive(.body).weight(.semibold)) - .foregroundStyle(Color.accent) + .foregroundStyle(Color.label) } .buttonStyle(.plain) .disabled(!store.isReadyToSubmit) @@ -228,7 +228,7 @@ private struct ToolBar: View { } label: { Image(systemName: "xmark") } - .topBarButtonStyle(tint: showsActions ? nil : Color.accent) + .topBarButtonStyle() Spacer() Text(store.navigationTitle) .font(.adaptive(.title3).bold()) @@ -264,9 +264,7 @@ struct EditorToolbarActions: View { } label: { Image(systemName: "checkmark") } - .topBarButtonStyle( - tint: store.isReadyToSubmit ? Color.accent : nil - ) + .topBarButtonStyle() .disabled(!store.isReadyToSubmit) .opacity(store.isReadyToSubmit ? 1 : 0.4) } diff --git a/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift b/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift index bc67e7ec..066ba48d 100644 --- a/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Profile/ActivityCard.swift @@ -27,7 +27,7 @@ struct ActivityCard: View { store.send(.moveToCurrentQuarter) } label: { Image(systemName: "arrow.uturn.backward") - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) } .buttonStyle(.plain) } @@ -49,7 +49,7 @@ struct ActivityCard: View { } } label: { Image(systemName: "line.3.horizontal.decrease") - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) } } @@ -61,7 +61,7 @@ struct ActivityCard: View { Image(systemName: "chevron.left") .font(.adaptive(.body)) } - .tint(Color.tintLabel) + .tint(Color.label) .disabled(!store.canMoveToPreviousQuarter) Spacer() Button { @@ -96,7 +96,7 @@ struct ActivityCard: View { Image(systemName: "chevron.right") .font(.adaptive(.body)) } - .tint(Color.tintLabel) + .tint(Color.label) .disabled(!store.canMoveToNextQuarter) } .font(.adaptive(.footnote)) @@ -228,7 +228,7 @@ struct QuarterPickerSheet: View { } label: { Text(String(localized: "common_done", bundle: PresentationResources.bundle)) .font(.adaptive(isiOSAppOnMac ? .body : .callout).bold()) - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) .padding(.horizontal, 4 * AdaptiveSize.boardScale) .contentShape(.rect) } @@ -297,7 +297,7 @@ struct QuarterPickerSheet: View { } label: { Text(String(localized: "common_done", bundle: PresentationResources.bundle)) .font(.adaptive(.callout).weight(.medium)) - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) .padding(.horizontal, 4) .frame(maxHeight: .infinity) .contentShape(.rect) @@ -349,7 +349,7 @@ struct QuarterPickerSheet: View { .sheetDetent(store.quarterPickerHeight == 0 ? .fraction(0.3) : .height(store.quarterPickerHeight)) } - // 고른 분기는 강조색 테두리와 옅은 바탕, 고를 수 없는 분기는 흐린 글자 + // 고른 분기는 기본 글자색 테두리와 회색 바탕, 고를 수 없는 분기는 흐린 글자 private func desktopQuarterButton(for quarter: Int) -> some View { let quarterStart = store.state.quarterStartForPicker(quarter: quarter) let isEnabled = store.state.isQuarterSelectableForPicker(quarter) @@ -367,12 +367,12 @@ struct QuarterPickerSheet: View { ) ) .font(.adaptive(isiOSAppOnMac ? .body : .subheadline).weight(.semibold)) - .foregroundStyle(isSelected ? Color.tintLabel : isEnabled ? .label : .tertiaryLabel) + .foregroundStyle(isSelected || isEnabled ? Color.label : .tertiaryLabel) .frame(maxWidth: .infinity) .padding(.vertical, 14 * AdaptiveSize.boardScale) - .background(isSelected ? Color.tintFill : .tertiaryBackground, in: shape) + .background(isSelected ? Color.fill : .tertiaryBackground, in: shape) .overlay { - shape.strokeBorder(isSelected ? Color.accent : .secondarySeparator) + shape.strokeBorder(isSelected ? Color.label : .secondarySeparator) } .contentShape(shape) } @@ -401,9 +401,9 @@ struct QuarterPickerSheet: View { .padding(.vertical, 12) .background( RoundedRectangle(cornerRadius: CornerRadius.control) - .fill(isSelected ? Color.accent : Color.tertiaryBackground) + .fill(isSelected ? Color.label : Color.tertiaryBackground) ) - .foregroundStyle(isSelected ? Color.white : isEnabled ? .label : .secondaryLabel) + .foregroundStyle(isSelected ? Color.background : isEnabled ? .label : .secondaryLabel) } .buttonStyle(.plain) .disabled(!isEnabled) diff --git a/Application/Presentation/ProfileTab/Sources/Profile/RecentActivityCard.swift b/Application/Presentation/ProfileTab/Sources/Profile/RecentActivityCard.swift index faad1b4a..2bc14bc1 100644 --- a/Application/Presentation/ProfileTab/Sources/Profile/RecentActivityCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Profile/RecentActivityCard.swift @@ -78,14 +78,14 @@ private struct RecentTodoRow: View { if todo.isPinned { Image(systemName: "star.fill") .font(.adaptive(.caption).weight(.semibold)) - .foregroundStyle(Color.accent) + .foregroundStyle(Color.important) } } // #번호 · 카테고리 · 업데이트 시각 HStack(spacing: 4) { Text(verbatim: "#\(todo.number)") - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) Text(category.localizedName) .lineLimit(1) Text(verbatim: "·") diff --git a/Application/Presentation/ProfileTab/Sources/Profile/UserInfoCard.swift b/Application/Presentation/ProfileTab/Sources/Profile/UserInfoCard.swift index 4dd801b8..466a3e08 100644 --- a/Application/Presentation/ProfileTab/Sources/Profile/UserInfoCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Profile/UserInfoCard.swift @@ -61,7 +61,7 @@ struct UserInfoCard: View { .foregroundStyle(Color.secondaryLabel) } .foregroundStyle(Color.label) - .tint(Color.accent) + .tint(Color.label) .focused($focused) .disabled(!store.isNetworkConnected) @@ -71,7 +71,7 @@ struct UserInfoCard: View { store.send(.tapResetStatusMessageButton) } label: { Image(systemName: "xmark.circle.fill") - .foregroundStyle(Color.accent) + .foregroundStyle(Color.label) } .transition(.move(edge: .trailing).combined(with: .opacity)) } @@ -94,7 +94,7 @@ struct UserInfoCard: View { } label: { Text("profile_done", bundle: PresentationResources.bundle) } - .tint(Color.accent) + .tint(Color.label) .transition(.move(edge: .trailing).combined(with: .opacity)) } } diff --git a/Application/Presentation/ProfileTab/Sources/Settings/AccountCard.swift b/Application/Presentation/ProfileTab/Sources/Settings/AccountCard.swift index 34ce301d..afab6e65 100644 --- a/Application/Presentation/ProfileTab/Sources/Settings/AccountCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Settings/AccountCard.swift @@ -17,7 +17,7 @@ struct AccountCard: View { Button(action: onAccount) { DesktopSettingsRow( symbolName: "person", - symbolColor: .tintLabel, + symbolColor: .label, title: Text(String(localized: "settings_account", bundle: PresentationResources.bundle)) ) { Image(systemName: "chevron.right") diff --git a/Application/Presentation/ProfileTab/Sources/Settings/AppSettingsCard.swift b/Application/Presentation/ProfileTab/Sources/Settings/AppSettingsCard.swift index 5f8a284f..f060f96b 100644 --- a/Application/Presentation/ProfileTab/Sources/Settings/AppSettingsCard.swift +++ b/Application/Presentation/ProfileTab/Sources/Settings/AppSettingsCard.swift @@ -19,7 +19,7 @@ struct AppSettingsCard: View { Button(action: onTheme) { DesktopSettingsRow( symbolName: "desktopcomputer", - symbolColor: .tintLabel, + symbolColor: .label, title: Text(String(localized: "settings_theme", bundle: PresentationResources.bundle)) ) { Text(themeName) @@ -36,7 +36,7 @@ struct AppSettingsCard: View { Button(action: onNotifications) { DesktopSettingsRow( symbolName: "bell", - symbolColor: .tintLabel, + symbolColor: .label, title: Text(String(localized: "settings_notifications", bundle: PresentationResources.bundle)) ) { Image(systemName: "chevron.right") diff --git a/Application/Presentation/ProfileTab/Sources/Settings/DesktopSettingsComponents.swift b/Application/Presentation/ProfileTab/Sources/Settings/DesktopSettingsComponents.swift index b6a15222..19e1c809 100644 --- a/Application/Presentation/ProfileTab/Sources/Settings/DesktopSettingsComponents.swift +++ b/Application/Presentation/ProfileTab/Sources/Settings/DesktopSettingsComponents.swift @@ -163,7 +163,7 @@ struct SettingsCheck: View { var body: some View { Image(systemName: isSelected ? "checkmark.circle" : "circle") .font(.adaptive(isiOSAppOnMac ? .title2 : .title3)) - .foregroundStyle(isSelected ? Color.accent : .secondaryLabel) + .foregroundStyle(isSelected ? Color.label : .secondaryLabel) } } @@ -186,12 +186,12 @@ struct DesktopSettingsButton: View { var body: some View { let color: Color = switch role { case .normal: .secondaryLabel - case .prominent: .white + case .prominent: .background case .destructive: .danger } let border: Color = switch role { case .normal: .separator - case .prominent: .accent + case .prominent: .label case .destructive: .danger } @@ -210,7 +210,7 @@ struct DesktopSettingsButton: View { .foregroundStyle(color) .padding(.horizontal, 12 * AdaptiveSize.boardScale) .frame(minHeight: isiOSAppOnMac ? 22 * AdaptiveSize.boardScale : 34) - .background(role == .prominent ? Color.accent : .clear, in: .rect(cornerRadius: CornerRadius.control)) + .background(role == .prominent ? Color.label : .clear, in: .rect(cornerRadius: CornerRadius.control)) .overlay { RoundedRectangle(cornerRadius: CornerRadius.control) .strokeBorder(border) diff --git a/Application/Presentation/ProfileTab/Sources/Settings/PushNotificationSettingsView.swift b/Application/Presentation/ProfileTab/Sources/Settings/PushNotificationSettingsView.swift index 1c4c0bcc..2eea939b 100644 --- a/Application/Presentation/ProfileTab/Sources/Settings/PushNotificationSettingsView.swift +++ b/Application/Presentation/ProfileTab/Sources/Settings/PushNotificationSettingsView.swift @@ -98,7 +98,7 @@ private struct EnableCard: View { DesktopSettingsSection(footer: Text("push_settings_footer", bundle: PresentationResources.bundle)) { DesktopSettingsRow( symbolName: "bell", - symbolColor: .tintLabel, + symbolColor: .label, title: Text("push_settings_enable", bundle: PresentationResources.bundle) ) { toggle diff --git a/Application/Presentation/TodayTab/Sources/TodayView.swift b/Application/Presentation/TodayTab/Sources/TodayView.swift index 009d2190..492d520c 100644 --- a/Application/Presentation/TodayTab/Sources/TodayView.swift +++ b/Application/Presentation/TodayTab/Sources/TodayView.swift @@ -416,7 +416,7 @@ private struct TodayFilterBar: View { } } -// 고른 조건은 강조색 바탕과 테두리, 나머지는 테두리만 있는 칩 +// 고른 조건은 테두리 없는 회색 바탕, 나머지는 테두리만 있는 칩 private struct TodayFilterChip: View { let isSelected: Bool @ViewBuilder let content: Content @@ -426,13 +426,13 @@ private struct TodayFilterChip: View { content } .font(.adaptive(.footnote)) - .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) } } } diff --git a/Application/Presentation/TodayTab/Sources/TodoSection.swift b/Application/Presentation/TodayTab/Sources/TodoSection.swift index f84ea126..579bc360 100644 --- a/Application/Presentation/TodayTab/Sources/TodoSection.swift +++ b/Application/Presentation/TodayTab/Sources/TodoSection.swift @@ -91,7 +91,7 @@ private struct TodoRow: View { if item.isPinned { Image(systemName: "star.fill") .font(.system(size: isiOSAppOnMac ? 12.5 * AdaptiveSize.boardScale : 14)) - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.important) } } if !item.content.isEmpty { @@ -141,7 +141,7 @@ private struct TodoRow: View { HStack(spacing: 8) { Text("#\(item.number)") .fontWeight(.semibold) - .foregroundStyle(Color.tintLabel) + .foregroundStyle(Color.label) Image(systemName: category.symbolName) .foregroundStyle(category.color) diff --git a/Application/Shared/Resources/ColorPalette.xcassets/Important.colorset/Contents.json b/Application/Shared/Resources/ColorPalette.xcassets/Important.colorset/Contents.json new file mode 100644 index 00000000..80466f9e --- /dev/null +++ b/Application/Shared/Resources/ColorPalette.xcassets/Important.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "colors": [ + { + "color": { + "color-space": "srgb", + "components": { + "alpha": "1.000", + "blue": "0x06", + "green": "0x77", + "red": "0xD9" + } + }, + "idiom": "universal" + }, + { + "appearances": [ + { + "appearance": "luminosity", + "value": "dark" + } + ], + "color": { + "color-space": "srgb", + "components": { + "alpha": "1.000", + "blue": "0x0B", + "green": "0x9E", + "red": "0xF5" + } + }, + "idiom": "universal" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +}