mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-18 10:06:33 +00:00
Let CSS do the uppercase transformation.
Expose no implementation details to translation files. Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
99b10942bb
commit
87ebcbe77e
@ -137,6 +137,9 @@ button.secondary[disabled], .theia-button.secondary[disabled] {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uppercase {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
/* High Contrast Theme rules */
|
/* High Contrast Theme rules */
|
||||||
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
|
/* TODO: Remove it when the Theia version is upgraded to 1.27.0 and use Theia APIs to implement it*/
|
||||||
|
@ -112,14 +112,12 @@
|
|||||||
max-height: calc(1em + 4px);
|
max-height: calc(1em + 4px);
|
||||||
color: var(--theia-button-foreground);
|
color: var(--theia-button-foreground);
|
||||||
content: attr(install);
|
content: attr(install);
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.component-list-item .header .installed:hover:before {
|
.component-list-item .header .installed:hover:before {
|
||||||
background-color: var(--theia-button-foreground);
|
background-color: var(--theia-button-foreground);
|
||||||
color: var(--theia-button-background);
|
color: var(--theia-button-background);
|
||||||
content: attr(uninstall);
|
content: attr(uninstall);
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.component-list-item[min-width~="170px"] .footer {
|
.component-list-item[min-width~="170px"] .footer {
|
||||||
|
@ -61,10 +61,10 @@ export class CloudSketchbookTreeWidget extends SketchbookTreeWidget {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
className="theia-button"
|
className="theia-button uppercase"
|
||||||
onClick={() => shell.openExternal('https://create.arduino.cc/editor')}
|
onClick={() => shell.openExternal('https://create.arduino.cc/editor')}
|
||||||
>
|
>
|
||||||
{nls.localize('cloud/GoToCloud', 'GO TO CLOUD')}
|
{nls.localize('arduino/cloud/goToCloud', 'Go to Cloud')}
|
||||||
</button>
|
</button>
|
||||||
<div className="center item"></div>
|
<div className="center item"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,10 +56,10 @@ export class ListItemRenderer<T extends ArduinoComponent> {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
className="installed"
|
className="installed uppercase"
|
||||||
onClick={onClickUninstall}
|
onClick={onClickUninstall}
|
||||||
{...{
|
{...{
|
||||||
install: nls.localize('arduino/component/installed', 'INSTALLED'),
|
install: nls.localize('arduino/component/installed', 'Installed'),
|
||||||
uninstall: nls.localize('arduino/component/uninstall', 'Uninstall'),
|
uninstall: nls.localize('arduino/component/uninstall', 'Uninstall'),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@ -77,10 +77,10 @@ export class ListItemRenderer<T extends ArduinoComponent> {
|
|||||||
const onClickInstall = () => install(item);
|
const onClickInstall = () => install(item);
|
||||||
const installButton = item.installable && (
|
const installButton = item.installable && (
|
||||||
<button
|
<button
|
||||||
className="theia-button secondary install"
|
className="theia-button secondary install uppercase"
|
||||||
onClick={onClickInstall}
|
onClick={onClickInstall}
|
||||||
>
|
>
|
||||||
{nls.localize('arduino/component/install', 'INSTALL')}
|
{nls.localize('arduino/component/install', 'Install')}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@
|
|||||||
"donePushing": "Done pushing ‘{0}’.",
|
"donePushing": "Done pushing ‘{0}’.",
|
||||||
"embed": "Embed:",
|
"embed": "Embed:",
|
||||||
"emptySketchbook": "Your Sketchbook is empty",
|
"emptySketchbook": "Your Sketchbook is empty",
|
||||||
|
"goToCloud": "Go to Cloud",
|
||||||
"learnMore": "Learn more",
|
"learnMore": "Learn more",
|
||||||
"link": "Link:",
|
"link": "Link:",
|
||||||
"notYetPulled": "Cannot push to Cloud. It is not yet pulled.",
|
"notYetPulled": "Cannot push to Cloud. It is not yet pulled.",
|
||||||
@ -144,8 +145,8 @@
|
|||||||
"boardsIncluded": "Boards included in this package:",
|
"boardsIncluded": "Boards included in this package:",
|
||||||
"by": "by",
|
"by": "by",
|
||||||
"filterSearch": "Filter your search...",
|
"filterSearch": "Filter your search...",
|
||||||
"install": "INSTALL",
|
"install": "Install",
|
||||||
"installed": "INSTALLED",
|
"installed": "Installed",
|
||||||
"moreInfo": "More info",
|
"moreInfo": "More info",
|
||||||
"uninstall": "Uninstall",
|
"uninstall": "Uninstall",
|
||||||
"uninstallMsg": "Do you want to uninstall {0}?",
|
"uninstallMsg": "Do you want to uninstall {0}?",
|
||||||
@ -422,9 +423,6 @@
|
|||||||
"upload": "Upload"
|
"upload": "Upload"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cloud": {
|
|
||||||
"GoToCloud": "GO TO CLOUD"
|
|
||||||
},
|
|
||||||
"theia": {
|
"theia": {
|
||||||
"core": {
|
"core": {
|
||||||
"cannotConnectBackend": "Cannot connect to the backend.",
|
"cannotConnectBackend": "Cannot connect to the backend.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user