-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(theme): [crop] refactor crop theme vars #2245
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ | |
* | ||
*/ | ||
|
||
.component-css-vars-crop() { | ||
.inject-Crop-vars() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistent function naming detected. The function naming convention change from
🔗 Analysis chainFunction name change looks good, verify consistency. The function name change from To ensure this naming convention is applied consistently across the project, run the following script: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistency in function naming across theme files
# Test: Search for similar function names in other theme files
rg --type less -g 'packages/theme/src/**/*.less' '\.inject-[A-Z][a-zA-Z]+-vars\(\)'
# Test: Check for any remaining old-style function names
rg --type less -g 'packages/theme/src/**/*.less' '\.component-css-vars-[a-z]+\(\)'
Length of output: 11296 |
||
// 弹窗蒙层的背景色,实际为该值的0.5的透明度 | ||
--ti-crop-modal-bg-color: var(--ti-common-color-dark, #000); | ||
--tv-Crop-modal-bg-color: var(--tv-color-bg-mask); | ||
// 设置裁剪框在图片正中心加号背景色 | ||
--ti-crop-center-bg-color: var(--ti-common-color-icon-graybg-disabled, #c2c2c2); | ||
--tv-Crop-center-bg-color: var(--tv-color-bg-control); | ||
// 弹窗裁剪框的背景色,实际为该值的0.1透明度 | ||
--ti-crop-face-bg-color: var(--ti-common-color-light, #ffffff); | ||
--tv-Crop-face-bg-color: var(--tv-color-bg-secondary); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
.inject-Crop-vars()
method not foundThe
.inject-Crop-vars()
method referenced inpackages/theme/src/crop/index.less
does not have an implementation in the codebase. Please ensure that this method is properly defined and injects all necessary CSS variables.🔗 Analysis chain
Verify the implementation of
.inject-Crop-vars()
The change from
.component-css-vars-crop()
to.inject-Crop-vars()
appears to be part of a larger refactoring effort to standardize naming conventions. This change looks good, but it's important to ensure that the new method injects all necessary CSS variables correctly.Please run the following script to verify the implementation of the new method:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 373