Repository navigation
TIOL Front‑End UI/UX Redesign PR Description/TIOL 前端 UI/UX 重设计 - #11
Closed
Ken709-mp4 wants to merge 8 commits into
Closed
Ken709-mp4 wants to merge 8 commits into
Ken709-mp4 wants to merge 8 commits into
Conversation
added 8 commits
August 30, 2026 15:31
… panels, custom menu bg color - Move star-rating filter (0–5) from searchbar into #color-filter dropdown panel. - Apply shared .glass liquid-glass style to color-filter, dialogs, preview panel, and selection bar. - Add Liquid Glass theme in Settings alongside Dark/Light. - Add custom menu background color picker, persisted via Tauri set_setting/get_setting. - Update zh-CN / en-US / messages locales.
…lose × - Add a small ✕ close button to #color-filter so users can make multiple selections without the panel closing.\n- Stop click events inside the panel from bubbling, preventing accidental close.\n- Fix clearSharedFilters to reset checkbox-based rating filter instead of setting .value on a <div>.\n- Update i18n (zh-CN/en-US/messages.js) with filterPanelClose.
… close × - Replace flat backgrounds with radial gradient and glassmorphism across sidebar, searchbar, cards, toolbars, statusbar.\n- Add hover/active transitions and scale effects to buttons and cards.\n- Add fadeIn/scaleIn entry animations for cards, dialogs, preview, and filter panel.\n- Remove the explicit ✕ close button from #color-filter.\n- Keep the existing toggle behavior: click 筛选 again to close the dropdown.\n- Clean up filterPanelClose i18n key and related listeners.
- Replace <select> dropdown for semantic/tag search with two pill buttons matching the filter panel style.\n- Add horizontal padding to .view so main content no longer stretches edge-to-edge.\n- Keep searchbar, toolbar, and statusbar spanning full width inside padded views.\n- Fix duplicate semantic-search-input id in HTML.
…boxes - Add left margin and max-width to .settings so the frame no longer hugs the left edge.\n- Make the edit-tag/confirm/rate dialogs more transparent (lighter glass).\n- Replace the rejects view rating dropdown with checkbox set inside #reject-cond-panel, matching the photos filter panel.\n- Share activeRatings Set between photos and rejects; update clear/reset logic.
renderFilterDots, renderRejectConds and renderRejectRatings run at module-load time with the default en-US locale. After initI18n() resolves the saved language and applyStaticI18n() updates static text, re-render these dynamic panels so the saved locale is reflected on first paint.
- Replace the Liquid-Glass-as-a-theme approach with a dedicated on/off toggle in Settings > Effects.\n- Persist the toggle in localStorage (tiol-fx-glass) and toggle the fx-glass class on body.\n- Map the legacy data-theme="liquid-glass" setting to dark + glass on for backward compatibility.\n- Update all CSS selectors from [data-theme="liquid-glass"] / .theme-liquid-glass to .fx-glass.\n- Add settings.fxGlass i18n key in zh-CN, en-US and regenerate messages.js.
Override light-theme variables on .sidebar so the navigation bar stays dark with light text regardless of the selected theme. Also keeps the active indicator and hover states readable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements an Apple‑style Liquid Glass visual redesign for the TIOL photo manager frontend. Changes include moving rating filters into dropdown panels, refactoring search‑bar controls into segmented buttons, adding the new Liquid Glass theme with custom menu background‑color support, and fixing locale switching for dynamically‑rendered content on application startup.
Major Changes
1. Filter Panel Refactoring
<select>element from the search bar and relocated rating controls inside the#color‑filterdropdown panel.activeRatingsSet logic.#reject‑cond‑panel.ratingFilterRejectsdropdown and legacyminRatinglogic; all rating filtering now consistently usesactiveRatings.2. Liquid Glass Visual Style
.glassLiquid Glass styling class across components:#color‑filter, dialog modals, preview panels, selection bars, sidebars, search bar, photo cards, toolbars and status bar.backdrop‑filterfrosted‑glass effects, semi‑transparent borders, and hover/active state transition animations..fx‑anim‑offutility class disables all animations.3. Settings Page Enhancements
invoke("set_setting")/invoke("get_setting")..settingsto eliminate edge‑clipping layout issues.4. Search‑Bar Controls
<select>dropdown with capsule‑style segmented buttons:.searchbar__mode‑segment/.searchbar__mode‑btn..viewcontent container to prevent content from touching window edges.5. Tag‑Editing Dialogs
6. Internationalization (i18n)
settings.themeLiquidGlass,settings.menuBgColorin:src/locales/zh‑CN.jsonsrc/locales/en‑US.jsonsrc/locales/messages.js(regenerated by runningnode scripts/gen‑messages.js)renderRejectConds(),renderFilterDots(),renderRejectRatings()previously hard‑coded toen‑USon module initialization.initI18n()loads persisted user language and runsapplyStaticI18n(), dynamic panels are re‑rendered, ensuring correct localization immediately after launch.Testing
npm run tauri devtest runs confirm the application launches normally and all UI changes function correctly.libonnxruntime.dylibmissing‑library panic for the AI engine is unrelated to these frontend modifications.Commit Log
ab38298feat: liquid‑glass UI redesign — rating filter moved into menu, unified glass panels, custom menu background colord4ec13efix(filter‑panel): keep dropdown open during selection, add explicit close × button67293ccfeat: liquid‑glass redesign v2 — gradients & animations, remove panel close ×9ddba34feat: searchbar segmented mode buttons + main content padding81997b9feat: settings layout padding, transparent edit dialogs, rejects rating checkboxes983750afix(i18n): re‑render dynamic locale content after startup language initialization摘要
本次 PR 对 TIOL 照片管理器的前端界面进行了一轮 Apple 风格的「液态玻璃」重设计:将星级筛选移入下拉面板、统一搜索栏控件为分段按钮、新增 Liquid Glass 主题与菜单背景色自定义,并修复了启动时动态内容的语言切换问题。
主要改动
1. 筛选面板重构
<select>移除,移入#color-filter下拉面板。activeRatingsSet。#reject-cond-panel内。ratingFilterRejects下拉框与minRating逻辑,统一使用activeRatings。2. 液态玻璃视觉风格
#color-filter、对话框、预览面板、选择栏、侧边栏、搜索栏、照片卡片、工具栏、状态栏等逐步应用.glass液态玻璃样式。backdrop-filter)、半透明边框、悬停/激活过渡动画。fx-anim-off类可关闭动画)。3. 设置页增强
invoke("set_setting")/invoke("get_setting")持久化到设置键。.settings的左边距与最大宽度,避免左侧贴边。4. 搜索栏控件
<select>替换为分段胶囊按钮(.searchbar__mode-segment/.searchbar__mode-btn)。.view增加左右内边距,避免内容贴到窗口边缘。5. 编辑标签菜单
6. 国际化
settings.themeLiquidGlass、settings.menuBgColor等 key 到:src/locales/zh-CN.jsonsrc/locales/en-US.jsonsrc/locales/messages.js(已运行node scripts/gen-messages.js重新生成)renderRejectConds()、renderFilterDots()、renderRejectRatings()在模块加载时使用默认en-US。initI18n()解析出保存的语言并调用applyStaticI18n()后,重新渲染这些动态面板,确保启动即显示正确语言。测试
npm run tauri dev,应用窗口正常打开,UI 改动生效。libonnxruntime.dylib缺失导致的 AI 引擎 panic,与本次前端改动无关。提交记录
ab38298feat: liquid-glass UI redesign — rating filter in menu, unified glass panels, custom menu bg colord4ec13efix(filter-panel): keep dropdown open while selecting, add explicit close ×67293ccfeat: liquid-glass redesign v2 — gradients, animations, remove filter close ×9ddba34feat: searchbar segmented mode buttons + content padding81997b9feat: settings padding, transparent edit dialog, rejects rating checkboxes983750afix(i18n): re-render dynamic locale content after startup language load