Skip to content

Commit 1a21c59

Browse files
update buttons style
1 parent 06acd7f commit 1a21c59

File tree

4 files changed

+39
-15
lines changed

4 files changed

+39
-15
lines changed

Diff for: arduino-ide-extension/src/browser/dialogs/certificate-uploader/certificate-uploader-component.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const CertificateUploaderComponent = ({
9494
>
9595
<button
9696
type="button"
97-
className="theia-button primary add-cert-btn"
97+
className="theia-button secondary add-cert-btn"
9898
onClick={() => {
9999
showAdd ? setShowAdd(false) : setShowAdd(true);
100100
}}

Diff for: arduino-ide-extension/src/browser/style/index.css

+31-10
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,46 @@
6060
/* Overrule the default Theia CSS button styles. */
6161
button.theia-button,
6262
.theia-button {
63-
border: 1px solid var(--theia-dropdown-border);
64-
}
65-
66-
button.theia-button:hover,
67-
.theia-button:hover {
68-
border: 1px solid var(--theia-focusBorder);
63+
align-items: center;
64+
display: flex;
65+
font-family: 'Open Sans',sans-serif;
66+
font-style: normal;
67+
font-weight: 700;
68+
font-size: 1rem;
69+
justify-content: center;
70+
cursor: pointer;
71+
letter-spacing: .01em;
72+
line-height: 170%;
73+
outline: none;
74+
padding: 0 18px;
75+
position: relative;
76+
text-align: center;
77+
text-decoration: none;
78+
border-width: 2px;
79+
border-radius: 32px;
80+
text-transform: uppercase;
81+
transition: none;
82+
box-shadow: none;
6983
}
7084

7185
button.theia-button {
72-
height: 31px;
86+
height: auto;
87+
max-width: none;
7388
}
7489

7590
button.theia-button.secondary {
76-
background-color: var(--theia-secondaryButton-background);
77-
color: var(--theia-secondaryButton-foreground);
91+
border: 1.5px solid var(--theia-secondaryButton-foreground);
7892
}
7993

80-
button.theia-button.main {
94+
button.theia-button[disabled], .theia-button[disabled] {
95+
opacity: 0.5;
8196
color: var(--theia-button-foreground);
97+
background-color: var(--theia-button-background);
98+
}
99+
100+
button.secondary[disabled], .theia-button.secondary[disabled] {
101+
color: var(--theia-secondaryButton-foreground);
102+
background-color: var(--theia-secondaryButton-background);
82103
}
83104

84105
/* To make the progress-bar slightly thicker, and use the color from the status bar */

Diff for: arduino-ide-extension/src/browser/style/list-widget.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ https://github.com/arduino/arduino-pro-ide/issues/82 */
127127
}
128128

129129
.component-list-item:hover .footer > * {
130-
display: block;
130+
display: inline-block;
131131
margin: 5px 0px 0px 10px;
132132
}
133133

134134
.component-list-item:hover .footer > label {
135-
display: block;
135+
display: inline-block;
136136
align-self: center;
137137
margin: 5px 0px 0px 10px;
138138
}

Diff for: arduino-ide-extension/src/browser/widgets/component-list/list-item-renderer.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ export class ListItemRenderer<T extends ArduinoComponent> {
7272
);
7373
const onClickInstall = () => install(item);
7474
const installButton = item.installable && (
75-
<button className="theia-button install" onClick={onClickInstall}>
75+
<button
76+
className="theia-button secondary install"
77+
onClick={onClickInstall}
78+
>
7679
{nls.localize('arduino/component/install', 'INSTALL')}
7780
</button>
7881
);
@@ -121,8 +124,8 @@ export class ListItemRenderer<T extends ArduinoComponent> {
121124
</div>
122125
<div className="info">{moreInfo}</div>
123126
<div className="footer">
124-
{installButton}
125127
{versions}
128+
{installButton}
126129
</div>
127130
</div>
128131
);

0 commit comments

Comments
 (0)