Skip to content

Commit

Permalink
Add a Color Scheme setting for Menus-Header (#2622)
Browse files Browse the repository at this point in the history
* seperated color scheme for header and menu

* made changes to remove white space as suggested from eugene

* made some changes requested by ken

* changed Header color scheme to Color scheme per yoann request

* removed header_color_scheme translation and set the label back to the global string for color scheme

* Update 15 translation files

* Update 5 translation files

---------

Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
  • Loading branch information
lougoncharenko and translation-platform[bot] committed May 17, 2023
1 parent 6b51d57 commit e10b4af
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 3 deletions.
6 changes: 6 additions & 0 deletions locales/cs.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Povolit selektor jazyka"
},
"header__1": {
"content": "Barva"
},
"menu_color_scheme": {
"label": "Barevné schéma nabídky"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/da.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Aktivér sprogvælger"
},
"header__1": {
"content": "Farve"
},
"menu_color_scheme": {
"label": "Farveskema for menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/de.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Sprachauswahl aktivieren"
},
"header__1": {
"content": "Farbe"
},
"menu_color_scheme": {
"label": "Menü-Farbschema"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,12 @@
"show_line_separator": {
"label": "Show separator line"
},
"header__1": {
"content": "Color"
},
"menu_color_scheme": {
"label": "Menu color scheme"
},
"sticky_header_type": {
"label": "Sticky header",
"options__1": {
Expand Down
6 changes: 6 additions & 0 deletions locales/es.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,12 @@
},
"enable_language_selector": {
"label": "Activar selector de idioma"
},
"header__1": {
"content": "Color"
},
"menu_color_scheme": {
"label": "Esquema de colores del menú"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/fi.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Ota kielivalitsin käyttöön"
},
"header__1": {
"content": "Väri"
},
"menu_color_scheme": {
"label": "Värimallivalikko"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/fr.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Activer le sélecteur de langue"
},
"header__1": {
"content": "Couleur"
},
"menu_color_scheme": {
"label": "Nuancier de couleurs de menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/it.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Abilita selettore lingua"
},
"header__1": {
"content": "Colore"
},
"menu_color_scheme": {
"label": "Schema di colori del menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/ja.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "言語セレクターを有効にする"
},
"header__1": {
"content": ""
},
"menu_color_scheme": {
"label": "メニューの配色"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/ko.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,12 @@
},
"enable_language_selector": {
"label": "언어 선택기 사용"
},
"header__1": {
"content": "색상"
},
"menu_color_scheme": {
"label": "메뉴 색상 구성표"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/nb.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,12 @@
},
"enable_language_selector": {
"label": "Aktiver språkvelger"
},
"header__1": {
"content": "Farge"
},
"menu_color_scheme": {
"label": "Menyens fargepalett"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/nl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Taalkiezer inschakelen"
},
"header__1": {
"content": "Kleur"
},
"menu_color_scheme": {
"label": "Kleurschemamenu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/pl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Włącz selektor języka"
},
"header__1": {
"content": "Kolor"
},
"menu_color_scheme": {
"label": "Kolorystyka menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/pt-BR.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Habilitar seletor de idioma"
},
"header__1": {
"content": "Cor"
},
"menu_color_scheme": {
"label": "Esquema de cores do menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/pt-PT.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Ativar seletor de idioma"
},
"header__1": {
"content": "Cor"
},
"menu_color_scheme": {
"label": "Esquema de cores do menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/sv.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Aktivera språkväljare"
},
"header__1": {
"content": "Färg"
},
"menu_color_scheme": {
"label": "Färgschema för meny"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/th.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "เปิดใช้งานตัวเลือกภาษา"
},
"header__1": {
"content": "สี"
},
"menu_color_scheme": {
"label": "รูปแบบสีเมนู"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/tr.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,12 @@
},
"enable_language_selector": {
"label": "Dil seçiciyi etkinleştir"
},
"header__1": {
"content": "Renk"
},
"menu_color_scheme": {
"label": "Menü renk şeması"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/vi.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "Bật hộp chọn ngôn ngữ"
},
"header__1": {
"content": "Màu"
},
"menu_color_scheme": {
"label": "Bảng màu của menu"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/zh-CN.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "启用语言选择器"
},
"header__1": {
"content": "颜色"
},
"menu_color_scheme": {
"label": "菜单配色方案"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions locales/zh-TW.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,12 @@
},
"enable_language_selector": {
"label": "啟用語言選擇器"
},
"header__1": {
"content": "顏色"
},
"menu_color_scheme": {
"label": "選單顏色配置"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,21 @@
"default": true,
"label": "t:sections.header.settings.show_line_separator.label"
},
{
"type": "header",
"content": "t:sections.header.settings.header__1.content"
},
{
"type": "color_scheme",
"id": "color_scheme",
"label": "t:sections.all.colors.label",
"default": "background-1"
},
{
"type": "color_scheme",
"id": "menu_color_scheme",
"label": "t:sections.header.settings.menu_color_scheme.label",
"default": "background-1"
},
{
"type": "header",
Expand Down
2 changes: 1 addition & 1 deletion snippets/header-drawer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% render 'icon-close' %}
</span>
</summary>
<div id="menu-drawer" class="gradient menu-drawer motion-reduce">
<div id="menu-drawer" class="gradient menu-drawer motion-reduce color-{{ section.settings.menu_color_scheme }}">
<div class="menu-drawer__inner-container">
<div class="menu-drawer__navigation-container">
<nav class="menu-drawer__navigation">
Expand Down
2 changes: 1 addition & 1 deletion snippets/header-dropdown-menu.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</summary>
<ul
id="HeaderMenu-MenuList-{{ forloop.index }}"
class="header__submenu list-menu list-menu--disclosure gradient caption-large motion-reduce global-settings-popup"
class="header__submenu list-menu list-menu--disclosure color-{{ section.settings.menu_color_scheme }} gradient caption-large motion-reduce global-settings-popup"
role="list"
tabindex="-1"
>
Expand Down
2 changes: 1 addition & 1 deletion snippets/header-mega-menu.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</summary>
<div
id="MegaMenu-Content-{{ forloop.index }}"
class="mega-menu__content gradient motion-reduce global-settings-popup"
class="mega-menu__content color-{{ section.settings.menu_color_scheme }} gradient motion-reduce global-settings-popup"
tabindex="-1"
>
<ul
Expand Down

0 comments on commit e10b4af

Please sign in to comment.