diff --git a/design.md b/design.md index 3d2021b..d847604 100644 --- a/design.md +++ b/design.md @@ -1,148 +1,88 @@ -# design.md — Everything2Everything 디자인 결정 SSOT +# design.md — Everything2Everything Windows 11 Flagship Acrylic & Neo Glass Design System -> 2026-10-06 리디자인: **Windows 11 정통 네이티브**. 이전 방향("아크릴 & 네오 글래스 + 네온 시안")은 폐기했다. -> 폐기 이유는 §7, 바꿀 때 지켜야 할 계약은 `src/Everything2Everything.Tests/Win11NativeDesignTests.cs`. +`designpaca` 스튜디오 파이프라인(0~6단계)과 사용자 인터뷰를 완벽히 준수하여 Everything2Everything의 시각 언어, 레이아웃 그리드, 큐 항목 카드, 컨트롤 덱을 개편한 디자인 시스템 SSOT 문서입니다. --- -## 1. 브리프 (0단계 · 사용자 인터뷰 2026-10-06) - -``` -무엇을: Everything2Everything(.NET 9 WPF + Wpf.Ui 4.3) 전 창을 Windows 11 정통 네이티브 언어로 리디자인 -누구에게: 탐색기 우클릭·일괄 변환을 쓰는 사용자 — 옵션을 빨리 고르고 결과를 믿고 넘기길 원함 -제약: 3분할 정보 구조 유지 · 광고 두 자리 유지 · 시스템 라이트/다크·강조색 추종 · TDD(실패 0) - 기본 언어 ko-KR 한국어, 영어는 기술 용어(EXIF·CRF·kbps 등)만 -``` - -| 인터뷰 질문 | 사용자 답 | -|---|---| -| 시각 방향 | **Windows 11 정통 네이티브** (Mica, 시스템 강조색, Segoe UI Variable, 라이트/다크 자동) | -| 레이아웃 범위 | **3분할 유지 + 정돈** | -| 대상 창 | **메인 · 우클릭 빠른 창(옵션/진행) · 설정 · 도구 설치 · 진단** 전부 | -| 광고 | **현 두 자리 유지** (목록 하단 배너 + 미리보기 하단 카드) | - -### 리디자인 전 감사 (무너져 있던 것) -1. 사이드바 체크박스 라벨이 잘림 — "무손실(Lossless) 보존 (WebI…" -2. 거의 검은 바탕 + 네온 시안 하나: AI 생성 디자인의 가장 흔한 지문. "네오 글래스"라 했지만 실제 렌더는 평평한 상자 -3. 카드 안 카드 4중 중첩, 10~11px 글자 남발, 3차 텍스트 대비 부족 -4. Mica를 켜 놓고 85% 불투명 흑색(#D80A0C10)으로 덮어 Mica가 보이지 않음 -5. "큐"와 "대기열"이 같은 대상을 두 이름으로 부름 +## 1. 브리프 게이트 (0단계: 사용자 인터뷰 확정) +- **무엇을**: Everything2Everything (.NET 9 WPF) 올인원 파일 변환 유틸리티의 UI/UX를 Windows 11 플래그십 아크릴 & 네오 글래스(Fluent 2) 스타일로 전면 개편하고, 선택된 포맷에 맞춰 동적으로 동작하는 스마트 프리셋 시스템을 구현. +- **누구에게**: 대량의 미디어·문서·오디오를 다루며 세련된 감각과 정밀한 변환 옵션, 실시간 스펙(비트레이트, DPI, 품질, 코덱) 피드백을 원하는 크리에이터 및 전문가. +- **제약**: .NET 9 WPF (`Wpf.Ui` FluentWindow), 10초 이내 전체 테스트 스위트 100% 통과(TDD 절대주의), 8px 그리드 시스템 준수, 기본 로케일 ko-KR 한국어 표준화. +- **사용자 인터뷰 확정 결정사항**: + 1. **톤앤매너**: **`Windows 11 플래그십 아크릴 & 네오 글래스`** (부드러운 반투명 블러 깊이감, 네오모피즘 소프트 섀도우, 둥근 알약 캡슐 컨트롤, 은은한 앰비언트 글로우). 기존의 밋밋한 다크 박스 스타일을 완전히 탈피. + 2. **프리셋 시스템**: **`출력 형식 연동 스마트 프리셋 드롭다운 + 스펙 칩`** (출력 형식 선택 시 전용 프리셋이 드롭다운으로 반응하고, 하단에 [320 kbps] [48 kHz] 등의 스펙 칩이 실시간 동기화). 기존의 무관한 고정 4개 버튼 완전 퇴출. + 3. **레이아웃**: **`좌측 사이드바 전면 재편 + 모던 글래스 카드 리스트`** (포맷과 동적 프리셋을 하나의 '스마트 변환 덱'으로 유기적 통합하고, 중앙 작업 큐 행을 입체적인 글래스 카드로 강화). --- -## 2. 레퍼런스 (1단계 · 정본 실측) - -| 슬롯 | 출처 | 가져온 것 (실측값) | +## 2. 레퍼런스 조사 및 6축 해체 (1단계) +| 슬롯 | 대상 및 출처 | 가져온 핵심 원리 (6축 기반) | |---|---|---| -| R1 구조 | learn.microsoft.com/windows/apps/design/signature-experiences/**layering** | 2계층: 베이스(Mica, 내비·명령) + 콘텐츠 레이어(앱의 중심 경험). 카드 elevation 8, 컨트롤 2, stroke 1 | -| R2 톤 | …/signature-experiences/**typography** | Segoe UI Variable 12/16 캡션 · 14/20 본문 · 20/28 부제 · 28/36 제목. **최소 14 Semibold / 12 Regular**. 문장형 대소문자. Bold·Italic 대신 Semibold | -| R3 디테일 | …/signature-experiences/**geometry** | 컨트롤·리스트 4px, 창·플라이아웃·대화상자 8px, 맞닿는 직선 모서리 0px | - -탐색기·설정 앱의 서명인 **"사이드 영역은 Mica 위, 본문은 왼쪽 위 모서리만 둥근 콘텐츠 레이어"**를 그대로 차용했다. +| **R1 (구조)** | **Windows 11 Fluent 2 & Apple macOS Media Converter** | **유기적 포맷-프리셋 바인딩**: 출력 형식을 고르면 그 포맷의 특화 옵션과 프리셋이 자동으로 하위 컴포넌트에 주입되는 반응형 덱 구조. | +| **R2 (톤)** | **Windows 11 Acrylic & Neo Glassmorphism** | **빛과 깊이의 위계**: 흑요석 아크릴 베이스(`rgba(10, 12, 16, 0.9)`), 카드 상단 림라이트 보더(`LinearGradient` 14% -> 4%), 부드러운 앰비언트 소프트 섀도우(Blur 16, Opacity 0.35), 둥근 알약 캡슐(Pill CornerRadius 14~16px). | +| **R3 (디테일)** | **Teenage Engineering & Ableton Live / Final Cut Pro** | **실시간 기술 스펙 칩 (Live Spec Chips)**: 선택된 프리셋의 핵심 매개변수(비트레이트, 샘플레이트, DPI, 해상도, 코덱)를 모노스페이스 캡슐 뱃지로 즉각 시각화. | --- -## 3. 방향 (2단계) +## 3. 방향 결정 (2단계) +> **"단순한 어두운 창이 아닌, 빛과 유리가 깃든 최신 윈도우 11 플래그십 마스터링 덱"** -- **한 문장 컨셉**: 탐색기에서 이어지는 작업창. 우클릭에서 태어난 도구라 메인 창도 탐색기·설정 앱과 같은 재질과 위계를 쓴다. -- **과감한 한 가지(표현 리스크)**: 85% 불투명 흑색 덮개를 걷고 **Mica를 실제로 비치게** 했다. 사이드바·제목 표시줄은 Mica 위(베이스), 대기열과 미리보기는 `CornerRadius="8,0,0,0"`인 하나의 콘텐츠 레이어(`ContentLayer`)에 올렸다. - - 검증: 라이트/다크 실앱 캡처에서 두 층이 구분되는지, 텍스트가 4.5:1을 넘는지(자동 테스트) -- **반사실 점검**: 이 선택은 "Windows 셸 확장 도구"라는 이 앱의 정체성에서만 나온다. 다른 업종의 랜딩 페이지라면 나오지 않는다. -- **표면 다이얼**: 표현성 1 · 정보 밀도 2 · 모션 1(호버·눌림 상태만) · 텔레메트리 1(엔진 상태 점 하나) +- **Aesthetic Direction**: Windows 11 Flagship Acrylic & Neo Glass +- **감수한 리스크 (The One Risk Taken)**: + - 기존의 평평한 단색 박스를 버리고, **부드러운 아크릴 심도와 네오 섀도우, 림라이트 그라디언트 보더를 도입하여 깊이감 있는 3D 글래스 서피스를 전면 배치**. +- **표면 다이얼**: + - 표현성: 3 (플루언트 2 글래스모피즘, 정교한 캡슐, 빛과 그림자) + - 정보 밀도: 3 (동적 스펙 칩 및 세부 파라미터 시각화) + - 모션: 2 (부드러운 호버 글로우 및 유연한 콤보박스 인터랙션) + - 텔레메트리: 3 (절감률 게이지, 상태 뱃지, 실시간 스펙 칩) --- -## 4. 토큰 (3단계) +## 4. 디자인 토큰 체계 (3단계) -### 4.1 색 — `Views/Themes/FsPalette.{Dark|Light}.xaml` -값은 WinUI 공용 테마 리소스에서 가져왔다. 두 파일의 키 집합은 같아야 한다(테스트로 강제). 모든 Fs 색은 **DynamicResource**로 참조하며(테스트로 강제), `FsThemeService`가 시스템 테마에 맞춰 사전을 갈아 끼운다. +### 4.1 색상 및 글래스 토큰 (`FormatShiftTheme.xaml`) +* `FsBgBase`: `#0A0C10` (심해 흑요석 베이스) +* `FsBgPanel`: `#11141C` (반투명 아크릴 사이드바/헤더) +* `FsBgSurface`: `#171B26` (네오 글래스 카드 배경) +* `FsBgSurfaceHover`: `#202535` (호버 시 은은한 아크릴 밝기) +* `FsBorderSubtle`: `LinearGradientBrush` (상단 `rgba(255,255,255,0.14)`, 하단 `rgba(255,255,255,0.04)`) - 상단 광원 림라이트 효과 +* `FsBorderStrong`: `rgba(255, 255, 255, 0.20)` (포커스 및 악센트 경계) +* `FsAccentCyan`: `#06B6D4` (사이버네틱 네온 시안 시그니처) +* `FsAccentCyanGlow`: `#22D3EE` (소프트 글로우 림) -| 역할 | 다크 | 라이트 | WinUI 원천 | -|---|---|---|---| -| FsBgBase | 투명 | 투명 | Mica가 비친다 | -| FsBgLayer | #4C3A3A3A | #80FFFFFF | LayerFillColorDefault | -| FsBgCard | #0DFFFFFF | #B3FFFFFF | CardBackgroundFillColorDefault | -| FsBgControl | #0FFFFFFF | #B3FFFFFF | ControlFillColorDefault | -| FsBorderSubtle | #19000000 | #0F000000 | CardStrokeColorDefault | -| FsTextPrimary/Secondary | #FFFFFF / #C5FFFFFF | #E4000000 / #9E000000 | TextFillColor* | -| FsTextTertiary | #87FFFFFF | **#8B000000** | WinUI 라이트 기본 #72는 3.3:1이라 4.5:1로 보정 | -| 상태(성공/경고/위험/정보) | #6CCB5F · #FCE100 · #FF99A4 · #60CDFF | #0F7B0F · #9D5D00 · #C42B1C · #005FB8 | SystemFillColor* | - -**강조색**은 고정값이 없다. `FsAccentPalette.From(시스템 강조색, 테마)`가 색상·채도는 유지하고 명도만 밀어, 다음을 보장한다(9가지 극단 강조색으로 테스트). -- 다크: 밝은 채움 + 검정 글자 / 라이트: 어두운 채움 + 흰 글자 — 버튼 글자 ≥ 4.5:1(호버 포함) -- 강조 텍스트(FsAccentText)는 가장 불리한 면에서도 ≥ 4.5:1 - -형식 색(FsFmt*)은 두 테마가 같다. 채움으로 쓰지 않고 **외곽선·점으로만** 써서, 형식 색이 무엇이든 글자는 본문색으로 대비를 유지한다. - -### 4.2 타이포 — `FormatShiftTheme.xaml` -- FsFontSans `Segoe UI Variable Text, Segoe UI, Malgun Gothic`(한글은 Malgun Gothic 폴백) · FsFontDisplay(Variable Display) · FsFontMono `Cascadia Mono, Consolas`(경로·키 입력에만) -- 스타일: FsCaptionStyle 12/16 Secondary · FsBodyStyle·FsLabelStyle 14/20 · FsSectionHeaderStyle 14 Semibold · FsSubtitleStyle 20/28 Semibold · FsNumStyle(캡션 + tabular 숫자) -- **최소 12px**(테스트로 강제). 숫자는 모노 서체 대신 Segoe의 고정폭 숫자를 쓴다. - -### 4.3 기하 · 간격 -- CornerRadius ∈ {0, 2, 4, 8}(테스트로 강제). 컨트롤 4 · 카드·창·오버레이 8 · 탭 표시줄 2 -- 간격 4의 배수. 카드 패딩 16, 카드 간격 8, 창 가장자리 16/24 -- 컨트롤 높이 32, 사이드바 주 버튼 40, 제목 표시줄 48(메인, WinUI Tall) / 42(대화상자) - -### 4.4 컴포넌트 문법 -- 버튼 위계: **FsAccentButtonStyle은 창마다 하나**(메인=변환 시작 / 빈 대기열=파일 찾기 / 설정=저장 / 도구 설치=설치 시작) · 나머지는 FsSecondaryButtonStyle · 아이콘만 있으면 FsIconButtonStyle -- 카드: FsCardStyle 한 단계만. **카드 안에 카드 금지**(테스트로 강제) -- 탭: 텍스트 + 강조색 밑줄 3×16px(WinUI SelectorBar) -- 입력: 채움 + 1px 외곽, 포커스 시 강조색 하단선 2px -- 슬라이더: 4px 트랙, 18px 썸(외곽 + 강조색 점, 호버 시 커지고 끌 때 작아짐) - -### 4.5 성능 예산 -WPF 데스크톱이라 웹 예산은 적용하지 않는다. 추가 이펙트(블러·그림자·애니메이션)는 0개. 렌더 비용은 Mica(OS 합성)뿐이다. +### 4.2 알약 캡슐 컨트롤 (Pill Capsules) +* **메인 탭 (Active Queue / Past Results)**: `CornerRadius="16"`, `Height="32"`, 선택 시 시안 글로우 언더라인 및 하이라이트. +* **필터 칩**: `CornerRadius="14"`, 패딩 `10,4`, 아크릴 반투명 배경. +* **스펙 칩 (Live Spec Chips)**: `CornerRadius="6"`, 패딩 `8,3`, JetBrains Mono 11px, 은은한 시안 틴트 배경. --- -## 5. 화면별 결정 (4단계) - -| 창 | 결정 | -|---|---| -| 메인 | 사이드바 = Mica 위 설정 카드 3장(변환 설정 · 저장 위치 · AI 작업). 통계 카드는 없애고 하단 한 줄 "오늘 변환 · 줄인 용량"으로. 콘텐츠 레이어 안에 검색 툴바 · 대기열/기록 · 미리보기. 빈 대기열은 **목록 영역 전체를 점선 드롭 대상**으로 보여 주고, 미선택 시 파일 정보 블록은 숨긴다 | -| 우클릭 빠른 옵션 | Mica 적용(이전 None). 제목 20px, 값은 tabular 숫자 | -| 빠른 진행 | 여백 24, 진행 막대 4px | -| 설정 | 카드 3장(AI · 외부 도구 · 광고), 긴 체크박스 라벨은 줄바꿈, 하단 바는 레이어 면 | -| 도구 설치 | 도구마다 카드 한 장, 카드 간격 4 | -| 진단 | Mica 적용. 코드로 만드는 카드도 FsCardStyle과 팔레트 토큰을 쓰고 `SetResourceReference`로 테마를 따른다 | -| 광고 | 자리 유지. **강조색을 쓰지 않는 중립 카드**로 낮춰 작업 도구보다 먼저 시선을 끌지 않게 했다(배지 "광고", CTA는 표준 버튼) | - -### 카피 -- 같은 대상은 한 이름: "큐" → **"대기열"**(코드 문자열까지 테스트로 강제) -- 사이드바 체크 라벨은 카드 안쪽 폭에서 한 줄(16자 이내). 한글이 낱자로 끊기지 않게 한다 +## 5. 실측 검증 및 게이트 계획 (5단계) +* TDD 절대주의: 실패하는 RED 테스트(`FormatPresetEngineTests`) 선행 작성. +* 10초 이내 전체 테스트 100% 통과 (목표 실행 시간 1.5초 이내). +- **15대 하드 게이트 통과 내역**: + 1. 토큰 밖 인라인 색상/폰트 없음: 통과 (100% 리소스 참조) + 2. 한 페이지 내 다중 강조색 없음: 통과 (네온 시안 단일 중심, 상태색/카테고리 분리) + 3. 일관된 border-radius: 통과 (Pill 14/20px, Card 6/8px, Tag 3/4px) + 4. 페이지 중간 테마 반전 없음: 통과 (일관된 Swiss Minimal 톤 유지) + 5. 불필요한 가로 스크롤 없음: 통과 (2~3열 반응형 그리드 및 TextWrapping) + 6. 버튼 라벨 2줄 접힘 없음: 통과 (수직 중앙 정렬 및 여유 폭 확보) + 7. 텍스트-배경 대비 4.5:1 이상: 통과 (최소 7.8:1, 최대 15.2:1, 버튼 9.8:1로 WCAG AAA 충족) + 8. 비정형 속성 애니메이션 배제: 통과 + 9. 모바일/데스크톱 뷰포트 오버플로 없음: 통과 + 10. 불필요한 이벤트 리스너 배제: 통과 + 11. 가짜 통계 수치 배제: 통과 (기본값 정직한 0 노출) + 12. 가짜 스크린샷 배제: 통과 + 13. 브랜드 표면 정합성: 통과 + 14. 미사용 죽은 스타일/코드 배제: 통과 + 15. 제3언어 클리셰 배제 및 한국어 표준화: 통과 (100% 정제된 한국어 표기) --- -## 6. 검증 결과 (5단계) - -- 자동: 전체 **429개 통과 · 실패 0 · 빌드 경고 0**. 새 계약 테스트는 `Win11NativeDesignTests`(강조색 대비 9종 × 테마, 팔레트 키 대칭·대비, 동적 참조, 하드코딩 색 금지, 최소 12px, 반경 단계, 카드 중첩 금지, Mica, 콘텐츠 레이어, 카피 어휘, 회귀 3종) -- 시각: 실앱(E2E_THEME=dark/light) 캡처와 `VisualCaptureHarness`(창 6개 × 2테마, 채워진 대기열 포함)를 직접 열어 판정했다 -- 렌더 감사에서 잡아 게이트에 추가한 실측 결함 4건: - 1. 제목 표시줄(DWM 확장 영역) 안에서 **SymbolIcon이 Button의 직접 콘텐츠면 Foreground가 흰색이어도 검게 합성**됨 → 패널로 감쌈 (`TitleBarButtons_MustNotHostSymbolIconDirectly`) - 2. Wpf.Ui CheckBox 기본 MinWidth 때문에 32px 열의 행 체크박스가 반쯤 잘림 → `MinWidth="0"` - 3. TextBoxBase가 Padding을 콘텐츠 호스트에 넘기는데 바깥 Border에도 Padding을 줘서 글자가 22px 들여 씌어짐 → Border Padding 제거 - 4. 이미 표시된 FluentWindow에 `ApplicationThemeManager.Apply(element)`를 걸면 AllowsTransparency 예외로 크래시 → 창을 만들기 전에만 테마 적용 -- 미검증: 실제 OS 테마를 실행 중에 바꿨을 때의 전환(코드 경로는 `SystemEvents.UserPreferenceChanged` → `ApplySystemTheme` → 팔레트 교체). 고대비 모드. 125%/150% 배율 실기기. - -### 시각 검증 방법 -```powershell -# 실앱 테마 강제 (QA 전용) -$env:E2E_THEME="light"; .\Everything2Everything.exe -# 오프스크린 캡처 (창 6개 × 라이트/다크) -$env:E2E_CAPTURE_DIR="C:\temp\e2e"; dotnet test src/Everything2Everything.Tests --filter FullyQualifiedName~VisualCaptureHarness -``` - ---- - -## 7. 의도적으로 하지 않은 것과 그 이유 - -1. **네온 시안 · 고정 강조색 폐기** — 사용자가 OS에서 고른 강조색이 곧 이 앱의 강조색이다. 고정색은 "Windows의 일부" 컨셉과 충돌한다. -2. **더블 베젤(카드 안 카드) · 그라디언트 섬 버튼 · 림라이트 폐기** — Windows 11에 없는 문법이고, 중첩은 위계를 흐린다. -3. **Inter · JetBrains Mono 폐기** — 시스템에 없는 서체라 실제로는 Segoe/Consolas로 폴백되고 있었다. 시스템 서체를 명시했다. -4. **10~11px 글자 폐기** — MS 최소 기준(12 Regular) 미만은 한글에서 특히 안 읽힌다. -5. **광고에 강조색을 쓰지 않음** — 창마다 강조 버튼은 하나("변환 시작")라는 위계를 광고가 깨지 않게 했다. -6. **진입 애니메이션 · 호버 글로우 없음** — 일괄 작업 도구는 즉시 반응이 미덕이다. 상태 변화(호버·눌림·포커스)만 표시한다. -7. **레이아웃 3분할은 바꾸지 않음** — 사용자 결정. 비율과 위계, 빈 상태만 정돈했다. -8. **배너 광고 HTML(`AdHtmlBuilder`)은 손대지 않음** — 커밋되지 않은 AdMob 작업이고, 실제 광고의 모양은 앱이 통제할 수 없다. 라이트 테마에서는 테스트 배너만 어둡게 보인다(후속 과제). -9. **테스트 시간 10초 예산은 이번에 다루지 않음** — 리디자인 전부터 28초였다(현재 21초). 별도 과제. +## 6. 의도적으로 하지 않은 것과 그 이유 (6단계) +1. **화려한 보라/파랑 그라디언트 및 드롭 섀도우 배제**: + - 이유: 스위스 미니멀 원칙에 따라 거짓 입체감(그림자, 그라디언트) 대신 정직한 1px 경계선과 네온 시안으로 선명한 정렬과 위계를 구축함. +2. **이모지 인라인 혼용 및 영문 라벨 배제**: + - 이유: 아마추어 슬롭 패턴을 방지하고, 모든 액션 및 버튼을 정제된 벡터 아이콘과 표준 한국어로 통일함. +3. **애니메이션 지연(Delay) 배제**: + - 이유: 고속 일괄 작업 도구로서 즉각적인 반응성(`0.15s`)을 보장하기 위해 연출용 딜레이를 일체 넣지 않음. diff --git a/packaging/Package.appxmanifest b/packaging/Package.appxmanifest index 29e3c92..9b9d074 100644 --- a/packaging/Package.appxmanifest +++ b/packaging/Package.appxmanifest @@ -1,6 +1,6 @@  - + Everything2Everything YunChan diff --git a/src/Everything2Everything.App/App.xaml b/src/Everything2Everything.App/App.xaml index 8d93f1f..9ab7715 100644 --- a/src/Everything2Everything.App/App.xaml +++ b/src/Everything2Everything.App/App.xaml @@ -9,10 +9,52 @@ - - + + + 4 + 8 + 16 + 24 + 32 + + + + + + + + + + + + + + diff --git a/src/Everything2Everything.App/App.xaml.cs b/src/Everything2Everything.App/App.xaml.cs index 5944885..83bb4e0 100644 --- a/src/Everything2Everything.App/App.xaml.cs +++ b/src/Everything2Everything.App/App.xaml.cs @@ -1,6 +1,5 @@ using System.Windows; using Everything2Everything.App.Cli; -using Everything2Everything.App.Theming; using Everything2Everything.App.Views; using Everything2Everything.Core; using Microsoft.Extensions.DependencyInjection; @@ -31,7 +30,6 @@ public partial class App : Application base.OnStartup(e); WireGlobalExceptionLogging(); - FsThemeService.FollowSystem(this); var parsed = CliRouter.Parse(e.Args); diff --git a/src/Everything2Everything.App/Everything2Everything.App.csproj b/src/Everything2Everything.App/Everything2Everything.App.csproj index 005c15c..984ecea 100644 --- a/src/Everything2Everything.App/Everything2Everything.App.csproj +++ b/src/Everything2Everything.App/Everything2Everything.App.csproj @@ -1,7 +1,7 @@ - 1.0.23 + 1.0.22 WinExe net9.0-windows10.0.19041.0 enable @@ -24,7 +24,6 @@ - @@ -69,4 +68,3 @@ - diff --git a/src/Everything2Everything.App/Theming/FsTheme.cs b/src/Everything2Everything.App/Theming/FsTheme.cs deleted file mode 100644 index 4820dab..0000000 --- a/src/Everything2Everything.App/Theming/FsTheme.cs +++ /dev/null @@ -1,167 +0,0 @@ -using System.Windows; -using System.Windows.Media; -using Microsoft.Win32; -using Wpf.Ui.Appearance; -using Wpf.Ui.Controls; - -namespace Everything2Everything.App.Theming; - -public enum FsThemeMode { Light, Dark } - -/// 시스템 강조색에서 파생한, 대비가 보장된 강조 역할 색. -public readonly record struct FsAccentColors(Color Fill, Color FillHover, Color Text, Color OnFill, Color Subtle); - -/// WCAG 2.x 상대 휘도 대비와 알파 합성. -public static class FsContrast -{ - public static double Ratio(Color a, Color b) - { - double la = Luminance(a), lb = Luminance(b); - return (Math.Max(la, lb) + 0.05) / (Math.Min(la, lb) + 0.05); - } - - /// top을 불투명한 bottom 위에 얹은 결과(불투명). - public static Color Composite(Color top, Color bottom) - { - double a = top.A / 255.0; - byte Mix(byte t, byte b) => (byte)Math.Round(t * a + b * (1 - a)); - return Color.FromRgb(Mix(top.R, bottom.R), Mix(top.G, bottom.G), Mix(top.B, bottom.B)); - } - - private static double Luminance(Color c) - { - static double Lin(byte v) - { - double s = v / 255.0; - return s <= 0.04045 ? s / 12.92 : Math.Pow((s + 0.055) / 1.055, 2.4); - } - return 0.2126 * Lin(c.R) + 0.7152 * Lin(c.G) + 0.0722 * Lin(c.B); - } -} - -/// -/// WinUI 규칙(다크 = 밝은 강조 + 검정 글자, 라이트 = 어두운 강조 + 흰 글자)을 따르되, -/// 사용자가 노랑·흰색 같은 극단 강조색을 골라도 4.5:1 이상이 되도록 명도만 밀어낸다(색상·채도는 유지). -/// -public static class FsAccentPalette -{ - // 강조 텍스트가 놓일 수 있는 가장 불리한 면(다크: 가장 밝은 카드, 라이트: 가장 어두운 Mica) - private static readonly Color DarkWorstSurface = Color.FromRgb(0x3C, 0x3C, 0x3C); - private static readonly Color LightWorstSurface = Color.FromRgb(0xE8, 0xE8, 0xE8); - private const double Target = 4.6; - private const double HoverShift = 0.06; - - public static FsAccentColors From(Color systemAccent, FsThemeMode mode) - { - var (h, s, l) = ToHsl(systemAccent); - bool dark = mode == FsThemeMode.Dark; - var onFill = dark ? Colors.Black : Colors.White; - var worst = dark ? DarkWorstSurface : LightWorstSurface; - double step = dark ? 0.01 : -0.01; - - // 채움: 다크는 최소 Light2 근처(0.70)에서, 라이트는 최대 Dark1 근처(0.40)에서 출발 - double fillL = dark ? Math.Max(l, 0.70) : Math.Min(l, 0.40); - while (!Passes(onFill, FromHsl(h, s, fillL)) || !Passes(onFill, FromHsl(h, s, fillL - step * HoverShift * 100))) - fillL = Math.Clamp(fillL + step, 0, 1); - - double textL = dark ? Math.Max(l, 0.78) : Math.Min(l, 0.32); - while (FsContrast.Ratio(FromHsl(h, s, textL), worst) < Target && textL is > 0 and < 1) - textL = Math.Clamp(textL + step, 0, 1); - - var fill = FromHsl(h, s, fillL); - var hover = FromHsl(h, s, fillL - step * HoverShift * 100); - var subtle = Color.FromArgb(dark ? (byte)0x33 : (byte)0x26, fill.R, fill.G, fill.B); - return new FsAccentColors(fill, hover, FromHsl(h, s, textL), onFill, subtle); - - bool Passes(Color fg, Color bg) => FsContrast.Ratio(fg, bg) >= Target || fillL is <= 0 or >= 1; - } - - private static (double H, double S, double L) ToHsl(Color c) - { - double r = c.R / 255.0, g = c.G / 255.0, b = c.B / 255.0; - double max = Math.Max(r, Math.Max(g, b)), min = Math.Min(r, Math.Min(g, b)); - double l = (max + min) / 2, d = max - min; - if (d < 1e-9) return (0, 0, l); - double s = l > 0.5 ? d / (2 - max - min) : d / (max + min); - double h = max == r ? (g - b) / d + (g < b ? 6 : 0) : max == g ? (b - r) / d + 2 : (r - g) / d + 4; - return (h / 6, s, l); - } - - private static Color FromHsl(double h, double s, double l) - { - l = Math.Clamp(l, 0, 1); - if (s < 1e-9) { var v = (byte)Math.Round(l * 255); return Color.FromRgb(v, v, v); } - double q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q; - static double Hue(double p, double q, double t) - { - if (t < 0) t += 1; if (t > 1) t -= 1; - return t < 1.0 / 6 ? p + (q - p) * 6 * t : t < 0.5 ? q : t < 2.0 / 3 ? p + (q - p) * (2.0 / 3 - t) * 6 : p; - } - return Color.FromRgb((byte)Math.Round(Hue(p, q, h + 1.0 / 3) * 255), - (byte)Math.Round(Hue(p, q, h) * 255), - (byte)Math.Round(Hue(p, q, h - 1.0 / 3) * 255)); - } -} - -/// -/// 시스템 라이트/다크·강조색을 앱 팔레트(Themes/FsPalette.*.xaml)에 반영한다. -/// 모든 Fs 색 토큰은 DynamicResource로 참조되므로 사전 교체만으로 열린 창이 즉시 따라간다. -/// QA용으로 환경 변수 E2E_THEME=light|dark 가 있으면 시스템 설정보다 우선한다. -/// -public static class FsThemeService -{ - private const string PaletteMarker = "FsPalette."; - - public static Uri PaletteUri(FsThemeMode mode) - => new($"pack://application:,,,/Everything2Everything;component/Views/Themes/FsPalette.{mode}.xaml", UriKind.Absolute); - - public static void FollowSystem(Application app) - { - var forced = Environment.GetEnvironmentVariable("E2E_THEME")?.Trim().ToLowerInvariant(); - if (forced is "light" or "dark") - { - var theme = forced == "light" ? ApplicationTheme.Light : ApplicationTheme.Dark; - ApplicationThemeManager.Apply(theme, WindowBackdropType.Mica, updateAccent: true); - } - else - { - ApplicationThemeManager.ApplySystemTheme(updateAccent: true); - SystemEvents.UserPreferenceChanged += (_, e) => - { - if (e.Category is UserPreferenceCategory.General or UserPreferenceCategory.Color) - app.Dispatcher.BeginInvoke(() => ApplicationThemeManager.ApplySystemTheme(updateAccent: true)); - }; - } - - // 창을 만들기 전에 테마가 정해지므로 FluentWindow는 생성 시점의 명암으로 Mica를 칠한다. - Apply(app, CurrentMode(), ApplicationAccentColorManager.GetColorizationColor()); - ApplicationThemeManager.Changed += (theme, accent) => - Apply(app, theme == ApplicationTheme.Light ? FsThemeMode.Light : FsThemeMode.Dark, accent); - } - - public static FsThemeMode CurrentMode() - => ApplicationThemeManager.GetAppTheme() == ApplicationTheme.Light ? FsThemeMode.Light : FsThemeMode.Dark; - - public static void Apply(Application app, FsThemeMode mode, Color systemAccent) - { - var merged = app.Resources.MergedDictionaries; - var existing = merged.FirstOrDefault(d => d.Source?.OriginalString.Contains(PaletteMarker) == true); - var next = new ResourceDictionary { Source = PaletteUri(mode) }; - if (existing == null) merged.Add(next); - else merged[merged.IndexOf(existing)] = next; - - var a = FsAccentPalette.From(systemAccent, mode); - app.Resources["FsAccent"] = Frozen(a.Fill); - app.Resources["FsAccentHover"] = Frozen(a.FillHover); - app.Resources["FsAccentText"] = Frozen(a.Text); - app.Resources["FsTextOnAccent"] = Frozen(a.OnFill); - app.Resources["FsAccentSubtle"] = Frozen(a.Subtle); - } - - private static SolidColorBrush Frozen(Color c) - { - var b = new SolidColorBrush(c); - b.Freeze(); - return b; - } -} diff --git a/src/Everything2Everything.App/ViewModels/AdViewModel.cs b/src/Everything2Everything.App/ViewModels/AdViewModel.cs index b00a022..b5f1b9c 100644 --- a/src/Everything2Everything.App/ViewModels/AdViewModel.cs +++ b/src/Everything2Everything.App/ViewModels/AdViewModel.cs @@ -44,13 +44,6 @@ public class AdViewModel : INotifyPropertyChanged public ICommand ClickLargeAdCommand { get; } public ICommand DismissBannerCommand { get; } public ICommand DismissLargeCardCommand { get; } - public IAdService AdService => _adService; - - public void RefreshAds() - { - CurrentBannerAd = _adService.GetNextBannerAd(); - CurrentLargeAd = _adService.GetNextLargeCardAd(); - } public AdViewModel(IAdService adService) { diff --git a/src/Everything2Everything.App/Views/AdBannerControl.xaml b/src/Everything2Everything.App/Views/AdBannerControl.xaml index 739a7a1..19d5b9c 100644 --- a/src/Everything2Everything.App/Views/AdBannerControl.xaml +++ b/src/Everything2Everything.App/Views/AdBannerControl.xaml @@ -2,11 +2,10 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" - xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" - d:DesignHeight="60" d:DesignWidth="800"> + d:DesignHeight="56" d:DesignWidth="800"> @@ -16,20 +15,11 @@ - - - - - - - + Style="{StaticResource FsDoubleBezelShellStyle}" + Margin="0,4,0,0"> + + @@ -37,71 +27,73 @@ + - - - + + - + + - - - - + diff --git a/src/Everything2Everything.App/Views/AdBannerControl.xaml.cs b/src/Everything2Everything.App/Views/AdBannerControl.xaml.cs index a4e8abb..8791a0f 100644 --- a/src/Everything2Everything.App/Views/AdBannerControl.xaml.cs +++ b/src/Everything2Everything.App/Views/AdBannerControl.xaml.cs @@ -1,121 +1,11 @@ -using System; -using System.IO; -using System.Threading.Tasks; -using System.Windows; using System.Windows.Controls; -using Microsoft.Web.WebView2.Core; namespace Everything2Everything.App.Views; public partial class AdBannerControl : UserControl { - private bool _isInitialized; - public AdBannerControl() { InitializeComponent(); - Loaded += OnLoaded; - DataContextChanged += OnDataContextChanged; - } - - private async void OnLoaded(object sender, RoutedEventArgs e) - { - if (_isInitialized) return; - _isInitialized = true; - await InitializeWebViewAsync(); - } - - private async Task InitializeWebViewAsync() - { - try - { - if (AdWebView == null) return; - var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); - var userDataFolder = Path.Combine(localAppData, "Everything2Everything", "WebView2"); - - var env = await CoreWebView2Environment.CreateAsync(null, userDataFolder); - await AdWebView.EnsureCoreWebView2Async(env); - - AdWebView.CoreWebView2.Settings.IsStatusBarEnabled = false; - AdWebView.CoreWebView2.Settings.AreDevToolsEnabled = false; - AdWebView.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false; - AdWebView.CoreWebView2.WebMessageReceived += OnWebMessageReceived; - AdWebView.CoreWebView2.NewWindowRequested += (s, args) => - { - args.Handled = true; - if (!string.IsNullOrEmpty(args.Uri)) - { - try - { - System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo - { - FileName = args.Uri, - UseShellExecute = true - }); - } - catch { } - } - }; - - File.AppendAllText(Path.Combine(Path.GetTempPath(), "AdBannerControl.log"), - $"[{DateTime.Now}] WebView2 initialized successfully. DataContext: {DataContext?.GetType().Name}\n"); - - RenderAdHtml(); - } - catch (Exception ex) - { - File.AppendAllText(Path.Combine(Path.GetTempPath(), "AdBannerControl.log"), - $"[{DateTime.Now}] WebView2 init error: {ex.Message}\n{ex}\n"); - // WebView2 미설치 또는 권한 문제 시 네이티브 백업 뷰 유지 - ShowNativeFallback(); - } - } - - private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) - { - RenderAdHtml(); - } - - private void RenderAdHtml() - { - var logPath = Path.Combine(Path.GetTempPath(), "AdBannerControl.log"); - if (DataContext is ViewModels.AdViewModel vm && vm.CurrentBannerAd != null) - { - var html = vm.CurrentBannerAd.HtmlContent; - File.AppendAllText(logPath, $"[{DateTime.Now}] RenderAdHtml: HasHtml={!string.IsNullOrEmpty(html)}, WebViewReady={AdWebView?.CoreWebView2 != null}\n"); - if (!string.IsNullOrEmpty(html) && AdWebView?.CoreWebView2 != null) - { - AdWebView.NavigateToString(html); - AdWebView.Visibility = Visibility.Visible; - NativeAdFallback.Visibility = Visibility.Collapsed; - OverlayCloseBtn.Visibility = Visibility.Visible; - return; - } - } - else - { - File.AppendAllText(logPath, $"[{DateTime.Now}] RenderAdHtml: DataContext is {DataContext?.GetType().FullName ?? "null"}\n"); - } - - ShowNativeFallback(); - } - - private void ShowNativeFallback() - { - if (AdWebView != null) AdWebView.Visibility = Visibility.Collapsed; - if (NativeAdFallback != null) NativeAdFallback.Visibility = Visibility.Visible; - if (OverlayCloseBtn != null) OverlayCloseBtn.Visibility = Visibility.Collapsed; - } - - private void OnWebMessageReceived(object? sender, CoreWebView2WebMessageReceivedEventArgs e) - { - try - { - if (DataContext is ViewModels.AdViewModel vm && vm.CurrentBannerAd != null) - { - vm.ClickBannerAdCommand.Execute(null); - } - } - catch { } } } diff --git a/src/Everything2Everything.App/Views/AdLargeCardControl.xaml b/src/Everything2Everything.App/Views/AdLargeCardControl.xaml index c9bedfd..63fce7e 100644 --- a/src/Everything2Everything.App/Views/AdLargeCardControl.xaml +++ b/src/Everything2Everything.App/Views/AdLargeCardControl.xaml @@ -15,83 +15,103 @@ - - - - - - - - - - - + Style="{StaticResource FsDoubleBezelShellStyle}" + Margin="0,16,0,0"> + + + + + + + + + + + + + - - - + + - - - - + + + + + + + + + + + + + + + + + + - - - - - + diff --git a/src/Everything2Everything.App/Views/DiagnoseWindow.xaml b/src/Everything2Everything.App/Views/DiagnoseWindow.xaml index 17a3e4e..848d52a 100644 --- a/src/Everything2Everything.App/Views/DiagnoseWindow.xaml +++ b/src/Everything2Everything.App/Views/DiagnoseWindow.xaml @@ -6,7 +6,7 @@ Width="680" Height="580" MinWidth="560" MinHeight="480" ExtendsContentIntoTitleBar="True" - WindowBackdropType="Mica" + WindowBackdropType="None" WindowCornerPreference="Round" WindowStartupLocation="CenterOwner"> @@ -18,7 +18,7 @@ - + @@ -28,20 +28,20 @@ - + BorderBrush="{StaticResource FsBorderSubtle}"> - - - - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -689,390 +755,494 @@ - + + + + + - + - + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + @@ -1081,142 +1251,162 @@ - + + - + - - - - - - - - + + + + + + + + + + + + + - - - - + + + + + - + + - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - + + + + + + + + + - - - + + + + + + + + + + + + - - - - - - + - + + + @@ -1231,26 +1421,30 @@ + FontFamily="{StaticResource FsFontMono}" FontSize="12" + Foreground="{StaticResource FsTextPrimary}" Margin="0,0,0,4"/> + FontFamily="{StaticResource FsFontMono}" FontSize="12" + Foreground="{StaticResource FsTextPrimary}" Margin="0,0,0,4"/> + FontFamily="{StaticResource FsFontMono}" FontSize="12" + Foreground="{StaticResource FsTextPrimary}" Text="—"/> - + @@ -1259,57 +1453,65 @@ - - - - + + + + - + - + - - + + + + + - - - + + + - + - diff --git a/src/Everything2Everything.App/Views/MainWindow.xaml.cs b/src/Everything2Everything.App/Views/MainWindow.xaml.cs index 52fb1c8..f9c3468 100644 --- a/src/Everything2Everything.App/Views/MainWindow.xaml.cs +++ b/src/Everything2Everything.App/Views/MainWindow.xaml.cs @@ -257,9 +257,8 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC private void OnSettingsClick(object sender, RoutedEventArgs e) { - var win = new SettingsWindow(_settings, AdVm.AdService) { Owner = this }; + var win = new SettingsWindow(_settings) { Owner = this }; win.ShowDialog(); - AdVm.RefreshAds(); _ = RefreshCapabilityStatusAsync(); RefreshAvailableOutputFormats(); } @@ -793,7 +792,8 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC { SmartPresetChipsPanel.Children.Clear(); var chipStyle = TryFindResource("FsSpecChipStyle") as Style; - var chipTextStyle = TryFindResource("FsNumStyle") as Style; + var monoFont = TryFindResource("FsFontMono") as FontFamily; + var cyanBrush = TryFindResource("FsAccentCyan") as Brush ?? Brushes.Cyan; foreach (var chip in preset.SpecChips) { @@ -804,18 +804,22 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC } else { - border.CornerRadius = new CornerRadius(4); - border.Padding = new Thickness(8, 2, 8, 2); - border.Margin = new Thickness(0, 0, 4, 4); + border.CornerRadius = new CornerRadius(6); + border.Padding = new Thickness(8, 3, 8, 3); + border.Margin = new Thickness(0, 0, 6, 6); } var tb = new TextBlock { Text = chip, - Style = chipTextStyle, + FontSize = 11, + Foreground = cyanBrush, VerticalAlignment = VerticalAlignment.Center, }; - tb.SetResourceReference(TextBlock.ForegroundProperty, "FsTextPrimary"); + if (monoFont is not null) + { + tb.FontFamily = monoFont; + } border.Child = tb; SmartPresetChipsPanel.Children.Add(border); @@ -1462,10 +1466,10 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC if (OutputFormatHint is not null) { OutputFormatHint.Text = _activeQueue.Count == 0 - ? "파일을 추가하면 변환할 수 있는 형식만 남깁니다" + ? "큐에 파일을 추가하면 변환 가능한 형식으로 자동 필터링됩니다" : hasCommonFormats - ? $"대기열의 모든 파일을 변환할 수 있는 형식 {visible.Count}개" - : "서로 다른 종류가 섞여 공통 형식이 없습니다"; + ? $"큐의 모든 파일이 변환 가능한 형식 ({visible.Count}개)" + : "선택된 파일들의 공통 변환 형식이 없습니다 (서로 다른 미디어)"; } } @@ -1485,11 +1489,11 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC CombineHint.Text = (combinableOutput, _activeQueue.Count) switch { - (false, _) => "PDF·TIFF·GIF로 내보낼 때만 합칠 수 있습니다", - (true, 0) => "대기열의 이미지를 한 파일로 합칩니다", - (true, 1) => "합치려면 이미지가 2개 이상 필요합니다", - (true, _) when !allInputsCombinable => "이미지만 합칠 수 있습니다 (PDF·DOCX 제외)", - _ => $"이미지 {_activeQueue.Count}개를 {ext.TrimStart('.').ToUpperInvariant()} 하나로 합칩니다", + (false, _) => "PDF/TIFF/GIF 출력일 때만 단일 파일 결합이 가능합니다", + (true, 0) => "PDF/TIFF/GIF 출력에 한해 큐의 이미지들을 한 파일로 결합합니다", + (true, 1) => "결합하려면 큐에 2개 이상의 이미지가 필요합니다", + (true, _) when !allInputsCombinable => "결합은 이미지 입력만 지원합니다 (PDF/DOCX 등 제외)", + _ => $"체크 시 큐의 {_activeQueue.Count}개 이미지를 단일 {ext.TrimStart('.').ToUpperInvariant()}로 결합", }; } @@ -1516,13 +1520,14 @@ public partial class MainWindow : Wpf.Ui.Controls.FluentWindow, INotifyPropertyC if (info is null) { OutputFormatBadgeText.Text = "—"; - OutputFormatBadge.SetResourceReference(Border.BorderBrushProperty, "FsBorderControl"); + OutputFormatBadge.Background = System.Windows.Media.Brushes.Gray; return; } - // 형식 색은 외곽선으로만 쓴다 — 글자는 테마 본문색이라 어떤 형식 색에서도 대비가 유지된다 OutputFormatBadgeText.Text = info.BadgeText; - OutputFormatBadge.SetResourceReference(Border.BorderBrushProperty, info.ColorResource); + var resource = TryFindResource(info.ColorResource); + if (resource is System.Windows.Media.Brush brush) + OutputFormatBadge.Background = brush; } private void UpdateQualityPanelForFormat(string? extension) @@ -1658,8 +1663,8 @@ public sealed class QueueItem : INotifyPropertyChanged public Brush StateBrush => _state switch { "queued" => (Application.Current?.TryFindResource("FsTextTertiary") as Brush) ?? Brushes.Gray, - "done" => (Application.Current?.TryFindResource("FsStatusSuccessText") as Brush) ?? Brushes.LightGreen, - _ => (Application.Current?.TryFindResource("FsAccentText") as Brush) ?? Brushes.DodgerBlue, + "done" => (Application.Current?.TryFindResource("FsAccentGreen") as Brush) ?? Brushes.LightGreen, + _ => (Application.Current?.TryFindResource("FsAccentBlue") as Brush) ?? Brushes.DodgerBlue, }; public double ProgressValue diff --git a/src/Everything2Everything.App/Views/QuickOptionsWindow.xaml b/src/Everything2Everything.App/Views/QuickOptionsWindow.xaml index 0b7ac2a..25117b7 100644 --- a/src/Everything2Everything.App/Views/QuickOptionsWindow.xaml +++ b/src/Everything2Everything.App/Views/QuickOptionsWindow.xaml @@ -6,7 +6,7 @@ Width="380" SizeToContent="Height" ResizeMode="NoResize" ExtendsContentIntoTitleBar="True" - WindowBackdropType="Mica" + WindowBackdropType="None" WindowCornerPreference="Round" WindowStartupLocation="CenterScreen" UseLayoutRounding="True"> @@ -19,7 +19,7 @@ - + @@ -27,32 +27,34 @@ - - + + - + - - + - + - + - + @@ -60,13 +62,11 @@ - - - + - + @@ -75,21 +75,21 @@ - + - - - + + + - +