Skip to content

Commit

Permalink
feat: variable convergence in toolbar-lang
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanlid committed Feb 8, 2025
1 parent e90dbce commit a314ed0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/toolbars/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import entry from './src/Main.vue'
import metaData from './meta'
import './src/styles/vars.less'

export default {
...metaData,
Expand Down
15 changes: 15 additions & 0 deletions packages/toolbars/lang/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,18 @@ export default {
}
}
</script>
<style scoped lang="less">
.change-lang-box {
svg {
color: var(--te-toolbars-lang-color);
width: 18px;
height: 18px;
&:hover {
opacity: 0.75;
}
}
}
.icon {
color: var(--te-toolbars-lang-icon-color);
}
</style>
4 changes: 4 additions & 0 deletions packages/toolbars/lang/src/styles/vars.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:root {
--te-toolbars-lang-color: var(--te-common-text-primary);
--te-toolbars-lang-icon-color: var(--te-common-icon-primary);
}

0 comments on commit a314ed0

Please sign in to comment.