Add dark mode support (#16)

This commit is contained in:
AceDataCloud committed 2024-04-04 18:12:31 +00:00
1 parent ddef4cec2a
commit b8970e1373
46 files changed
+247 -166

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ export default defineComponent({
width: 2px;
height: 16px;
margin-top: 3px;
background-color: var(--el-color-black);
background-color: var(--el-text-color-primary);
animation: blink 1s infinite;
}
</style>
+7 -6
View File
@@ -34,7 +34,6 @@
</span>
<el-input
v-model="questionValue"
:rows="3"
:disabled="disabled"
class="input"
type="textarea"
@@ -143,6 +142,8 @@ export default defineComponent({
position: relative;
.input {
textarea {
height: auto;
max-height: 100px;
border: none;
background: none;
box-shadow: none;
@@ -165,7 +166,7 @@ export default defineComponent({
<style lang="scss" scoped>
.input-box {
width: 100%;
border: 1px solid #eee;
border: 1px solid var(--el-border-color);
border-radius: 10px;
background: none;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
@@ -175,7 +176,7 @@ export default defineComponent({
.btn-upload {
cursor: not-allowed;
.icon-attachment {
color: #eee;
color: var(--el-text-color-disabled);
}
}
}
@@ -195,20 +196,20 @@ export default defineComponent({
left: 10px;
.icon-attachment {
font-size: 14px;
color: #666;
color: var(--el-text-color-primary);
}
}
&.btn-send {
right: 15px;
&.disabled {
.icon-send {
color: #eee;
color: var(--el-text-color-disabled);
}
cursor: not-allowed;
}
.icon-send {
font-size: 16px;
color: #666;
color: var(--el-text-color-primary);
}
}
}
+3 -2
View File
@@ -25,8 +25,9 @@ export default defineComponent({
<style lang="scss" scoped>
.introduction-item {
font-size: 14px;
background-color: #eee;
color: #333;
background-color: var(--el-fill-color-extra-light);
color: var(--el-text-color-primary);
border: 1px solid var(--el-border-color-lighter);
padding: 10px 20px;
border-radius: 20px;
}
+1 -1
View File
@@ -158,7 +158,7 @@ export default defineComponent({
align-items: start;
.content {
background-color: var(--el-bg-color-page);
color: var(--el-color-black);
color: var(--el-text-color-primary);
border-bottom-left-radius: 0;
}
}
+8 -9
View File
@@ -130,23 +130,21 @@ export default defineComponent({
<style lang="scss" scoped>
.model-selector {
background-color: #ececf1;
background-color: var(--el-bg-color-page);
padding: 7px 6px;
border-radius: 15px;
margin-bottom: 5px;
.group {
padding: 20px 30px;
color: black;
color: var(--el-text-color-primary);
border: none;
border-radius: 10px;
margin: 0 3px;
background-color: inherit;
&:hover,
&:focus {
background-color: inherit;
}
&:focus,
&.active {
background-color: white;
background-color: var(--el-fill-color-extra-light);
}
.icon {
display: inline-block;
@@ -161,7 +159,7 @@ export default defineComponent({
.fa-chevron-down {
margin-left: 5px;
font-weight: 100;
color: #999;
color: var(--el-text-color-primary);
transform: scale(0.8);
}
}
@@ -171,6 +169,7 @@ export default defineComponent({
.item {
display: flex;
flex-direction: row;
.icon {
width: 15px;
display: flex;
@@ -190,12 +189,12 @@ export default defineComponent({
.name {
font-size: 14px;
font-weight: bold;
color: #333;
color: var(--el-text-color-primary);
margin: 0;
}
.description {
font-size: 12px;
color: #999;
color: var(--el-text-color-secondary);
margin: 0;
}
}
+6 -5
View File
@@ -149,7 +149,7 @@ export default defineComponent({
padding: 15px;
width: 300px;
height: 100%;
border-right: 1px solid #eee;
border-right: 1px solid var(--el-border-color);
overflow-y: scroll;
.conversations {
@@ -164,15 +164,15 @@ export default defineComponent({
flex-direction: row;
padding: 10px;
margin-bottom: 5px;
border: 1px dashed hsl(0, 0%, 93%);
border: 1px dashed var(--el-border-color);
line-height: 30px;
border-radius: 10px;
color: #666;
color: var(--el-text-color-primary);
cursor: pointer;
&.active,
&:hover {
background-color: #eee;
background-color: var(--el-fill-color-extra-light);
}
.icons {
@@ -189,10 +189,11 @@ export default defineComponent({
overflow: hidden;
text-overflow: ellipsis;
padding-right: 8px;
color: #666;
color: var(--el-text-color-primary);
}
.operations {
width: 40px;
color: var(--el-text-color-regular);
.icon {
cursor: pointer;
font-size: 14px;