|
143 | 143 | <div class="install_hint">You can always change this later in the User Settings page.</div> |
144 | 144 | <br> |
145 | 145 | <fieldset class="form-group theme_preview" id="theme_selection_field"> |
146 | | - <div class="form-check theme_preview_modern_dark" id="theme_input_modern_dark"> |
147 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_moderndark" value="modern_dark" checked=""> |
148 | | - <label class="form-check-label" for="theme_moderndark">Modern Dark</label> |
149 | | - <span class="button_example">Example</span> |
150 | | - </div> |
151 | | - <div class="form-check theme_preview_modern_light" id="theme_input_modern_light"> |
152 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_modernlight" value="modern_light"> |
153 | | - <label class="form-check-label" for="theme_modernlight">Modern Light</label> |
154 | | - <span class="button_example">Example</span> |
155 | | - </div> |
156 | | - <div class="form-check theme_preview_solarized" id="theme_input_solarized"> |
157 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_solarized" value="solarized"> |
158 | | - <label class="form-check-label" for="theme_solarized">Solarized Light</label> |
159 | | - <span class="button_example">Example</span> |
160 | | - </div> |
161 | | - <div class="form-check theme_preview_dark_dreams" id="theme_input_dark_dreams"> |
162 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_darkdreams" value="dark_dreams"> |
163 | | - <label class="form-check-label" for="theme_darkdreams">Dark Dreams</label> |
164 | | - <span class="button_example">Example</span> |
165 | | - </div> |
166 | | - <div class="form-check theme_preview_gravity_blue" id="theme_input_gravity_blue"> |
167 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_gravityblue" value="gravity_blue"> |
168 | | - <label class="form-check-label" for="theme_gravityblue">Gravity Blue</label> |
169 | | - <span class="button_example">Example</span> |
170 | | - </div> |
171 | | - <div class="form-check theme_preview_cyber_swarm" id="theme_input_cyber_swarm"> |
172 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_cyberswarm" value="cyber_swarm"> |
173 | | - <label class="form-check-label" for="theme_cyberswarm">Cyber Swarm</label> |
174 | | - <span class="button_example">Example</span> |
175 | | - </div> |
176 | | - <div class="form-check theme_preview_punked" id="theme_input_punked"> |
177 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_punked" value="punked"> |
178 | | - <label class="form-check-label" for="theme_punked">Punked</label> |
179 | | - <span class="button_example">Example</span> |
180 | | - </div> |
181 | | - <div class="form-check theme_preview_eyesear_white" id="theme_input_eyesear_white"> |
182 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_eyesearwhite" value="eyesear_white"> |
183 | | - <label class="form-check-label" for="theme_eyesearwhite">Eyesear White</label> |
184 | | - <span class="button_example">Example</span> |
185 | | - </div> |
186 | | - <div class="form-check theme_preview_swarmpunk" id="theme_input_swarmpunk"> |
187 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_swarmpunk" value="swarmpunk"> |
188 | | - <label class="form-check-label" for="theme_swarmpunk">Swarm Punk</label> |
189 | | - <span class="button_example">Example</span> |
190 | | - </div> |
191 | | - <div class="form-check theme_preview_beweish" id="theme_input_beweish"> |
192 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_beweish" value="beweish"> |
193 | | - <label class="form-check-label" for="theme_beweish">Beweish</label> |
194 | | - <span class="button_example">Example</span> |
195 | | - </div> |
196 | | - <div class="form-check theme_preview_ctp_mocha" id="theme_input_ctp_mocha"> |
197 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_ctpmocha" value="ctp_mocha"> |
198 | | - <label class="form-check-label" for="theme_ctpmocha">Catppuccin Mocha</label> |
199 | | - <span class="button_example">Example</span> |
200 | | - </div> |
201 | | - <div class="form-check theme_preview_ctp_macchiato" id="theme_input_ctp_macchiato"> |
202 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_ctpmacchiato" value="ctp_macchiato"> |
203 | | - <label class="form-check-label" for="theme_ctpmacchiato">Catppuccin Macchiato</label> |
204 | | - <span class="button_example">Example</span> |
205 | | - </div> |
206 | | - <div class="form-check theme_preview_ctp_frappe" id="theme_input_ctp_frappe"> |
207 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_ctpfrappe" value="ctp_frappe"> |
208 | | - <label class="form-check-label" for="theme_ctpfrappe">Catppuccin Frappé</label> |
209 | | - <span class="button_example">Example</span> |
210 | | - </div> |
211 | | - <div class="form-check theme_preview_ctp_latte" id="theme_input_ctp_latte"> |
212 | | - <input class="form-check-input" type="radio" name="theme_radio" id="theme_ctplatte" value="ctp_latte"> |
213 | | - <label class="form-check-label" for="theme_ctplatte">Catppuccin Latte</label> |
214 | | - <span class="button_example">Example</span> |
215 | | - </div> |
| 146 | + @foreach (var theme in Program.Web.RegisteredThemes.Values) |
| 147 | + { |
| 148 | + string themeName = $"{theme.Name.Replace(" (Legacy)","")}"; |
| 149 | + string themeId = $"{theme.ID}"; |
| 150 | + string themeIdNoUnderscore = $"{theme.ID.Replace("_", "")}"; |
| 151 | + <div class="form-check theme_preview_@themeId" id="theme_input_@themeId"> |
| 152 | + <input class="form-check-input" type="radio" name="theme_radio" id="theme_@themeIdNoUnderscore" value="@themeId" @(themeId == "modern_dark" ? "checked" : "")> |
| 153 | + <label class="form-check-label" for="theme_@themeIdNoUnderscore">@themeName</label> |
| 154 | + <iframe class="form-check-iframe" src="ThemePreview?theme=@themeId"></iframe> |
| 155 | + </div> |
| 156 | + } |
216 | 157 | </fieldset> |
217 | 158 | </div> |
218 | 159 |
|
|
0 commit comments