Overview
Screen Answerer provides a comprehensive settings interface that allows you to configure API keys, select AI models, and customize the visual appearance of the application.All settings are stored locally in your browser using
localStorage, ensuring your preferences persist across sessions.Accessing settings
The settings modal can be accessed in multiple ways:Settings modal structure
The settings modal is organized into three tabs for easy navigation:Tab navigation
Fromindex.html:602-606, the settings use a tabbed interface:
API Key tab
The API Key tab allows you to configure your Google Gemini API credentials.Features
API key input field
API key input field
A secure text input where you paste your Gemini API key. The field shows a placeholder: “Enter your Gemini API Key”.From
index.html:610:Privacy notice
Privacy notice
A clear message explaining data handling: “Your API key is stored locally in your browser and never sent to our servers.”This transparency helps users understand that their credentials are kept private.
Setup instructions
Setup instructions
Step-by-step guidance with a direct link to Google AI Studio:
- Go to Google AI Studio
- Create a free API key
- Copy and paste it here
Validation status
Validation status
Real-time feedback showing whether your API key is valid:
- Success: ”✅ API key validated and saved successfully!”
- Error: ”❌ Error: [error message]”
index.html:877-878:Validation process
When you save your API key, Screen Answerer performs comprehensive validation:Model tab
The Model tab provides an intuitive interface for selecting your preferred Gemini AI model.Model slider
Slider interface
Slider interface
A horizontal slider with two positions:
- Left (0): “Faster” -
gemini-2.0-flash-lite - Right (1): “Balanced” -
gemini-2.0-flash
index.html:628-637:Visual feedback
The slider provides immediate visual feedback when you change models:The currently selected model is displayed in monospace font below the slider for clear identification.
Theme tab
Customize the visual appearance of Screen Answerer with theme options.Available themes
Dark theme (default)
Dark theme (default)
A dark color scheme optimized for low-light environments and reduced eye strain:Colors:
- Background:
#1a1a2e - Card:
#2d2d42 - Text:
#f8f9fa - Accent:
#6200ee
index.html:9-20:Light theme
Light theme
A bright, clean color scheme ideal for well-lit environments:Colors:
- Background:
#f8f9fa - Card:
#ffffff - Text:
#1a1f2b - Accent:
#6200ee
index.html:22-30:Theme selection
Switching themes is simple and provides instant visual feedback:
Implementation from
index.html:780-798:
Saving settings
The “Save Settings” button at the bottom of the modal handles validation and persistence.Save behavior
Storage
Saves valid settings to
localStorage:geminiApiKey: Your API keygeminiModel: Selected model nametheme: Theme preference (saved automatically on change)
First-time setup
When you first launch Screen Answerer without a saved API key, a welcome card appears: Fromindex.html:654-659:
This welcome message automatically hides once you successfully save a valid API key.
Closing the settings modal
You can close the settings modal in multiple ways:- Close button: Click the ✕ in the top-right corner
- Click outside: Click anywhere outside the modal
- Auto-close: After successfully saving settings (2-second delay)
Settings persistence
All settings uselocalStorage for persistence:
| Setting | LocalStorage Key | Default Value |
|---|---|---|
| API Key | geminiApiKey | None (required) |
| Model | geminiModel | gemini-2.0-flash-lite |
| Theme | theme | dark |
Loading saved settings
On page load, Screen Answerer restores your previous settings:Responsive design
The settings modal is fully responsive and adapts to different screen sizes: Fromindex.html:157-167:
The modal is scrollable on smaller screens to ensure all settings remain accessible.
Best practices
When to update settings
- API Key: Change if compromised or when switching Google accounts
- Model: Adjust based on question complexity and performance needs
- Theme: Switch based on time of day or ambient lighting
Troubleshooting
Settings not saving
Modal won’t close
If the settings modal becomes unresponsive:- Try clicking the ✕ close button
- Click outside the modal area
- Refresh the page (settings are saved immediately)
Theme not applying
If theme changes don’t take effect:- Ensure JavaScript is enabled
- Check browser console for errors
- Try clearing browser cache and reloading
Next steps
Quick start
Start answering quiz questions
Screen monitoring
Set up automatic question detection