Skip to content

Commit 0d7a7f7

Browse files
committed
Refactor theme section: update dark theme toggle structure and labels
1 parent 6f348c4 commit 0d7a7f7

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

welcome-page-files/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ img {
117117
align-items: center;
118118
gap: 10px;
119119
margin-top: 20px;
120-
justify-content: center;
121120
}
122121

123122
.switch {

welcome.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,25 @@ <h2>Cross-Chat Prompt Sharing: Reuse Prompts Anywhere</h2>
175175
<h2>See the code and support author, privacy concerns.</h2>
176176
<p>The extension is open-source and you can see the code on <a href="https://github.com/MaxITService/ChatGPT-Quick-Buttons-for-your-text">GitHub</a>.
177177
If you have any questions or suggestions for new features, please contact the author at <a href="mailto:[email protected]">[email protected]</a>. The extension does not collect any data</p>
178+
</section>
179+
180+
<!-- ===== Theme Section (Dark Theme Toggle) ===== -->
181+
<section class="section" id="themeSection">
182+
<h2>Theme</h2>
183+
<!-- iPhone-style toggle switch -->
184+
<div class="switch-container">
185+
<label class="switch">
186+
<input
187+
type="checkbox"
188+
id="darkThemeToggle"
189+
aria-label="Enable Dark Theme"
190+
/>
191+
<span class="slider"></span>
192+
</label>
193+
<span class="switch-label">Enable Dark Theme</span>
178194
</div>
179195
</section>
180-
181-
<div class="switch-container">
182-
<label class="switch">
183-
<input type="checkbox" id="darkThemeToggle" aria-label="Toggle Dark Theme">
184-
<span class="slider"></span>
185-
<span class="switch-label">Dark Theme</span>
186-
</label>
187-
</div>
196+
<!-- ===== End Theme Section ===== -->
188197
</div>
189198

190199
<script src="welcome-page-files/theme.js"></script>

0 commit comments

Comments
 (0)