From 8ad15c3e53f510616c86ef0510bc3ac0c1e4e2a6 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Fri, 7 Nov 2025 01:02:08 -0500 Subject: [PATCH] Minor CSS fix ups --- vscode-wpilib/resources/media/icons.css | 8 +++++++ vscode-wpilib/resources/media/main.css | 23 ++++-------------- .../resources/webviews/projectcreator.html | 24 +++++++------------ vscode-wpilib/src/webviews/webviewbase.ts | 5 +++- 4 files changed, 24 insertions(+), 36 deletions(-) diff --git a/vscode-wpilib/resources/media/icons.css b/vscode-wpilib/resources/media/icons.css index ca226994..1049e9f4 100644 --- a/vscode-wpilib/resources/media/icons.css +++ b/vscode-wpilib/resources/media/icons.css @@ -91,3 +91,11 @@ .codicon-chrome-minimize:before { content: '\eaba'; } + +.codicon-notebook:before { + content: '\ebaf'; +} + +.codicon-notebook-template:before { + content: '\ebbf'; +} diff --git a/vscode-wpilib/resources/media/main.css b/vscode-wpilib/resources/media/main.css index e84d5ea6..8331475a 100644 --- a/vscode-wpilib/resources/media/main.css +++ b/vscode-wpilib/resources/media/main.css @@ -7,14 +7,6 @@ } } -.uninstall-button .vscode-select select { - height: 24px; - box-sizing: border-box; - line-height: 18px; - padding: 2px 4px; - border-radius: 2px; -} - .uninstall-button button[id*='version-action'], .uninstall-button button[id*='uninstall-action'], .uninstall-button button[id*='install-action'] { @@ -166,17 +158,6 @@ button[id*='version-action'] { width: 100%; } -.project-select { - min-width: 250px; - background-color: var(--vscode-dropdown-background); - border: 1px solid var(--vscode-dropdown-border); - color: var(--vscode-dropdown-foreground); - padding: 6px 8px; - border-radius: 4px; - cursor: pointer; - width: 100%; -} - .project-actions { display: flex; justify-content: flex-end; @@ -344,6 +325,10 @@ button[id*='version-action'] { color: var(--vscode-descriptionForeground); } +.card-icon i.codicon { + font-size: 48px; +} + .selection-card.selected .card-icon { color: var(--vscode-button-background); } diff --git a/vscode-wpilib/resources/webviews/projectcreator.html b/vscode-wpilib/resources/webviews/projectcreator.html index 2fc02f7a..cf72bae6 100644 --- a/vscode-wpilib/resources/webviews/projectcreator.html +++ b/vscode-wpilib/resources/webviews/projectcreator.html @@ -32,24 +32,14 @@

Step 1: Select Project Type

Template

Start with a basic robot program structure

- - - +

Example

Start with a complete example project

- - - +
@@ -70,8 +60,9 @@

Step 2: Select Language & Base

Language
-
-
@@ -79,8 +70,9 @@

Step 2: Select Language & Base

Project Base
-
-
diff --git a/vscode-wpilib/src/webviews/webviewbase.ts b/vscode-wpilib/src/webviews/webviewbase.ts index 202f25c7..7fcf4567 100644 --- a/vscode-wpilib/src/webviews/webviewbase.ts +++ b/vscode-wpilib/src/webviews/webviewbase.ts @@ -39,7 +39,10 @@ export abstract class WebViewBase { this.html = this.html.replace( '', - `\r\n\r\n\r\n` + ` + + + ` ); if (localeDomains) {