Skip to content
Snippets Groups Projects
Commit edac285f authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

add MP logos, bump version

parent 5937adbb
Branches
No related tags found
No related merge requests found
Pipeline #11541 failed
Showing
with 97 additions and 4 deletions
1.6.4
1.6.5
generator/static/images/examples/mp_logo_dark.webp

27.6 KiB

generator/static/images/examples/mp_logo_light.webp

27.8 KiB

generator/static/images/examples/mp_logo_transparent_dark.webp

27.5 KiB

generator/static/images/examples/mp_logo_transparent_light.webp

27.8 KiB

generator/static/images/examples/mp_logotype_dark.webp

28.7 KiB

generator/static/images/examples/mp_logotype_light.webp

28.7 KiB

generator/static/images/logos/MP-dark.png

21.4 KiB

generator/static/images/logos/MP-logotyp-dark.png

67.9 KiB

generator/static/images/logos/MP-logotyp.png

72.7 KiB

generator/static/images/logos/MP-transparent-dark.png

22 KiB

generator/static/images/logos/MP-transparent.png

23.3 KiB

generator/static/images/logos/MP.png

24.5 KiB

......@@ -2640,6 +2640,36 @@ async function setCoalition(coalition, template) {
$("#location-image-selection").trigger("change");
}
break;
case "mp-logo":
template.setDarkLogoSource("static/images/logos/MP-dark.png", true);
template.setLightLogoSource("static/images/logos/MP.png", true);
if (template.changeableAttributes.includes("locationImage")) {
$("#location-image-selection").val("Žádná lokalizace");
$("#location-image-selection").trigger("change");
}
break;
case "mp-transparent-logo":
template.setDarkLogoSource("static/images/logos/MP-transparent-dark.png", true);
template.setLightLogoSource("static/images/logos/MP-transparent.png", true);
if (template.changeableAttributes.includes("locationImage")) {
$("#location-image-selection").val("Žádná lokalizace");
$("#location-image-selection").trigger("change");
}
break;
case "mp-logotype":
template.setDarkLogoSource("static/images/logos/MP-logotyp-dark.png", true);
template.setLightLogoSource("static/images/logos/MP-logotyp.png", true);
if (template.changeableAttributes.includes("locationImage")) {
$("#location-image-selection").val("Žádná lokalizace");
$("#location-image-selection").trigger("change");
}
break;
}
}
......@@ -3117,6 +3147,42 @@ async function setCoalition(coalition, template) {
setGlobalSpecifics("balcarova");
break;
case "mp-logo-dark":
await template.setPrimaryColorScheme("black-on-white", true);
setGlobalSpecifics("mp-logo");
break;
case "mp-logo-light":
await template.setPrimaryColorScheme("white-on-black", true);
setGlobalSpecifics("mp-logo");
break;
case "mp-transparent-logo-dark":
await template.setPrimaryColorScheme("black-on-white", true);
setGlobalSpecifics("mp-transparent-logo");
break;
case "mp-transparent-logo-light":
await template.setPrimaryColorScheme("white-on-black", true);
setGlobalSpecifics("mp-transparent-logo");
break;
case "mp-logotype-dark":
await template.setPrimaryColorScheme("black-on-white", true);
setGlobalSpecifics("mp-logotype");
break;
case "mp-logotype-light":
await template.setPrimaryColorScheme("white-on-black", true);
setGlobalSpecifics("mp-logotype");
break;
default:
throw new Error(`Possible broken coalition lookup: ${coalition}.`);
......
......@@ -1951,7 +1951,7 @@
<label for="background-has-pattern" checked>Zobrazit</label>
</section>
<h3>Nastavení barev</h3>
<h3>Nastavení schématu</h3>
<section id="pro-usti-color-scheme-wrapper">
<h4>Barvy PRO! Ústí</h4>
......@@ -1986,9 +1986,9 @@
<section id="primary-color-scheme-wrapper">
<section id="coalition-wrapper">
<h4>Podle koalice</h4>
<h4>Podle odnože</h4>
<select id="coalition-selection">
<option value="no-coalition">Žádná koalice</option>
<option value="no-coalition">Žádná odnož</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/forum_jihlava_purple_dark.webp') }}"
......@@ -2224,6 +2224,33 @@
data-image-source="{{ url_for('static', filename='images/examples/dana_balcarova_dark.webp') }}"
value="balcarova-dark"
>Dana Balcarová - fialové logo, tmavé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logo_light.webp') }}"
value="mp-logo-light"
>Mladé pirátstvo - logo, světlé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logo_dark.webp') }}"
value="mp-logo-dark"
>Mladé pirátstvo - logo, tmavé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logo_transparent_light.webp') }}"
value="mp-transparent-logo-light"
>Mladé pirátstvo - poloprůhledné logo, světlé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logo_transparent_dark.webp') }}"
value="mp-transparent-logo-dark"
>Mladé pirátstvo - poloprůhledné logo, tmavé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logotype_light.webp') }}"
value="mp-logotype-light"
>Mladé pirátstvo - logotyp, světlé pozadí</option>
<option
data-image-source="{{ url_for('static', filename='images/examples/mp_logotype_dark.webp') }}"
value="mp-logotype-dark"
>Mladé pirátstvo - logotyp, tmavé pozadí</option>
</select>
<section id="litomerice-corner" style="display:none">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment