Skip to content

Commit 02eaff9

Browse files
authored
Add files via upload
1 parent ba82f50 commit 02eaff9

File tree

13 files changed

+206
-20
lines changed

13 files changed

+206
-20
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mazeltof/proflatvariations",
33
"type": "phpbb-extension",
4-
"description": "adds pproflat colors variations",
4+
"description": "adds proflat colors variations",
55
"homepage": "https://www.mazeland.fr/",
66
"version": "1.0.0",
77
"license": "GPL-2.0",

config/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
mazeltof.mazeland.listener:
2+
mazeltof.proflatvariations.listener:
33
class: mazeltof\proflatvariations\event\listener
44
arguments:
55
- '@user'

language/en/translation.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
// ’ « » “ ” …
3333
//
3434
$lang = array_merge($lang, [
35-
'M_DARK' => 'Dark mode',
36-
'M_LIGHT' => 'Light mode',
37-
'M_LIGHT_DARK' => 'Light/Dark mode',
38-
'MODE_DL' => 'Mode',
3935
'VAR_COLOR' => 'Color variations',
4036
'VARIAIONS_C' => 'Variations',
4137
]);

language/fr/translation.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
// ’ « » “ ” …
3333
//
3434
$lang = array_merge($lang, [
35-
'M_DARK' => 'Mode sombre',
36-
'M_LIGHT' => 'Mode clair',
37-
'M_LIGHT_DARK' => 'Mode clair/sombre',
38-
'MODE_DL' => 'Mode',
3935
'VAR_COLOR' => 'Déclinaisons de couleurs',
4036
'VARIAIONS_C' => 'Déclinaisons',
4137
]);

styles/proflat/template/config.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
0 = no
33
1 = yes
44
#}
5+
56
{% DEFINE SWITCH_COLOR = '1' %}
67

78
{% EVENT config_colors_tables_before %}

styles/proflat/template/event/overall_header_head_append.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% INCLUDE 'config.html' %}
2-
<script>if (localStorage.proflatvariation) document.documentElement.setAttribute("data-color", localStorage.proflatvariation);</script>
2+
<script>if (localStorage.proflatvariations) document.documentElement.setAttribute("data-color", localStorage.proflatvariations);</script>
33
<link rel="stylesheet" href="{ROOT_PATH}ext/mazeltof/proflatvariations/styles/proflat/theme/proflatvariations.css">
4-
54
<style>
65
{% for color in definition.COLORS %}
76
{% set escapedColor = color starts with '#' ? '\\' ~ color : color %}

styles/proflat/template/variations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ $("[data-colorselect]").each(function() {
33
var sushicouleur = $(this).data("colorselect");
44
$(this).on("click", function() {
55
$("html").attr("data-color", sushicouleur);
6-
localStorage.setItem("proflatvariation", sushicouleur);
6+
localStorage.setItem("proflatvariations", sushicouleur);
77
});
88
});

styles/proflat/theme/proflatvariations.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ html, [data-color="#5db2ff"] { /*blue*/
122122
}
123123

124124
html, [data-theme=light] {
125-
--color04: #ffffff;
126125
--color05: #FFFFFF;
127126
--color06: #f5f5f5;
128127
--color07: #EEEEEE;
@@ -131,17 +130,16 @@ html, [data-theme=light] {
131130
--color10: #CCCCCC;
132131
--color11: #999999;
133132
--color12: #666666;
134-
--color12.5: #66666680;
133+
--color125: #66666680;
135134
--color13: #333333;
136135
--color14: #222222;
137136
--color15: #111111;
138137
--color16: #000000;
139138
--color17: #d31141;
140139
--color18: #FF6600;
141140
--color19: #A9B8C2;
142-
--color20: #5D8FBD;
141+
--color20: #5D8FBD;
143142
}
144-
145143
/* Switch */
146144
.color-switcher {
147145
display: flex;

styles/proflat_dark_side/template/config.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
0 = no
33
1 = yes
44
#}
5+
56
{% DEFINE SWITCH_COLOR = '1' %}
67

78
{% EVENT config_colors_tables_before %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% INCLUDEJS '@mazeltof_proflatvariations/variations.js' %}
1+
{% INCLUDEJS '@mazeltof_proflatvariations/variation.js' %}

0 commit comments

Comments
 (0)