Indymedia theme

merge-requests/8/head
Bob Mottram 2020-09-15 17:57:00 +01:00
parent 1da78a8abd
commit b291619556
56 changed files with 81 additions and 18 deletions

View File

@ -23,3 +23,4 @@ clean:
rm -f deploy/*~ rm -f deploy/*~
rm -f translations/*~ rm -f translations/*~
rm -rf __pycache__ rm -rf __pycache__
rm calendar.css blog.css epicyon.css follow.css login.css options.css search.css suspended.css

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -25,8 +25,8 @@ def getThemesList() -> []:
and to lookup function names and to lookup function names
""" """
return ('Default', 'Blue', 'Hacker', 'Henge', 'HighVis', return ('Default', 'Blue', 'Hacker', 'Henge', 'HighVis',
'LCD', 'Light', 'Night', 'Purple', 'Solidaric', 'Indymedia', 'LCD', 'Light', 'Night', 'Purple',
'Starlight', 'Zen') 'Solidaric', 'Starlight', 'Zen')
def setThemeInConfig(baseDir: str, name: str) -> bool: def setThemeInConfig(baseDir: str, name: str) -> bool:
@ -243,6 +243,51 @@ def setThemeDefault(baseDir: str):
setThemeFromDict(baseDir, name, themeParams, bgParams) setThemeFromDict(baseDir, name, themeParams, bgParams)
def setThemeIndymedia(baseDir: str):
name = 'indymedia'
removeTheme(baseDir)
setThemeInConfig(baseDir, name)
bgParams = {
"login": "jpg",
"follow": "jpg",
"options": "jpg",
"search": "jpg"
}
themeParams = {
"focus-color": "blue",
"font-size-button-mobile": "36px",
"font-size": "32px",
"font-size2": "26px",
"font-size3": "40px",
"font-size4": "24px",
"font-size5": "22px",
"main-bg-color": "black",
"text-entry-background": "#0f0d10",
"link-bg-color": "#0f0d10",
"main-fg-color": "white",
"main-bg-color-dm": "#0b0a0a",
"border-color": "#003366",
"main-bg-color-reply": "#0f0d10",
"main-bg-color-report": "#0f0d10",
"hashtag-vertical-spacing3": "100px",
"hashtag-vertical-spacing4": "150px",
"button-background-hover": "#173048",
"button-background": "#003366",
"button-selected": "#011830",
"calendar-bg-color": "#0f0d10",
"lines-color": "#a961ab",
"day-number": "#a961ab",
"day-number2": "#555",
"time-color": "#a961ab",
"place-color": "#a961ab",
"event-color": "#a961ab",
"event-background": "#333",
"quote-right-margin": "0",
"border-color": "#003366"
}
setThemeFromDict(baseDir, name, themeParams, bgParams)
def setThemeBlue(baseDir: str): def setThemeBlue(baseDir: str):
name = 'blue' name = 'blue'
removeTheme(baseDir) removeTheme(baseDir)
@ -296,7 +341,9 @@ def setThemeNight(baseDir: str):
"font-size5": "22px", "font-size5": "22px",
"main-bg-color": "#0f0d10", "main-bg-color": "#0f0d10",
"text-entry-background": "#0f0d10", "text-entry-background": "#0f0d10",
"link-bg-color": "#0f0d10", "link-bg-color": "black",
"main-link-color": "ff9900",
"main-link-color-hover": "#d09338";
"main-fg-color": "#a961ab", "main-fg-color": "#a961ab",
"main-bg-color-dm": "#0b0a0a", "main-bg-color-dm": "#0b0a0a",
"border-color": "#606984", "border-color": "#606984",

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "يخطر عندما يتم اعجاب المشاركات", "Notify when posts are liked": "يخطر عندما يتم اعجاب المشاركات",
"Don't show the Like button": "لا تظهر زر أعجبني", "Don't show the Like button": "لا تظهر زر أعجبني",
"Autogenerated Hashtags": "علامات التجزئة المُنشأة تلقائيًا", "Autogenerated Hashtags": "علامات التجزئة المُنشأة تلقائيًا",
"Autogenerated Content Warnings": "تحذيرات المحتوى المُنشأ تلقائيًا" "Autogenerated Content Warnings": "تحذيرات المحتوى المُنشأ تلقائيًا",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Notifiqueu-ho quan us agradin les publicacions", "Notify when posts are liked": "Notifiqueu-ho quan us agradin les publicacions",
"Don't show the Like button": "No mostreu el botó M'agrada", "Don't show the Like button": "No mostreu el botó M'agrada",
"Autogenerated Hashtags": "Hashtags autogenerats", "Autogenerated Hashtags": "Hashtags autogenerats",
"Autogenerated Content Warnings": "Advertiments de contingut autogenerats" "Autogenerated Content Warnings": "Advertiments de contingut autogenerats",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Hysbysu pryd mae swyddi'n cael eu hoffi", "Notify when posts are liked": "Hysbysu pryd mae swyddi'n cael eu hoffi",
"Don't show the Like button": "Peidiwch â dangos y botwm Hoffi", "Don't show the Like button": "Peidiwch â dangos y botwm Hoffi",
"Autogenerated Hashtags": "Hashtags awtogeneiddiedig", "Autogenerated Hashtags": "Hashtags awtogeneiddiedig",
"Autogenerated Content Warnings": "Rhybuddion Cynnwys Autogenerated" "Autogenerated Content Warnings": "Rhybuddion Cynnwys Autogenerated",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Benachrichtigen, wenn Beiträge gefallen", "Notify when posts are liked": "Benachrichtigen, wenn Beiträge gefallen",
"Don't show the Like button": "Zeigen Sie nicht die Schaltfläche \"Gefällt mir\" an", "Don't show the Like button": "Zeigen Sie nicht die Schaltfläche \"Gefällt mir\" an",
"Autogenerated Hashtags": "Automatisch generierte Hashtags", "Autogenerated Hashtags": "Automatisch generierte Hashtags",
"Autogenerated Content Warnings": "Warnungen vor automatisch generierten Inhalten" "Autogenerated Content Warnings": "Warnungen vor automatisch generierten Inhalten",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Notify when posts are liked", "Notify when posts are liked": "Notify when posts are liked",
"Don't show the Like button": "Don't show the Like button", "Don't show the Like button": "Don't show the Like button",
"Autogenerated Hashtags": "Autogenerated Hashtags", "Autogenerated Hashtags": "Autogenerated Hashtags",
"Autogenerated Content Warnings": "Autogenerated Content Warnings" "Autogenerated Content Warnings": "Autogenerated Content Warnings",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Notificar cuando les gusten las publicaciones", "Notify when posts are liked": "Notificar cuando les gusten las publicaciones",
"Don't show the Like button": "No mostrar el botón Me gusta", "Don't show the Like button": "No mostrar el botón Me gusta",
"Autogenerated Hashtags": "Hashtags autogenerados", "Autogenerated Hashtags": "Hashtags autogenerados",
"Autogenerated Content Warnings": "Advertencias de contenido generado automáticamente" "Autogenerated Content Warnings": "Advertencias de contenido generado automáticamente",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Notifier lorsque les messages sont aimés", "Notify when posts are liked": "Notifier lorsque les messages sont aimés",
"Don't show the Like button": "Ne pas afficher le bouton J'aime", "Don't show the Like button": "Ne pas afficher le bouton J'aime",
"Autogenerated Hashtags": "Hashtags générés automatiquement", "Autogenerated Hashtags": "Hashtags générés automatiquement",
"Autogenerated Content Warnings": "Avertissements de contenu générés automatiquement" "Autogenerated Content Warnings": "Avertissements de contenu générés automatiquement",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Cuir in iúl cathain is maith poist", "Notify when posts are liked": "Cuir in iúl cathain is maith poist",
"Don't show the Like button": "Ná taispeáin an cnaipe Cosúil", "Don't show the Like button": "Ná taispeáin an cnaipe Cosúil",
"Autogenerated Hashtags": "Hashtags uathghinte", "Autogenerated Hashtags": "Hashtags uathghinte",
"Autogenerated Content Warnings": "Rabhaidh Ábhar Uathghinte" "Autogenerated Content Warnings": "Rabhaidh Ábhar Uathghinte",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "पोस्ट पसंद आने पर सूचित करें", "Notify when posts are liked": "पोस्ट पसंद आने पर सूचित करें",
"Don't show the Like button": "लाइक बटन न दिखाएं", "Don't show the Like button": "लाइक बटन न दिखाएं",
"Autogenerated Hashtags": "ऑटोजेनरेटेड हैशटैग", "Autogenerated Hashtags": "ऑटोजेनरेटेड हैशटैग",
"Autogenerated Content Warnings": "स्वतः प्राप्त सामग्री चेतावनी" "Autogenerated Content Warnings": "स्वतः प्राप्त सामग्री चेतावनी",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Avvisa quando i post sono piaciuti", "Notify when posts are liked": "Avvisa quando i post sono piaciuti",
"Don't show the Like button": "Non mostrare il pulsante Mi piace", "Don't show the Like button": "Non mostrare il pulsante Mi piace",
"Autogenerated Hashtags": "Hashtag generati automaticamente", "Autogenerated Hashtags": "Hashtag generati automaticamente",
"Autogenerated Content Warnings": "Avvisi sui contenuti generati automaticamente" "Autogenerated Content Warnings": "Avvisi sui contenuti generati automaticamente",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "投稿が高く評価されたときに通知する", "Notify when posts are liked": "投稿が高く評価されたときに通知する",
"Don't show the Like button": "「いいね!」ボタンを表示しない", "Don't show the Like button": "「いいね!」ボタンを表示しない",
"Autogenerated Hashtags": "自動生成されたハッシュタグ", "Autogenerated Hashtags": "自動生成されたハッシュタグ",
"Autogenerated Content Warnings": "自動生成されたコンテンツの警告" "Autogenerated Content Warnings": "自動生成されたコンテンツの警告",
"Indymedia": "Indymedia"
} }

View File

@ -281,5 +281,6 @@
"Notify when posts are liked": "Notify when posts are liked", "Notify when posts are liked": "Notify when posts are liked",
"Don't show the Like button": "Don't show the Like button", "Don't show the Like button": "Don't show the Like button",
"Autogenerated Hashtags": "Autogenerated Hashtags", "Autogenerated Hashtags": "Autogenerated Hashtags",
"Autogenerated Content Warnings": "Autogenerated Content Warnings" "Autogenerated Content Warnings": "Autogenerated Content Warnings",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Notificar quando as postagens forem curtidas", "Notify when posts are liked": "Notificar quando as postagens forem curtidas",
"Don't show the Like button": "Não mostrar o botão Curtir", "Don't show the Like button": "Não mostrar o botão Curtir",
"Autogenerated Hashtags": "Hashtags autogeradas", "Autogenerated Hashtags": "Hashtags autogeradas",
"Autogenerated Content Warnings": "Avisos de conteúdo gerado automaticamente" "Autogenerated Content Warnings": "Avisos de conteúdo gerado automaticamente",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "Уведомлять, когда публикации нравятся", "Notify when posts are liked": "Уведомлять, когда публикации нравятся",
"Don't show the Like button": "Не показывать кнопку \"Нравится\"", "Don't show the Like button": "Не показывать кнопку \"Нравится\"",
"Autogenerated Hashtags": "Автоматически сгенерированные хештеги", "Autogenerated Hashtags": "Автоматически сгенерированные хештеги",
"Autogenerated Content Warnings": "Автоматические предупреждения о содержании" "Autogenerated Content Warnings": "Автоматические предупреждения о содержании",
"Indymedia": "Indymedia"
} }

View File

@ -285,5 +285,6 @@
"Notify when posts are liked": "通知喜欢的帖子", "Notify when posts are liked": "通知喜欢的帖子",
"Don't show the Like button": "不显示“赞”按钮", "Don't show the Like button": "不显示“赞”按钮",
"Autogenerated Hashtags": "自动生成的标签", "Autogenerated Hashtags": "自动生成的标签",
"Autogenerated Content Warnings": "自动生成的内容警告" "Autogenerated Content Warnings": "自动生成的内容警告",
"Indymedia": "Indymedia"
} }