update at 2026-02-09 09:48:44

This commit is contained in:
douboer
2026-02-09 09:48:44 +08:00
parent 77a0c7b741
commit 49c70efed0
4 changed files with 244 additions and 38 deletions

View File

@@ -119,7 +119,10 @@
src="{{icons.expandIcon}}"
style="transform: rotate({{item.expanded ? '90deg' : '0deg'}})"
/>
<view class="category-name">{{item.category}}{{item.fonts.length}}</view>
<view class="category-name">{{item.category}}</view>
<view class="category-select-all" catchtap="onToggleSelectAllInCategory" data-category="{{item.category}}">
<image class="select-all-icon" src="{{item.allSelected ? icons.unselectAll : icons.selectAll}}" />
</view>
</view>
<view wx:if="{{item.expanded && item.fonts.length > 0}}" class="tree-vertical-line" />
<view wx:if="{{item.expanded}}" class="font-list select-font-list">
@@ -134,15 +137,12 @@
<view class="font-item-name">{{font.name}}</view>
<view class="font-item-actions">
<view class="font-checkbox" bindtap="onToggleFont" data-font-id="{{font.id}}">
<view class="checkbox-wrapper {{font.selected ? 'checked' : ''}}">
<image wx:if="{{font.selected}}" class="checkbox-icon-sm" src="{{icons.checkboxChecked}}" />
</view>
<image class="checkbox-icon-sm" src="{{font.selected ? icons.checkboxChecked : icons.checkbox}}" />
</view>
<view class="favorite-btn" bindtap="onToggleFavorite" data-font-id="{{font.id}}">
<image
class="favorite-icon"
src="{{icons.favoriteIcon}}"
style="opacity: {{font.isFavorite ? '1' : '0.3'}}"
src="{{font.isFavorite ? icons.favoriteRedIcon : icons.favoriteIcon}}"
/>
</view>
</view>
@@ -154,19 +154,19 @@
<!-- 已收藏字体 -->
<view class="favorite-selection">
<view class="section-title">已收藏</view>
<view class="favorite-header">
<view class="section-title">已收藏</view>
</view>
<scroll-view class="font-tree favorite-list" scroll-y>
<view wx:for="{{favoriteFonts}}" wx:key="id" class="font-item favorite-font-item">
<image class="font-item-icon" src="{{icons.fontIcon}}" />
<view class="font-item-name">{{item.name}}</view>
<view class="font-item-actions">
<view class="font-checkbox" bindtap="onToggleFont" data-font-id="{{item.id}}">
<view class="checkbox-wrapper {{item.selected ? 'checked' : ''}}">
<image wx:if="{{item.selected}}" class="checkbox-icon-sm" src="{{icons.checkboxChecked}}" />
</view>
<image class="checkbox-icon-sm" src="{{item.selected ? icons.checkboxChecked : icons.checkbox}}" />
</view>
<view class="favorite-btn" bindtap="onToggleFavorite" data-font-id="{{item.id}}">
<image class="favorite-icon" src="{{icons.favoriteIcon}}" />
<image class="favorite-icon" src="{{icons.favoriteRedIcon}}" />
</view>
</view>
</view>
@@ -175,6 +175,11 @@
</view>
</view>
<!-- 版权说明 -->
<view class="copyright-footer">
@版权说明仅SVG和PNG分享无TTF下载如侵权反馈douboer@gmail.com
</view>
<!-- 颜色选择器弹窗 -->
<view wx:if="{{showColorPicker}}" class="color-picker-modal" bindtap="onHideColorPicker">
<view class="color-picker-content" catchtap="onStopPropagation">