Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FECSky committed Nov 18, 2023
2 parents e47f38a + 18ac1a6 commit defb224
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/miui_res.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
git add .
git commit -m "${commit_msg}" || true
git push || true
git_SHA=$(git rev-parse --short HEAD)
cd ${GITHUB_WORKSPACE}
mkdir -p temp/res/
cp -rf /tmp/git_push ./temp/res/drawable-xxhdpi/
Expand All @@ -40,6 +41,7 @@ jobs:
echo "md5=`md5sum ./iconsrepo.tar.xz|cut -d ' ' -f1`" >> ./iconsrepo.ini
echo "theme_name=主图标仓库" >> ./iconsrepo.ini
echo "theme_version=$(TZ=':Asia/Shanghai' date '+%Y%m%d%H%M')" >> ./iconsrepo.ini
echo "git_SHA=$git_SHA" >> ./iconsrepo.ini
#curl -T iconsrepo.tar.xz -u ${{secrets.coding_password}} "https://miuiicons-generic.pkg.coding.net/icons/hyper/iconsrepo.tar.xz?version=latest"
curl -T iconsrepo.ini -u ${{secrets.coding_password}} "https://miuiicons-generic.pkg.coding.net/icons/hyper/iconsrepo.ini?version=latest"
curl -T iconscount.txt -u ${{secrets.coding_password}} "https://miuiicons-generic.pkg.coding.net/icons/hyper/iconscount.txt?version=latest"
Expand Down
Binary file added icons/com.github.tvbox.osc.tk/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/com.github.tvbox.osc.tk/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/com.kingpoint.gmcchh/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/com.kingpoint.gmcchh/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
<Var name="hour_angle_raw" expression="#hour12 * 30 + #minute/2"/>
<Var name="minute_angle_raw" expression="#minute * 6"/>
<Var name="needSet" expression="1"/>
<!-- module -->
<FolmeState name="h_state_init" rotation="#hour_angle_raw - 360/12"/>
<FolmeState name="h_state_end" rotation="#hour_angle_raw"/>

<FolmeState name="m_state_init" rotation="#minute_angle_raw - 180"/>
<FolmeState name="m_state_end" rotation="#minute_angle_raw"/>

<FolmeConfig name="state_config" property="rotation" ease="6,1000" fromSpeed="0"/>

<Var expression="#minute" threshold="1">
<Trigger condition="#needSet">
Expand All @@ -18,11 +26,14 @@
<!-- control -->
<ExternalCommands>
<!-- 首次使用主题、解锁、返回桌面连续按home键切屏时,将动画播放到最后一帧 -->
<Trigger action="init,present,back_home_cancel">
<FrameRateCommand rate="60"/>
<FrameRateCommand rate="0" delay="50"/>
<FolmeCommand target="h" states="'h_state_end'" command="setTo" config="'state_config'" />
<FolmeCommand target="m" states="'m_state_end'" command="setTo" config="'state_config'" />
<Trigger action="init,present,back_home_cancel,resume">
<FrameRateCommand rate="5"/>
<!-- 2023/10/31:需要加上延迟,否则FolmeCommand执行时states未获取正确的值会导致指针位置错误(先调整日期,再调整时间必现 -->
<MultiCommand delay="50">
<FolmeCommand target="h" states="'h_state_end'" command="setTo" config="'state_config'" />
<FolmeCommand target="m" states="'m_state_end'" command="setTo" config="'state_config'" />
<FrameRateCommand rate="0" delay="50"/>
</MultiCommand>
</Trigger>
<!-- 退出APP返回桌面的瞬间 -->
<Trigger action="back_home_start">
Expand All @@ -40,14 +51,7 @@
<FolmeCommand target="m" states="'m_state_init','m_state_end'" command="fromTo" config="'state_config'" />
</Trigger>
</ExternalCommands>
<!-- module -->
<FolmeState name="h_state_init" rotation="#hour_angle_raw - 360/12"/>
<FolmeState name="h_state_end" rotation="#hour_angle_raw"/>

<FolmeState name="m_state_init" rotation="#minute_angle_raw - 180"/>
<FolmeState name="m_state_end" rotation="#minute_angle_raw"/>

<FolmeConfig name="state_config" property="rotation" ease="6,1000" fromSpeed="0"/>

<Image x="351/2" y="351/2" align="center" alignV="center" src="bg.png" />

Expand Down

0 comments on commit defb224

Please sign in to comment.