Skip to content

Commit 0ef5dbf

Browse files
committed
Update styles and theme variables for TargetButton and CompactableActionButton
1 parent f3632ce commit 0ef5dbf

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎packages/ui/src/components/editor/prompt/CompactableActionButton/CompactableActionButton.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
flex-shrink: 0;
66
gap: 4px;
77
height: var(--button-size);
8-
padding: 0 6px 0 3px;
8+
padding: 0 6px 0 4px;
99
border-radius: 4px;
1010
color: inherit;
1111

‎packages/ui/src/components/editor/prompt/TargetButton/TargetButton.module.scss‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
display: flex;
1414
align-items: center;
1515
justify-content: space-between;
16-
padding: 0 12px;
16+
padding: 0 3px 0 12px;
1717
height: 40px;
1818
width: 100%;
1919
border-radius: 10px;
@@ -38,7 +38,11 @@
3838
--ascii-color: var(--cwc-blue-foreground);
3939

4040
&:not(.button--compact) {
41-
background: linear-gradient(90deg, var(--cwc-bg-secondary) 0%, transparent 100%);
41+
background: linear-gradient(
42+
90deg,
43+
var(--cwc-bg-tertiary) 0%,
44+
transparent 100%
45+
);
4246

4347
.button__label {
4448
color: var(--cwc-text-color);
@@ -50,7 +54,11 @@
5054
--ascii-color: var(--cwc-purple-foreground);
5155

5256
&:not(.button--compact) {
53-
background: linear-gradient(90deg, var(--cwc-bg-secondary) 0%, transparent 100%);
57+
background: linear-gradient(
58+
90deg,
59+
var(--cwc-bg-tertiary) 0%,
60+
transparent 100%
61+
);
5462

5563
.button__label {
5664
color: var(--cwc-text-color);
@@ -66,8 +74,7 @@
6674
}
6775

6876
.button__description {
69-
color: var(--vscode-foreground);
70-
opacity: 1;
77+
color: var(--cwc-text-color);
7178
}
7279

7380
&.button--hover-blue {
@@ -117,10 +124,9 @@
117124
&__description {
118125
display: flex;
119126
align-items: center;
120-
gap: 2px;
121-
color: var(--vscode-descriptionForeground);
127+
gap: 1px;
128+
color: var(--cwc-text-color-dimmed);
122129
z-index: 1;
123-
opacity: 0.8;
124130
min-width: 0;
125131

126132
> span:first-child {

0 commit comments

Comments
 (0)