🚀 OShin New CI Build!
feat(LiquidGlass): 添加阴影效果并更新默认高光样式
本次提交为 组件引入了阴影效果,并修改了默认的高光样式,使其视觉表现更加丰富和柔和。
---
### 🚀 主要变更
#### 1. ✨ 阴影支持 ( & )
- 新增了数据类 用于定义阴影的各个属性:
- : 类型 (默认 )
- : 类型 (默认 )
- 在 中添加了新的 属性,允许为每个 元素配置阴影。
- 渲染节点 现在会读取这些样式,并将其应用于图形层以高效地绘制阴影。
#### 2. 🎨 高光样式更新 ()
- 默认高光效果已调整,以获得更好的视觉融合效果:
- 针对 和 :
- 默认 从 变更为 。
- 默认 从 变更为 。
#### 3. ⚙️ 工作流 ()
> 格式微调:移除了工作流通知消息中 周围多余的反引号,以修正 CI 的输出格式。
🔗 查看本次提交
feat(LiquidGlass): 添加阴影效果并更新默认高光样式
本次提交为 组件引入了阴影效果,并修改了默认的高光样式,使其视觉表现更加丰富和柔和。
---
### 🚀 主要变更
#### 1. ✨ 阴影支持 ( & )
- 新增了数据类 用于定义阴影的各个属性:
- : 类型 (默认 )
- : 类型 (默认 )
- 在 中添加了新的 属性,允许为每个 元素配置阴影。
- 渲染节点 现在会读取这些样式,并将其应用于图形层以高效地绘制阴影。
#### 2. 🎨 高光样式更新 ()
- 默认高光效果已调整,以获得更好的视觉融合效果:
- 针对 和 :
- 默认 从 变更为 。
- 默认 从 变更为 。
#### 3. ⚙️ 工作流 ()
> 格式微调:移除了工作流通知消息中 周围多余的反引号,以修正 CI 的输出格式。
🔗 查看本次提交
GitHub
feat(LiquidGlass): 添加阴影效果并更新默认高光样式 · suqi8/OShin@1125ecd
本次提交为 `LiquidGlass` 组件引入了**阴影效果**,并**修改了默认的高光样式**,使其视觉表现更加丰富和柔和。
---
### 🚀 主要变更
#### 1. ✨ **阴影支持 (`GlassShadow.kt` & `GlassStyle.kt`)**
- 新增了数据类 `GlassShadow` 用于定义阴影的各个属性:
- **`elevati...
---
### 🚀 主要变更
#### 1. ✨ **阴影支持 (`GlassShadow.kt` & `GlassStyle.kt`)**
- 新增了数据类 `GlassShadow` 用于定义阴影的各个属性:
- **`elevati...
🚀 OShin New CI Build!
Refactor(UI): Update Card color parameter and CPU Freq UI
This commit updates the library to version .
It also refactors the usage of the composable across multiple files to use the new parameter instead of the deprecated parameter.
Additionally, the CPU Frequency () screen has been updated:
- Replaced Haze blur effect with for the TopAppBar and icon buttons (Back).
- Improved the logic for fetching CPU frequencies by using and for concurrent operations.
- Pull-to-refresh mechanism is now triggered by changes in an state variable rather than directly observing .
- Cleaned up some unused imports and simplified state management.
Key changes:
- : Updated version to .
- Various UI files:
- Changed to in:
-
-
-
-
-
-
-
- :
- Removed Haze library dependencies and usage.
- Implemented for the TopAppBar background and back button.
- now uses and to fetch frequencies for each core concurrently.
- Refresh logic now relies on an .
- Removed unused , , and related blur configurations.
- Back button is now a with and modifiers instead of .
- :
- Removed preference check as is now used for background effects.
- TopAppBar color is set to to allow to show through.
🔗 查看本次提交
Refactor(UI): Update Card color parameter and CPU Freq UI
This commit updates the library to version .
It also refactors the usage of the composable across multiple files to use the new parameter instead of the deprecated parameter.
Additionally, the CPU Frequency () screen has been updated:
- Replaced Haze blur effect with for the TopAppBar and icon buttons (Back).
- Improved the logic for fetching CPU frequencies by using and for concurrent operations.
- Pull-to-refresh mechanism is now triggered by changes in an state variable rather than directly observing .
- Cleaned up some unused imports and simplified state management.
Key changes:
- : Updated version to .
- Various UI files:
- Changed to in:
-
-
-
-
-
-
-
- :
- Removed Haze library dependencies and usage.
- Implemented for the TopAppBar background and back button.
- now uses and to fetch frequencies for each core concurrently.
- Refresh logic now relies on an .
- Removed unused , , and related blur configurations.
- Back button is now a with and modifiers instead of .
- :
- Removed preference check as is now used for background effects.
- TopAppBar color is set to to allow to show through.
🔗 查看本次提交
GitHub
Refactor(UI): Update Card color parameter and CPU Freq UI · suqi8/OShin@e23943f
This commit updates the `Miuix KMP` library to version `0.5.0`.
It also refactors the usage of the `Card` composable across multiple files to use the new `colors` parameter instead of the deprecate...
It also refactors the usage of the `Card` composable across multiple files to use the new `colors` parameter instead of the deprecate...
🚀 OShin New CI Build!
Refactor(cpufreq): Remove redundant assignment
The line within the in was redundant because the effect is triggered when becomes . This commit removes the unnecessary assignment.
🔗 查看本次提交
Refactor(cpufreq): Remove redundant assignment
The line within the in was redundant because the effect is triggered when becomes . This commit removes the unnecessary assignment.
🔗 查看本次提交
GitHub
Refactor(cpufreq): Remove redundant `isRefreshing` assignment · suqi8/OShin@1acdf62
The line `isRefreshing = true` within the `LaunchedEffect` in `cpufreq.kt` was redundant because the effect is triggered when `isRefreshing` becomes `true`. This commit removes the unnecessary assi...
🚀 OShin New CI Build!
Refactor(FunSwich): Improve interaction and decouple switch visual
This commit refactors the component and its underlying and visual components.
Key Changes:
- :
- Replaced with a local implementation.
- Refactor:
- The entire (row) is now the clickable area to toggle the switch.
- The handler in now manages calling with the new state.
- The visual component is now purely presentational and receives its state from . It no longer handles any direct user interaction (clicks or drags).
- helper composable was introduced to manage the layout of right-side actions alongside the visual .
- New Composable (Visual Only):
- A new, simplified composable is introduced.
- It's a purely visual component; its appearance (thumb position, track color) is determined solely by the and parameters passed to it.
- All interaction modifiers (, ) have been removed.
- Uses and for smooth transitions based on the state.
- and :
- now uses to determine dark/light mode for track colors, falling back to if mode is auto.
- (moved from and adapted):
- This component, previously part of , is now part of 's local implementation.
- The parameter is now directly used by its modifier to handle interactions for the entire component.
- Vertical padding in changed from to .
- and (moved from ):
- These supporting objects/classes are also moved to .
- :
- Removed and as they are now co-located with the implementation in .
This refactoring centralizes the interaction logic within (via ), making the visual component simpler and purely presentational. It also improves the user experience by making the entire row of tappable to toggle its state.
🔗 查看本次提交
Refactor(FunSwich): Improve interaction and decouple switch visual
This commit refactors the component and its underlying and visual components.
Key Changes:
- :
- Replaced with a local implementation.
- Refactor:
- The entire (row) is now the clickable area to toggle the switch.
- The handler in now manages calling with the new state.
- The visual component is now purely presentational and receives its state from . It no longer handles any direct user interaction (clicks or drags).
- helper composable was introduced to manage the layout of right-side actions alongside the visual .
- New Composable (Visual Only):
- A new, simplified composable is introduced.
- It's a purely visual component; its appearance (thumb position, track color) is determined solely by the and parameters passed to it.
- All interaction modifiers (, ) have been removed.
- Uses and for smooth transitions based on the state.
- and :
- now uses to determine dark/light mode for track colors, falling back to if mode is auto.
- (moved from and adapted):
- This component, previously part of , is now part of 's local implementation.
- The parameter is now directly used by its modifier to handle interactions for the entire component.
- Vertical padding in changed from to .
- and (moved from ):
- These supporting objects/classes are also moved to .
- :
- Removed and as they are now co-located with the implementation in .
This refactoring centralizes the interaction logic within (via ), making the visual component simpler and purely presentational. It also improves the user experience by making the entire row of tappable to toggle its state.
🔗 查看本次提交
GitHub
Refactor(FunSwich): Improve interaction and decouple switch visual · suqi8/OShin@c0840e3
This commit refactors the `FunSwich` component and its underlying `SuperSwitch` and visual `Switch` components.
**Key Changes:**
- **`FunSwich.kt`:**
- **Replaced `top.yukonga.miuix.kmp.extra...
**Key Changes:**
- **`FunSwich.kt`:**
- **Replaced `top.yukonga.miuix.kmp.extra...
🚀 OShin New CI Build!
Fix\(CI\): Correctly escape hyphen in commit message for Telegram
The `sed` command in the `android\.yml` workflow was updated to correctly escape the hyphen \(`\-`\) character\. Previously, it was missing from the set of characters to be escaped, which could lead to formatting issues when sending commit messages to Telegram\.
The character class in the `sed` substitution command was changed from `[\]\\[_*\(\)\~`\>\#\+\\\-\=\|\{\}\.\!\]` to `[\]\\[_*\(\)\~`\>\#\+\=\|\{\}\.\!\-` to include the hyphen\.
🔗 查看本次提交
Fix\(CI\): Correctly escape hyphen in commit message for Telegram
The `sed` command in the `android\.yml` workflow was updated to correctly escape the hyphen \(`\-`\) character\. Previously, it was missing from the set of characters to be escaped, which could lead to formatting issues when sending commit messages to Telegram\.
The character class in the `sed` substitution command was changed from `[\]\\[_*\(\)\~`\>\#\+\\\-\=\|\{\}\.\!\]` to `[\]\\[_*\(\)\~`\>\#\+\=\|\{\}\.\!\-` to include the hyphen\.
🔗 查看本次提交
GitHub
Fix(CI): Correctly escape hyphen in commit message for Telegram · suqi8/OShin@1518fdd
The `sed` command in the `android.yml` workflow was updated to correctly escape the hyphen (`-`) character. Previously, it was missing from the set of characters to be escaped, which could lead to ...
🚀 OShin New CI Build!
feat(Refactor): 全面重构 FunSwich 与 Card 组件以提升交互和可维护性
本次提交对 及其依赖的组件进行了深度重构,并引入了本地化的 组件,旨在统一UI、简化代码并改善用户交互。
## 核心变更
### 1. 交互与视觉解耦
- 本地化 : 移除了对 的外部依赖,替换为一个更符合当前需求的本地实现。
- 改进交互逻辑:
- 将整个 (即列表行) 作为可点击区域来切换开关状态,提升了用户操作的便捷性。
- 交互逻辑()被上移至 层面进行统一管理。
- 纯展示性 :
- 内部的 组件被重构为一个纯粹的视觉组件,其外观完全由外部传入的 和 状态驱动。
- 移除了所有手势交互修饰符(如 , ),使其职责更单一。
- 使用 和 实现平滑的开关状态过渡动画。
### 2. 组件本地化与样式统一
- 引入本地 : 新增了项目内的 Composable,替换了所有对外部库 的调用。
- 简化调用: 新的 组件内置了默认的 (如 和标准化的 ),极大地简化了应用内各个调用点的代码,并确保了卡片样式的一致性。
### 3. 模块化
- 文件迁移: 将原先位于 内的 及其附属的 和 类,迁移到独立的 文件中。
- 代码复用: 此举增强了 的模块化和复用性。
- 样式微调: 将 的垂直内边距从 调整为 ,使布局更紧凑。
### 4. 代码清理
- 移除冗余代码: 从 中删除了已迁移的 相关代码。
- 简化 : Composable 的实现被简化,统一了其内边距。
🔗 查看本次提交
feat(Refactor): 全面重构 FunSwich 与 Card 组件以提升交互和可维护性
本次提交对 及其依赖的组件进行了深度重构,并引入了本地化的 组件,旨在统一UI、简化代码并改善用户交互。
## 核心变更
### 1. 交互与视觉解耦
- 本地化 : 移除了对 的外部依赖,替换为一个更符合当前需求的本地实现。
- 改进交互逻辑:
- 将整个 (即列表行) 作为可点击区域来切换开关状态,提升了用户操作的便捷性。
- 交互逻辑()被上移至 层面进行统一管理。
- 纯展示性 :
- 内部的 组件被重构为一个纯粹的视觉组件,其外观完全由外部传入的 和 状态驱动。
- 移除了所有手势交互修饰符(如 , ),使其职责更单一。
- 使用 和 实现平滑的开关状态过渡动画。
### 2. 组件本地化与样式统一
- 引入本地 : 新增了项目内的 Composable,替换了所有对外部库 的调用。
- 简化调用: 新的 组件内置了默认的 (如 和标准化的 ),极大地简化了应用内各个调用点的代码,并确保了卡片样式的一致性。
### 3. 模块化
- 文件迁移: 将原先位于 内的 及其附属的 和 类,迁移到独立的 文件中。
- 代码复用: 此举增强了 的模块化和复用性。
- 样式微调: 将 的垂直内边距从 调整为 ,使布局更紧凑。
### 4. 代码清理
- 移除冗余代码: 从 中删除了已迁移的 相关代码。
- 简化 : Composable 的实现被简化,统一了其内边距。
🔗 查看本次提交
GitHub
feat(Refactor): 全面重构 FunSwich 与 Card 组件以提升交互和可维护性 · suqi8/OShin@9edfdc0
本次提交对 `FunSwich` 及其依赖的组件进行了深度重构,并引入了本地化的 `Card` 组件,旨在统一UI、简化代码并改善用户交互。
## 核心变更
### 1. `FunSwich` 交互与视觉解耦
- **本地化 `SuperSwitch`**: 移除了对 `top.yukonga.miuix.kmp.extra.SuperSwitch` 的外部依赖,替换为一个更符合当前需求...
## 核心变更
### 1. `FunSwich` 交互与视觉解耦
- **本地化 `SuperSwitch`**: 移除了对 `top.yukonga.miuix.kmp.extra.SuperSwitch` 的外部依赖,替换为一个更符合当前需求...
🚀 OShin New CI Build!
Refactor(UI): Replace SuperArrow with FunArrow
This commit replaces all instances of with a new composable.
Key Changes:
- New :
- Created which internally uses .
- now handles navigation via an optional parameter and . If is provided, it navigates to that route before executing the lambda.
- Added a drawable for the arrow icon, which is used by the underlying .
- UI Updates:
-
-
-
-
-
-
-
- (including renamed to )
-
-
-
-
-
-
- All instances of were replaced with .
This refactoring centralizes the arrow component logic within and standardizes its usage across the application, particularly for navigation-related actions.
🔗 查看本次提交
Refactor(UI): Replace SuperArrow with FunArrow
This commit replaces all instances of with a new composable.
Key Changes:
- New :
- Created which internally uses .
- now handles navigation via an optional parameter and . If is provided, it navigates to that route before executing the lambda.
- Added a drawable for the arrow icon, which is used by the underlying .
- UI Updates:
-
-
-
-
-
-
-
- (including renamed to )
-
-
-
-
-
-
- All instances of were replaced with .
This refactoring centralizes the arrow component logic within and standardizes its usage across the application, particularly for navigation-related actions.
🔗 查看本次提交
GitHub
Refactor(UI): Replace SuperArrow with FunArrow · suqi8/OShin@76e94c2
This commit replaces all instances of `SuperArrow` with a new `FunArrow` composable.
**Key Changes:**
- **New `FunArrow.kt`:**
- Created `FunArrow.kt` which internally uses `top.yukonga.miuix...
**Key Changes:**
- **New `FunArrow.kt`:**
- Created `FunArrow.kt` which internally uses `top.yukonga.miuix...
🚀 OShin New CI Build!
Refactor(UI): Update FunArrow component signature
- Changed parameter in to be optional (nullable).
- Changed parameter in to be optional (nullable).
This makes the component more flexible by not strictly requiring a or a for its usage.
🔗 查看本次提交
Refactor(UI): Update FunArrow component signature
- Changed parameter in to be optional (nullable).
- Changed parameter in to be optional (nullable).
This makes the component more flexible by not strictly requiring a or a for its usage.
🔗 查看本次提交
GitHub
Refactor(UI): Update FunArrow component signature · suqi8/OShin@4373140
- Changed `navController` parameter in `FunArrow` to be optional (nullable).
- Changed `category` parameter in `FunArrow` to be optional (nullable).
This makes the `FunArrow` component more flexib...
- Changed `category` parameter in `FunArrow` to be optional (nullable).
This makes the `FunArrow` component more flexib...
🚀 OShin New CI Build!
Refactor(UI): Improve text alignment in FunListItem
This commit refactors the composable to enhance the vertical alignment of its and text.
Key Changes:
- :
- Wrapped the composables for and within layouts.
- Applied to these es to ensure a minimum height (21.14.dp for title, 18.57.dp for summary).
- Set for the es to vertically center the within the specified minimum height.
This change aims to provide more consistent and visually appealing vertical positioning of the text elements, especially when only one of the title or summary is present.
🔗 查看本次提交
Refactor(UI): Improve text alignment in FunListItem
This commit refactors the composable to enhance the vertical alignment of its and text.
Key Changes:
- :
- Wrapped the composables for and within layouts.
- Applied to these es to ensure a minimum height (21.14.dp for title, 18.57.dp for summary).
- Set for the es to vertically center the within the specified minimum height.
This change aims to provide more consistent and visually appealing vertical positioning of the text elements, especially when only one of the title or summary is present.
🔗 查看本次提交
GitHub
Refactor(UI): Improve text alignment in FunListItem · suqi8/OShin@bd78df6
This commit refactors the `FunListItem` composable to enhance the vertical alignment of its `title` and `summary` text.
Key Changes:
- `BasicComponent.kt`:
- Wrapped the `Text` composables for...
Key Changes:
- `BasicComponent.kt`:
- Wrapped the `Text` composables for...
🚀 OShin New CI Build!
Refactor(FunSwich): Enhance Switch component with animations and improved structure
This commit significantly refactors the and related components.
Key Changes:
- :
- Component Overhaul:
- The core visual component is now purely presentational, driven entirely by its state and does not handle interaction events.
- Implemented a sticky stretch animation for the thumb:
- The thumb width animates (stretches and then shrinks) during the transition between checked and unchecked states.
- The thumb offset animation is coordinated with the width animation to create a more dynamic and engaging visual effect.
- is used to manage these animations.
- Added a subtle shadow to the thumb using for better visual depth and anti-aliasing.
- Track and thumb sizes are now more clearly defined.
- Animation duration for all transitions (thumb offset, width, colors) is standardized.
- Component:
- This component now acts as an intermediate layer that wraps the purely visual and integrates it with a (a row-like layout).
- The entire row is clickable to toggle the state, delegating the actual state change to the callback.
- Renamed internal composable to for clarity.
- Component (Top-Level):
- Remains the top-level composable responsible for state persistence using YukiHookAPI .
- Passes down the persisted state and callbacks to .
- :
- Parameter names clarified for better understanding of light/dark mode and checked/unchecked states.
- KDoc Documentation:
- Added and improved KDoc for all components (, , , , ) to better explain their purpose, parameters, and relationships.
- Clarified the separation of concerns: for data, for layout integration and unified click handling, and for pure visual representation and animation.
This refactoring aims to create a more robust, visually appealing, and well-structured Switch implementation with clearer separation of concerns and improved animations.
🔗 查看本次提交
Refactor(FunSwich): Enhance Switch component with animations and improved structure
This commit significantly refactors the and related components.
Key Changes:
- :
- Component Overhaul:
- The core visual component is now purely presentational, driven entirely by its state and does not handle interaction events.
- Implemented a sticky stretch animation for the thumb:
- The thumb width animates (stretches and then shrinks) during the transition between checked and unchecked states.
- The thumb offset animation is coordinated with the width animation to create a more dynamic and engaging visual effect.
- is used to manage these animations.
- Added a subtle shadow to the thumb using for better visual depth and anti-aliasing.
- Track and thumb sizes are now more clearly defined.
- Animation duration for all transitions (thumb offset, width, colors) is standardized.
- Component:
- This component now acts as an intermediate layer that wraps the purely visual and integrates it with a (a row-like layout).
- The entire row is clickable to toggle the state, delegating the actual state change to the callback.
- Renamed internal composable to for clarity.
- Component (Top-Level):
- Remains the top-level composable responsible for state persistence using YukiHookAPI .
- Passes down the persisted state and callbacks to .
- :
- Parameter names clarified for better understanding of light/dark mode and checked/unchecked states.
- KDoc Documentation:
- Added and improved KDoc for all components (, , , , ) to better explain their purpose, parameters, and relationships.
- Clarified the separation of concerns: for data, for layout integration and unified click handling, and for pure visual representation and animation.
This refactoring aims to create a more robust, visually appealing, and well-structured Switch implementation with clearer separation of concerns and improved animations.
🔗 查看本次提交
GitHub
Refactor(FunSwich): Enhance Switch component with animations and impr… · suqi8/OShin@dc8da5f
…oved structure
This commit significantly refactors the `FunSwich` and related `Switch` components.
**Key Changes:**
- **`FunSwich.kt`:**
- **`Switch` Component Overhaul:**
- The cor...
This commit significantly refactors the `FunSwich` and related `Switch` components.
**Key Changes:**
- **`FunSwich.kt`:**
- **`Switch` Component Overhaul:**
- The cor...
🚀 OShin New CI Build!
Refactor(UI): Add haptic feedback and enhance switch animation
This commit introduces haptic feedback to the and components, triggering a vibration when the switch toggle animation completes. It also refines the visual animation of the component.
Key Changes:
- & :
- Added an callback parameter to and .
- In , when the switch state changes, haptic feedback () is now performed via the callback of the underlying . This ensures the feedback aligns with the visual completion of the toggle.
- Updated documentation to reflect the new haptic feedback feature and the requirement for the permission in .
- (Visual Animation):
- Animation End Detection: Implemented to monitor the state. The callback is invoked when the animation transitions from running to finished.
- Overshoot Animation: Modified the keyframe animation to include an overshoot effect. The thumb now slightly moves past its final destination before settling, creating a more dynamic and springy feel.
- increased from 250ms to 300ms to accommodate the refined animation.
- New dp value introduced to control the extent of the overshoot.
- Removed from the thumb as its primary purpose was shadow, which is now handled implicitly or differently. The comment about antialiasing was also removed.
- Removed as it's no longer necessary.
These changes aim to improve the user experience by providing tactile feedback and a more polished visual animation for the switch components.
🔗 查看本次提交
Refactor(UI): Add haptic feedback and enhance switch animation
This commit introduces haptic feedback to the and components, triggering a vibration when the switch toggle animation completes. It also refines the visual animation of the component.
Key Changes:
- & :
- Added an callback parameter to and .
- In , when the switch state changes, haptic feedback () is now performed via the callback of the underlying . This ensures the feedback aligns with the visual completion of the toggle.
- Updated documentation to reflect the new haptic feedback feature and the requirement for the permission in .
- (Visual Animation):
- Animation End Detection: Implemented to monitor the state. The callback is invoked when the animation transitions from running to finished.
- Overshoot Animation: Modified the keyframe animation to include an overshoot effect. The thumb now slightly moves past its final destination before settling, creating a more dynamic and springy feel.
- increased from 250ms to 300ms to accommodate the refined animation.
- New dp value introduced to control the extent of the overshoot.
- Removed from the thumb as its primary purpose was shadow, which is now handled implicitly or differently. The comment about antialiasing was also removed.
- Removed as it's no longer necessary.
These changes aim to improve the user experience by providing tactile feedback and a more polished visual animation for the switch components.
🔗 查看本次提交
GitHub
Refactor(UI): Add haptic feedback and enhance switch animation · suqi8/OShin@1b6148f
This commit introduces haptic feedback to the `FunSwich` and `SuperSwitch` components, triggering a vibration when the switch toggle animation completes. It also refines the visual animation of the...