[mod] Move static preference URLs back to General in Preferences and apply CSS

This commit is contained in:
obfuscated-loop 2023-11-22 23:15:37 +00:00 committed by Markus Heiser
parent 3dea7e609b
commit b3651b72ac
5 changed files with 40 additions and 25 deletions

View file

@ -94,6 +94,7 @@
--color-toolkit-kbd-background: #000; --color-toolkit-kbd-background: #000;
--color-toolkit-dialog-border: #ddd; --color-toolkit-dialog-border: #ddd;
--color-toolkit-dialog-background: #fff; --color-toolkit-dialog-background: #fff;
--color-toolkit-card-background: #f4f4f4;
--color-toolkit-tabs-label-border: #fff; --color-toolkit-tabs-label-border: #fff;
--color-toolkit-tabs-section-border: #ddd; --color-toolkit-tabs-section-border: #ddd;
--color-toolkit-select-background: #e1e1e1; --color-toolkit-select-background: #e1e1e1;
@ -206,6 +207,7 @@
--color-toolkit-kbd-background: #fff; --color-toolkit-kbd-background: #fff;
--color-toolkit-dialog-border: #555; --color-toolkit-dialog-border: #555;
--color-toolkit-dialog-background: #1e1e22; --color-toolkit-dialog-background: #1e1e22;
--color-toolkit-card-background: #17181a;
--color-toolkit-tabs-label-border: #222; --color-toolkit-tabs-label-border: #222;
--color-toolkit-tabs-section-border: #555; --color-toolkit-tabs-section-border: #555;
--color-toolkit-select-background: #313338; --color-toolkit-select-background: #313338;

View file

@ -190,6 +190,16 @@ table {
width: 100%; width: 100%;
} }
} }
div.saved_prefs_url_card {
background-color: var(--color-toolkit-card-background);
border-radius: 10px;
padding: 10px;
h4:nth-of-type(1) {
margin-top: 2px;
}
}
} }
@media screen and (max-width: @tablet) { @media screen and (max-width: @tablet) {

View file

@ -181,6 +181,7 @@
{%- include 'simple/preferences/doi_resolver.html' -%} {%- include 'simple/preferences/doi_resolver.html' -%}
{%- endif -%} {%- endif -%}
{%- include 'simple/preferences/tokens.html' -%} {%- include 'simple/preferences/tokens.html' -%}
{%- include 'simple/preferences/url_card.html' -%}
{{- tab_footer() -}} {{- tab_footer() -}}

View file

@ -18,28 +18,4 @@
</table> </table>
{%- else -%} {%- else -%}
{% include 'simple/messages/no_cookies.html' %} {% include 'simple/messages/no_cookies.html' %}
{% endif %} {% endif %}
<h4>
{{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
</h4>{{- '' -}}
<div class="selectable_url">{{- '' -}}
<pre>
{{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
{%- raw -%}&amp;q=%s{%- endraw -%}
</pre>{{- '' -}}
</div>{{- '' -}}
<p class="small_font">
{{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
</p>
<h4>
{{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
</h4>{{- '' -}}
<div class="selectable_url">{{- '' -}}
<pre>
{{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}
&amp;save=1{{- '' -}}
</pre>{{- '' -}}
</div>{{- '' -}}
<p class="small_font">
{{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
</p>

View file

@ -0,0 +1,26 @@
<div class="saved_prefs_url_card">
<h4>
{{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
</h4>{{- '' -}}
<div class="selectable_url">{{- '' -}}
<pre>
{{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
{%- raw -%}&amp;q=%s{%- endraw -%}
</pre>{{- '' -}}
</div>{{- '' -}}
<p class="small_font">
{{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
</p>
<h4>
{{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
</h4>{{- '' -}}
<div class="selectable_url">{{- '' -}}
<pre>
{{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}
&amp;save=1{{- '' -}}
</pre>{{- '' -}}
</div>{{- '' -}}
<p class="small_font">
{{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
</p>
</div>