-
Notifications
You must be signed in to change notification settings - Fork 310
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
feat(theme/datasource&setting): change datasource and setting panel theme variable #927
Changes from all commits
57da42f
4111195
d1fb8d8
cb17033
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 |
---|---|---|
|
@@ -152,7 +152,7 @@ export default { | |
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
color: var(--ti-lowcode-base-gray-90); | ||
color: var(--te-common-text-primary); | ||
.item-name { | ||
display: flex; | ||
align-items: center; | ||
|
@@ -171,6 +171,9 @@ export default { | |
height: 16px; | ||
margin-top: 6px; | ||
color: var(--ti-lowcode-datasource-toolbar-more-hover-color); | ||
&:hover { | ||
color: var(--ti-lowcode-toolbar-icon-color); | ||
} | ||
Comment on lines
+174
to
+176
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. 🛠️ Refactor suggestion Consider using a common variable for hover state While the hover state addition improves user interaction, the color variable Consider replacing it with a common variable: &:hover {
- color: var(--ti-lowcode-toolbar-icon-color);
+ color: var(--te-common-icon-hover-color);
}
|
||
} | ||
} | ||
} | ||
|
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
Color variable standardization needed across multiple components
The search results reveal extensive usage of specific color variables with the
--ti-lowcode-
prefix across the codebase. Similar to the change in the review, many of these could be standardized to use common color variables. Key patterns found:Locations needing attention:
packages/layout/src/DesignSettings.vue
: Uses specific panel color variablespackages/toolbars/**/src/*.vue
: Multiple toolbar-specific color variablespackages/plugins/**/src/*.vue
: Component-specific color variablespackages/settings/**/src/*.vue
: Multiple setting-specific color variablespackages/common/component/*.vue
: Common component color variables🔗 Analysis chain
Color variable change aligns with theme standardization
The change from
--ti-lowcode-dialog-font-color
to--te-common-text-primary
aligns well with the PR's objective of standardizing variables across themes.Let's verify if there are other similar color variables that could be standardized:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 87
Script:
Length of output: 66125