Skip to content

Commit 505ba9a

Browse files
committed
Fixed fonts inconsistencies. Updated woff2 files.
Signed-off-by: ubi de feo <[email protected]>
1 parent f7840ab commit 505ba9a

8 files changed

+24
-4
lines changed

ui/arduino/main.css

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1+
/*
2+
On 20250303, due to font files inconsistencies, we sourced the updated fonts from here:
3+
https://github.com/alsacreations/webfonts
4+
5+
*/
16
@font-face {
27
font-family: "RobotoMono";
38
src:
4-
url("media/roboto-mono-latin-ext-400-normal.woff2") format("woff2"),
5-
url("media/roboto-mono-latin-ext-400-normal.woff") format("woff");
9+
url("media/roboto-regular.woff2") format("woff2");
610
font-weight: normal;
711
font-style: normal;
812
}
913

14+
1015
@font-face {
1116
font-family: "OpenSans";
12-
src: url("media/open-sans_5.0.29_latin-wght-normal.woff2") format("woff2");
17+
src: url("media/opensans-regular.woff2") format("woff2");
1318
font-weight: normal;
1419
font-style: normal;
1520
}
1621

22+
@font-face {
23+
font-family: "OpenSans";
24+
src: url("media/opensans-bold.woff2") format("woff2");
25+
font-weight: bold;
26+
font-style: normal;
27+
}
28+
1729
* {
1830
-moz-user-select: none;
1931
-webkit-user-select: none;
@@ -184,6 +196,13 @@ button.small .icon {
184196
width: 100%
185197
}
186198

199+
#app-views .button .label{
200+
201+
}
202+
#app-views .button .label.selected{
203+
font-weight: bold;
204+
}
205+
187206
#app-views div:first-child button{
188207
border-radius: 8px 0px 0px 8px;
189208

Binary file not shown.

ui/arduino/media/opensans-bold.woff2

17.8 KB
Binary file not shown.
17.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

ui/arduino/media/roboto-regular.woff2

18.6 KB
Binary file not shown.

ui/arduino/views/components/elements/button.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ function Button(args) {
1919
}
2020
tooltipEl = html``
2121
let activeClass = active ? 'active' : ''
22+
let labelSelectedClass = active ? 'selected' : ''
2223
let backgroundClass = background ? 'inverted' : ''
2324
let buttonFirstClass = first ? 'first' : ''
2425
let squareClass = square ? 'square' : ''
2526
let labelActiveClass = disabled ? 'inactive' : 'active'
26-
let labelItem = size === 'small' ? '' : html`<div class="label ${labelActiveClass}">${label}</div>`
27+
let labelItem = size === 'small' ? '' : html`<div class="label ${labelActiveClass} ${labelSelectedClass}">${label}</div>`
2728

2829
return html`
2930
<div class="button ${buttonFirstClass}">

0 commit comments

Comments
 (0)