You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"You are currently previewing **#{@current_highlight.display_name}** as your syntax highlighting theme."
22
34
end
35
+
36
+
ifpreserving?
37
+
markdowndo
38
+
"You have saved **#{@session_highlight_light.display_name}** for syntax highlighting across the site."
39
+
end
40
+
end
41
+
23
42
form_with(
24
43
model: @settings,
25
44
url: settings_syntax_highlight_path,
26
45
method: :get
27
46
)do |form|
28
47
fieldsetdo
29
48
flex_blockdo
30
-
form.label:syntax_highlight_name,"Choose a syntax highlight style to preview:"
49
+
form.label:syntax_highlight_name,"Choose another syntax highlighting theme to preview:"
31
50
form.select:syntax_highlight_name,
32
51
syntax_highlight_options_for_select,
33
52
{
@@ -38,6 +57,27 @@ def view_template
38
57
end
39
58
end
40
59
60
+
ifpreviewing?
61
+
markdowndo
62
+
"You can preview what the site looks with this syntax highlighting theme while you remain on this page. Click the **Reset preview** button to go back to #{@session_syntax_highlight ? "your saved color scheme" : "the default color scheme"}."
63
+
end
64
+
65
+
div(class: "outside"){reset_button}
66
+
67
+
darkmode_section
68
+
69
+
markdowndo
70
+
"Click the Save button to preserve **#{@current_highlight.display_name}** as your new syntax highlighting theme."
"*Disclaimer: The Light/Dark mode switch is not available without JavaScript enabled.*"
123
+
end
124
+
end
125
+
126
+
markdowndo
127
+
"You can toggle the dark mode switch to see how the syntax highlighting looks in light or dark mode. Choosing **Light Mode** or **Dark Mode** will save in your browser local storage and will persist across page views on your current device. Choose **System Mode** to remove the saved choice and fall back to your system preference."
0 commit comments