Introduce watermark with click-through and non-selectable behavior#55
Introduce watermark with click-through and non-selectable behavior#55SakshayMahna merged 3 commits intoKodo-Robotics:mainfrom
Conversation
Introduces a LaunchMap watermark with logo and text to the webview by updating the HTML and adding new CSS styles. Enhances the appearance and interactivity of the export button and editor, and improves layout responsiveness for smaller screens.
|
Looks good!
const logoUri = webview.asWebviewUri(
vscode.Uri.joinPath(extensionUri, 'assets', 'launchmap-logo.png')
); |
|
As well could you try running the playwright tests locally (If on a linux system) and see whether the tests are running fine: Playwright tests work by comparing screenshots of the visualisations. Since, we made a change to the visualization (adding a watermark) I was expecting it to fail. So just need to ensure that once. |
Extracted all #watermark related styles from base.css into a new watermark.css file and updated style.css to import the new stylesheet. This improves maintainability and separation of concerns for component-specific styles.
|
Hi, thanks for the feedback and suggestions! I’ve successfully split the watermark styles into a new Regarding your question about importing the watermark image directly in CSS without defining the Due to the way VS Code Webviews work, we must use Therefore, referencing the image directly in CSS with a static relative path isn’t reliable or supported. Injecting the converted URI dynamically via the extension code (like in an Also, regarding the Thanks again for your guidance! |
|
Cool! Everything looks fine. |
|
Understood! Just last few changes, then we are good to go:
Possibly making it halfway smaller should do the trick. |
Decreased the font size and image dimensions of the watermark for both desktop and mobile breakpoints to improve visual balance and reduce UI dominance.
|
Perfect! Merging this now. |


✨ Add Watermark Feature
📄 Description
This PR introduces a fully functional watermark feature to the application.
The watermark is now implemented with proper interaction handling, styling, and responsive behavior.
It can be positioned, styled, and displayed without interfering with other UI components.
🔹 Key Changes
🛠 Implementation Notes
z-indexadjustments to ensure the watermark stays behind key UI elements where required.✅ Testing
🔄 Additional Notes
Feel free to choose which approach/version you prefer — I can apply it and make the changes before merging.
Thanks for helping me and guiding me with your tips and feedback throughout the process.
Closes #45